categoryitemrenderer.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,583 行 · 第 1/5 页
HTML
1,583 行
<BR> Sets the item label anchor for a series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesItemLabelFont(int, java.awt.Font)">setSeriesItemLabelFont</A></B>(int series, java.awt.Font font)</CODE><BR> Sets the item label font for a series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesItemLabelGenerator(int, org.jfree.chart.labels.CategoryItemLabelGenerator)">setSeriesItemLabelGenerator</A></B>(int series, <A HREF="../../../../org/jfree/chart/labels/CategoryItemLabelGenerator.html">CategoryItemLabelGenerator</A> generator)</CODE><BR> Sets the item label generator for a series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesItemLabelTextAnchor(int, org.jfree.ui.TextAnchor)">setSeriesItemLabelTextAnchor</A></B>(int series, org.jfree.ui.TextAnchor anchor)</CODE><BR> Sets the item label text anchor for a series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesItemURLGenerator(int, org.jfree.chart.urls.CategoryURLGenerator)">setSeriesItemURLGenerator</A></B>(int series, <A HREF="../../../../org/jfree/chart/urls/CategoryURLGenerator.html">CategoryURLGenerator</A> generator)</CODE><BR> Sets the item URL generator for a series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesOutlinePaint(int, java.awt.Paint)">setSeriesOutlinePaint</A></B>(int series, java.awt.Paint paint)</CODE><BR> Sets the outline paint for a series in the primary dataset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesOutlineStroke(int, java.awt.Stroke)">setSeriesOutlineStroke</A></B>(int series, java.awt.Stroke stroke)</CODE><BR> Sets the outline stroke for a series in the primary dataset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesPaint(int, java.awt.Paint)">setSeriesPaint</A></B>(int series, java.awt.Paint paint)</CODE><BR> Sets the paint for a series in the primary dataset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesShape(int, java.awt.Shape)">setSeriesShape</A></B>(int series, java.awt.Shape shape)</CODE><BR> Sets the shape for a series in the primary dataset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setSeriesStroke(int, java.awt.Stroke)">setSeriesStroke</A></B>(int series, java.awt.Stroke stroke)</CODE><BR> Sets the stroke for a series in the primary dataset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/renderer/CategoryItemRenderer.html#setStroke(java.awt.Stroke)">setStroke</A></B>(java.awt.Stroke stroke)</CODE><BR> Sets the stroke for ALL series (optional).</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getPlot()"><!-- --></A><H3>getPlot</H3><PRE>public <A HREF="../../../../org/jfree/chart/plot/CategoryPlot.html">CategoryPlot</A> <B>getPlot</B>()</PRE><DL><DD>Returns the plot that the renderer has been assigned to.<P><DD><DL><DT><B>Returns:</B><DD>the plot.</DL></DD></DL><HR><A NAME="setPlot(org.jfree.chart.plot.CategoryPlot)"><!-- --></A><H3>setPlot</H3><PRE>public void <B>setPlot</B>(<A HREF="../../../../org/jfree/chart/plot/CategoryPlot.html">CategoryPlot</A> plot)</PRE><DL><DD>Sets the plot that the renderer has been assigned to. <P> You shouldn't need to call this method yourself, the plot will do it for you when you assign the renderer to the plot.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>plot</CODE> - the plot.</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. The plot needs to know this information in order to determine an appropriate axis range (when the axis auto-range calculation is on). <P> Two types are recognised: <ul> <li><code>STANDARD</code> - data items are plotted individually, so the axis range should extend from the smallest value to the largest value;</li> <li><code>STACKED</code> - data items are stacked on top of one another, so to determine the axis range, all the items in a series need to be summed together.</li> </ul> If the data values are stacked, this affects the axis range required to display all the data items.<P><DD><DL><DT><B>Returns:</B><DD>a flag indicating whether or not the data values are stacked.</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. 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>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>index</CODE> - the secondary index (<code>null</code> for primary renderer).<DD><CODE>info</CODE> - collects chart rendering information for return to caller.</DL></DD></DL><HR><A NAME="getBasePaint()"><!-- --></A><H3>getBasePaint</H3><PRE>public java.awt.Paint <B>getBasePaint</B>()</PRE><DL><DD>Returns the base paint.<P><DD><DL><DT><B>Returns:</B><DD>The base paint.</DL></DD></DL><HR><A NAME="setBasePaint(java.awt.Paint)"><!-- --></A><H3>setBasePaint</H3><PRE>public void <B>setBasePaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the base paint. <p> In most cases, the renderer's paint table will be active and so this default value will not be used.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the paint.</DL></DD></DL><HR><A NAME="getItemPaint(int, int)"><!-- --></A><H3>getItemPaint</H3><PRE>public java.awt.Paint <B>getItemPaint</B>(int series, int category)</PRE><DL><DD>Returns the paint used to fill an item.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series index (zero-based).<DD><CODE>category</CODE> - the category index (zero-based).<DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="getSeriesPaint(int)"><!-- --></A><H3>getSeriesPaint</H3><PRE>public java.awt.Paint <B>getSeriesPaint</B>(int series)</PRE><DL><DD>Returns the paint used to fill shapes for this renderer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero-based index).<DT><B>Returns:</B><DD>the paint.</DL></DD></DL><HR><A NAME="setSeriesPaint(int, java.awt.Paint)"><!-- --></A><H3>setSeriesPaint</H3><PRE>public void <B>setSeriesPaint</B>(int series, java.awt.Paint paint)</PRE><DL><DD>Sets the paint for a series in the primary dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series index (zero-based).<DD><CODE>paint</CODE> - the paint.</DL></DD></DL><HR><A NAME="getBaseOutlinePaint()"><!-- --></A><H3>getBaseOutlinePaint</H3><PRE>public java.awt.Paint <B>getBaseOutlinePaint</B>()</PRE><DL><DD>Returns the base outline paint.<P><DD><DL><DT><B>Returns:</B><DD>The base outline paint.</DL></DD></DL><HR><A NAME="setBaseOutlinePaint(java.awt.Paint)"><!-- --></A><H3>setBaseOutlinePaint</H3><PRE>public void <B>setBaseOutlinePaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the base outline paint.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the paint.</DL></DD></DL><HR><A NAME="getItemOutlinePaint(int, int)"><!-- --></A><H3>getItemOutlinePaint</H3><PRE>public java.awt.Paint <B>getItemOutlinePaint</B>(int series, int item)</PRE><DL><DD>Returns the outline paint for an item.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series index (zero-based).<DD><CODE>item</CODE> - the item index (zero-based).<DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="getSeriesOutlinePaint(int)"><!-- --></A><H3>getSeriesOutlinePaint</H3><PRE>public java.awt.Paint <B>getSeriesOutlinePaint</B>(int series)</PRE><DL><DD>Returns the outline paint for a series.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series index (zero-based).<DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="setSeriesOutlinePaint(int, java.awt.Paint)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?