xyitemrenderer.html

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

HTML
979 行
字号
<DL><DD>Sets the stroke 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>stroke</CODE> - the stroke.</DL></DD></DL><HR><A NAME="getBaseStroke()"><!-- --></A><H3>getBaseStroke</H3><PRE>public java.awt.Stroke <B>getBaseStroke</B>()</PRE><DL><DD>Returns the base stroke.<P><DD><DL><DT><B>Returns:</B><DD>The stroke.</DL></DD></DL><HR><A NAME="setBaseStroke(java.awt.Stroke)"><!-- --></A><H3>setBaseStroke</H3><PRE>public void <B>setBaseStroke</B>(java.awt.Stroke&nbsp;stroke)</PRE><DL><DD>Sets the base stroke.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>stroke</CODE> - the stroke.</DL></DD></DL><HR><A NAME="getItemShape(int, int)"><!-- --></A><H3>getItemShape</H3><PRE>public java.awt.Shape <B>getItemShape</B>(int&nbsp;series,                                   int&nbsp;item)</PRE><DL><DD>Returns the shape 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 shape.</DL></DD></DL><HR><A NAME="getSeriesShape(int)"><!-- --></A><H3>getSeriesShape</H3><PRE>public java.awt.Shape <B>getSeriesShape</B>(int&nbsp;series)</PRE><DL><DD>Returns the shape 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 shape.</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>Called for each item to be plotted. <p> The <A HREF="../../../../org/jfree/chart/plot/XYPlot.html"><CODE>XYPlot</CODE></A> can make multiple passes through the dataset, depending on the value returned by the renderer's <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)"><CODE>initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.XYPlot, org.jfree.data.XYDataset, org.jfree.chart.ChartRenderingInfo)</CODE></A> method.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>dataArea</CODE> - the area within which the data is being rendered.<DD><CODE>info</CODE> - collects drawing info.<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> - collects information about crosshairs.<DD><CODE>pass</CODE> - the pass index.</DL></DD></DL><HR><A NAME="getLegendItem(int, int)"><!-- --></A><H3>getLegendItem</H3><PRE>public <A HREF="../../../../org/jfree/chart/LegendItem.html">LegendItem</A> <B>getLegendItem</B>(int&nbsp;datasetIndex,                                int&nbsp;series)</PRE><DL><DD>Returns a legend item for a series from a dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>datasetIndex</CODE> - the dataset index.<DD><CODE>series</CODE> - the series (zero-based index).<DT><B>Returns:</B><DD>the legend item.</DL></DD></DL><HR><A NAME="fillDomainGridBand(java.awt.Graphics2D, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, java.awt.geom.Rectangle2D, double, double)"><!-- --></A><H3>fillDomainGridBand</H3><PRE>public void <B>fillDomainGridBand</B>(java.awt.Graphics2D&nbsp;g2,                               <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                               <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;axis,                               java.awt.geom.Rectangle2D&nbsp;dataArea,                               double&nbsp;start,                               double&nbsp;end)</PRE><DL><DD>Fills a band between two values on the axis.  This can be used to color bands between the grid lines.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>axis</CODE> - the domain axis.<DD><CODE>dataArea</CODE> - the data area.<DD><CODE>start</CODE> - the start value.<DD><CODE>end</CODE> - the end value.</DL></DD></DL><HR><A NAME="fillRangeGridBand(java.awt.Graphics2D, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, java.awt.geom.Rectangle2D, double, double)"><!-- --></A><H3>fillRangeGridBand</H3><PRE>public void <B>fillRangeGridBand</B>(java.awt.Graphics2D&nbsp;g2,                              <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                              <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;axis,                              java.awt.geom.Rectangle2D&nbsp;dataArea,                              double&nbsp;start,                              double&nbsp;end)</PRE><DL><DD>Fills a band between two values on the range axis.  This can be used to color bands between the grid lines.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>axis</CODE> - the range axis.<DD><CODE>dataArea</CODE> - the data area.<DD><CODE>start</CODE> - the start value.<DD><CODE>end</CODE> - the end value.</DL></DD></DL><HR><A NAME="drawDomainGridLine(java.awt.Graphics2D, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, java.awt.geom.Rectangle2D, double)"><!-- --></A><H3>drawDomainGridLine</H3><PRE>public void <B>drawDomainGridLine</B>(java.awt.Graphics2D&nbsp;g2,                               <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                               <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;axis,                               java.awt.geom.Rectangle2D&nbsp;dataArea,                               double&nbsp;value)</PRE><DL><DD>Draws a grid line against the domain axis.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>axis</CODE> - the value axis.<DD><CODE>dataArea</CODE> - the area for plotting data (not yet adjusted for any 3D effect).<DD><CODE>value</CODE> - the value.</DL></DD></DL><HR><A NAME="drawRangeGridLine(java.awt.Graphics2D, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, java.awt.geom.Rectangle2D, double)"><!-- --></A><H3>drawRangeGridLine</H3><PRE>public void <B>drawRangeGridLine</B>(java.awt.Graphics2D&nbsp;g2,                              <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                              <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;axis,                              java.awt.geom.Rectangle2D&nbsp;dataArea,                              double&nbsp;value)</PRE><DL><DD>Draws a grid line against the range axis.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>axis</CODE> - the value axis.<DD><CODE>dataArea</CODE> - the area for plotting data (not yet adjusted for any 3D effect).<DD><CODE>value</CODE> - the value.</DL></DD></DL><HR><A NAME="drawDomainMarker(java.awt.Graphics2D, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, org.jfree.chart.Marker, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawDomainMarker</H3><PRE>public void <B>drawDomainMarker</B>(java.awt.Graphics2D&nbsp;g2,                             <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                             <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;axis,                             <A HREF="../../../../org/jfree/chart/Marker.html">Marker</A>&nbsp;marker,                             java.awt.geom.Rectangle2D&nbsp;dataArea)</PRE><DL><DD>Draws a vertical line on the chart to represent a 'range marker'.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>axis</CODE> - the value axis.<DD><CODE>marker</CODE> - the marker line.<DD><CODE>dataArea</CODE> - the axis data area.</DL></DD></DL><HR><A NAME="drawRangeMarker(java.awt.Graphics2D, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, org.jfree.chart.Marker, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawRangeMarker</H3><PRE>public void <B>drawRangeMarker</B>(java.awt.Graphics2D&nbsp;g2,                            <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot,                            <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A>&nbsp;axis,                            <A HREF="../../../../org/jfree/chart/Marker.html">Marker</A>&nbsp;marker,                            java.awt.geom.Rectangle2D&nbsp;dataArea)</PRE><DL><DD>Draws a horizontal line across the chart to represent a 'range marker'.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot.<DD><CODE>axis</CODE> - the value axis.<DD><CODE>marker</CODE> - the marker line.<DD><CODE>dataArea</CODE> - the axis data area.</DL></DD></DL><HR><A NAME="getPlot()"><!-- --></A><H3>getPlot</H3><PRE>public <A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A> <B>getPlot</B>()</PRE><DL><DD>Returns the plot that this 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.XYPlot)"><!-- --></A><H3>setPlot</H3><PRE>public void <B>setPlot</B>(<A HREF="../../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A>&nbsp;plot)</PRE><DL><DD>Sets the plot that this renderer is assigned to. <P> This method will be called by the plot class...you do not need to call it yourself.<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><!-- ========= 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/CategoryItemRenderer.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="XYItemRenderer.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;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&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 + -
显示快捷键?