candlestickrenderer.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 810 行 · 第 1/4 页

HTML
810 行
字号
</DD></DL><HR><A NAME="initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.XYPlot, org.jfree.data.XYDataset, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>initialise</H3><PRE>public int <B>initialise</B>(java.awt.Graphics2D&nbsp;g2,                      java.awt.geom.Rectangle2D&nbsp;dataArea,                      <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                      <A HREF="../../../../org/jfree/data/XYDataset.html">XYDataset</A>&nbsp;dataset,                      <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info)</PRE><DL><DD>Initialises the renderer then returns the number of 'passes' through the data that the renderer will require (usually just one).  This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain.  The renderer can do nothing if it chooses.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/XYItemRenderer.html#initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.XYPlot, org.jfree.data.XYDataset, org.jfree.chart.ChartRenderingInfo)">initialise</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/XYItemRenderer.html">XYItemRenderer</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/AbstractXYItemRenderer.html#initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.XYPlot, org.jfree.data.XYDataset, org.jfree.chart.ChartRenderingInfo)">initialise</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/renderer/AbstractXYItemRenderer.html">AbstractXYItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>dataArea</CODE> - the area inside the axes.<DD><CODE>plot</CODE> - the plot.<DD><CODE>dataset</CODE> - the data.<DD><CODE>info</CODE> - an optional info collection object to return data back to the caller.<DT><B>Returns:</B><DD>The number of passes the renderer requires.</DL></DD></DL><HR><A NAME="drawItem(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, org.jfree.chart.axis.ValueAxis, org.jfree.data.XYDataset, int, int, org.jfree.chart.CrosshairInfo, int)"><!-- --></A><H3>drawItem</H3><PRE>public void <B>drawItem</B>(java.awt.Graphics2D&nbsp;g2,                     java.awt.geom.Rectangle2D&nbsp;dataArea,                     <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info,                     <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                     <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;domainAxis,                     <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;rangeAxis,                     <A HREF="../../../../org/jfree/data/XYDataset.html">XYDataset</A>&nbsp;dataset,                     int&nbsp;series,                     int&nbsp;item,                     <A HREF="../../../../org/jfree/chart/CrosshairInfo.html">CrosshairInfo</A>&nbsp;crosshairInfo,                     int&nbsp;pass)</PRE><DL><DD>Draws the visual representation of a single data item.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/XYItemRenderer.html#drawItem(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, org.jfree.chart.axis.ValueAxis, org.jfree.data.XYDataset, int, int, org.jfree.chart.CrosshairInfo, int)">drawItem</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/XYItemRenderer.html">XYItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>dataArea</CODE> - the area within which the plot is being drawn.<DD><CODE>info</CODE> - collects info about the drawing.<DD><CODE>plot</CODE> - the plot (can be used to obtain standard color information etc).<DD><CODE>domainAxis</CODE> - the domain axis.<DD><CODE>rangeAxis</CODE> - the range axis.<DD><CODE>dataset</CODE> - the dataset.<DD><CODE>series</CODE> - the series index (zero-based).<DD><CODE>item</CODE> - the item index (zero-based).<DD><CODE>crosshairInfo</CODE> - information about crosshairs on a plot.<DD><CODE>pass</CODE> - the pass index.</DL></DD></DL><HR><A NAME="drawHorizontalItem(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, org.jfree.chart.axis.ValueAxis, org.jfree.data.XYDataset, int, int, org.jfree.chart.CrosshairInfo, int)"><!-- --></A><H3>drawHorizontalItem</H3><PRE>public void <B>drawHorizontalItem</B>(java.awt.Graphics2D&nbsp;g2,                               java.awt.geom.Rectangle2D&nbsp;dataArea,                               <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info,                               <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                               <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;domainAxis,                               <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;rangeAxis,                               <A HREF="../../../../org/jfree/data/XYDataset.html">XYDataset</A>&nbsp;dataset,                               int&nbsp;series,                               int&nbsp;item,                               <A HREF="../../../../org/jfree/chart/CrosshairInfo.html">CrosshairInfo</A>&nbsp;crosshairInfo,                               int&nbsp;pass)</PRE><DL><DD>Draws the visual representation of a single data item.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>dataArea</CODE> - the area within which the plot is being drawn.<DD><CODE>info</CODE> - collects info about the drawing.<DD><CODE>plot</CODE> - the plot (can be used to obtain standard color information etc).<DD><CODE>domainAxis</CODE> - the domain axis.<DD><CODE>rangeAxis</CODE> - the range axis.<DD><CODE>dataset</CODE> - the dataset.<DD><CODE>series</CODE> - the series index (zero-based).<DD><CODE>item</CODE> - the item index (zero-based).<DD><CODE>crosshairInfo</CODE> - information about crosshairs on a plot.<DD><CODE>pass</CODE> - the pass index.</DL></DD></DL><HR><A NAME="drawVerticalItem(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, org.jfree.chart.axis.ValueAxis, org.jfree.data.XYDataset, int, int, org.jfree.chart.CrosshairInfo, int)"><!-- --></A><H3>drawVerticalItem</H3><PRE>public void <B>drawVerticalItem</B>(java.awt.Graphics2D&nbsp;g2,                             java.awt.geom.Rectangle2D&nbsp;dataArea,                             <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info,                             <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                             <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;domainAxis,                             <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;rangeAxis,                             <A HREF="../../../../org/jfree/data/XYDataset.html">XYDataset</A>&nbsp;dataset,                             int&nbsp;series,                             int&nbsp;item,                             <A HREF="../../../../org/jfree/chart/CrosshairInfo.html">CrosshairInfo</A>&nbsp;crosshairInfo,                             int&nbsp;pass)</PRE><DL><DD>Draws the visual representation of a single data item.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>dataArea</CODE> - the area within which the plot is being drawn.<DD><CODE>info</CODE> - collects info about the drawing.<DD><CODE>plot</CODE> - the plot (can be used to obtain standard color information etc).<DD><CODE>domainAxis</CODE> - the domain axis.<DD><CODE>rangeAxis</CODE> - the range axis.<DD><CODE>dataset</CODE> - the dataset.<DD><CODE>series</CODE> - the series index (zero-based).<DD><CODE>item</CODE> - the item index (zero-based).<DD><CODE>crosshairInfo</CODE> - information about crosshairs on a plot.<DD><CODE>pass</CODE> - the pass index.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;obj)</PRE><DL><DD>Tests this renderer for equality with another object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/AbstractXYItemRenderer.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/renderer/AbstractXYItemRenderer.html">AbstractXYItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object.<DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()                       throws java.lang.CloneNotSupportedException</PRE><DL><DD>Returns a clone of the renderer.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>clone</CODE> in interface <CODE>org.jfree.util.PublicCloneable</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/AbstractXYItemRenderer.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/renderer/AbstractXYItemRenderer.html">AbstractXYItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if the renderer cannot be cloned.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/jfree/chart/renderer/BoxAndWhiskerRenderer.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/jfree/chart/renderer/CategoryURLGeneratorTable.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CandlestickRenderer.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.jfree.chart.renderer.AbstractRenderer">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?