abstractcategoryitemrenderer.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 900 行 · 第 1/5 页
HTML
900 行
</DD><DD><DL><DT><B>Returns:</B><DD>The item URL generator.</DL></DD></DL><HR><A NAME="setBaseItemURLGenerator(org.jfree.chart.urls.CategoryURLGenerator)"><!-- --></A><H3>setBaseItemURLGenerator</H3><PRE>public void <B>setBaseItemURLGenerator</B>(<A HREF="../../../../org/jfree/chart/urls/CategoryURLGenerator.html">CategoryURLGenerator</A> generator)</PRE><DL><DD>Sets the base item URL generator.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setBaseItemURLGenerator(org.jfree.chart.urls.CategoryURLGenerator)">setBaseItemURLGenerator</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html">CategoryItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>generator</CODE> - the item URL generator.</DL></DD></DL><HR><A NAME="getRowCount()"><!-- --></A><H3>getRowCount</H3><PRE>public int <B>getRowCount</B>()</PRE><DL><DD>Returns the number of rows in the dataset. This value is updated in the <A HREF="../../../../org/jfree/chart/renderer/AbstractCategoryItemRenderer.html#initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.CategoryPlot, java.lang.Integer, org.jfree.chart.ChartRenderingInfo)"><CODE>initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.CategoryPlot, java.lang.Integer, org.jfree.chart.ChartRenderingInfo)</CODE></A> method.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the row count.</DL></DD></DL><HR><A NAME="getColumnCount()"><!-- --></A><H3>getColumnCount</H3><PRE>public int <B>getColumnCount</B>()</PRE><DL><DD>Returns the number of columns in the dataset. This value is updated in the <A HREF="../../../../org/jfree/chart/renderer/AbstractCategoryItemRenderer.html#initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.CategoryPlot, java.lang.Integer, org.jfree.chart.ChartRenderingInfo)"><CODE>initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.CategoryPlot, java.lang.Integer, org.jfree.chart.ChartRenderingInfo)</CODE></A> method.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the column count.</DL></DD></DL><HR><A NAME="initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.CategoryPlot, java.lang.Integer, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>initialise</H3><PRE>public void <B>initialise</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, <A HREF="../../../../org/jfree/chart/plot/CategoryPlot.html">CategoryPlot</A> plot, java.lang.Integer index, <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info)</PRE><DL><DD>Initialises the renderer. <P> Stores a reference to the <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html"><CODE>ChartRenderingInfo</CODE></A> object (which might be <code>null</code>), and then sets the useCategoriesPaint flag according to the special case conditions a) there is only one series and b) the categoriesPaint array is not null.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.CategoryPlot, java.lang.Integer, org.jfree.chart.ChartRenderingInfo)">initialise</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html">CategoryItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>dataArea</CODE> - the data area.<DD><CODE>plot</CODE> - the plot.<DD><CODE>index</CODE> - the secondary index (<code>null</code> for primary renderer).<DD><CODE>info</CODE> - an object for returning information about the structure of the chart (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getRangeType()"><!-- --></A><H3>getRangeType</H3><PRE>public <A HREF="../../../../org/jfree/chart/renderer/RangeType.html">RangeType</A> <B>getRangeType</B>()</PRE><DL><DD>Returns the range type for the renderer. <p> The default implementation returns <code>STANDARD</code>, subclasses may override this behaviour. <p> The <A HREF="../../../../org/jfree/chart/plot/CategoryPlot.html"><CODE>CategoryPlot</CODE></A> uses this information when auto-calculating the range for the axis.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#getRangeType()">getRangeType</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html">CategoryItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the range type.</DL></DD></DL><HR><A NAME="drawBackground(java.awt.Graphics2D, org.jfree.chart.plot.CategoryPlot, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawBackground</H3><PRE>public void <B>drawBackground</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/plot/CategoryPlot.html">CategoryPlot</A> plot, java.awt.geom.Rectangle2D dataArea)</PRE><DL><DD>Draws a background for the data area. The default implementation just gets the plot to draw the outline, but some renderers will override this behaviour.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#drawBackground(java.awt.Graphics2D, org.jfree.chart.plot.CategoryPlot, java.awt.geom.Rectangle2D)">drawBackground</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html">CategoryItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>dataArea</CODE> - the data area.</DL></DD></DL><HR><A NAME="drawOutline(java.awt.Graphics2D, org.jfree.chart.plot.CategoryPlot, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawOutline</H3><PRE>public void <B>drawOutline</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/plot/CategoryPlot.html">CategoryPlot</A> plot, java.awt.geom.Rectangle2D dataArea)</PRE><DL><DD>Draws an outline for the data area. The default implementation just gets the plot to draw the outline, but some renderers will override this behaviour.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#drawOutline(java.awt.Graphics2D, org.jfree.chart.plot.CategoryPlot, java.awt.geom.Rectangle2D)">drawOutline</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html">CategoryItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>dataArea</CODE> - the data area.</DL></DD></DL><HR><A NAME="drawDomainGridline(java.awt.Graphics2D, org.jfree.chart.plot.CategoryPlot, java.awt.geom.Rectangle2D, double)"><!-- --></A><H3>drawDomainGridline</H3><PRE>public void <B>drawDomainGridline</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/plot/CategoryPlot.html">CategoryPlot</A> plot, java.awt.geom.Rectangle2D dataArea, double value)</PRE><DL><DD>Draws a grid line against the domain axis. <P> Note that this default implementation assumes that the horizontal axis is the domain axis. If this is not the case, you will need to override this method.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#drawDomainGridline(java.awt.Graphics2D, org.jfree.chart.plot.CategoryPlot, java.awt.geom.Rectangle2D, double)">drawDomainGridline</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html">CategoryItemRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>dataArea</CODE> - the area for plotting data (not yet adjusted for any 3D effect).<DD><CODE>value</CODE> - the Java2D value at which the grid line should be drawn.</DL></DD></DL><HR><A NAME="drawRangeGridline(java.awt.Graphics2D, org.jfree.chart.plot.CategoryPlot, org.jfree.chart.axis.ValueAxis, java.awt.geom.Rectangle2D, double)"><!-- --></A><H3>drawRangeGridline</H3><PRE>public void <B>drawRangeGridline</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/plot/CategoryPlot.html">CategoryPlot</A> plot, <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A> axis, java.awt.geom.Rectangle2D dataArea, double value)</PRE><DL><DD>Draws a grid line against the range axis.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#drawRangeGridline(java.awt.Graphics2D, org.jfree.chart.plot.CategoryPlot, org.jfree.chart.axis.ValueAxis, java.awt.geom.Rectangle2D, double)">drawRangeGridline</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html">CategoryItemRenderer</
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?