plot.html

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

HTML
1,772 行
字号
<HR><A NAME="notifyListeners(org.jfree.chart.event.PlotChangeEvent)"><!-- --></A><H3>notifyListeners</H3><PRE>public void <B>notifyListeners</B>(<A HREF="../../../../org/jfree/chart/event/PlotChangeEvent.html">PlotChangeEvent</A>&nbsp;event)</PRE><DL><DD>Notifies all registered listeners that the plot has been modified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - information about the change event.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public abstract void <B>draw</B>(java.awt.Graphics2D&nbsp;g2,                          java.awt.geom.Rectangle2D&nbsp;plotArea,                          <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info)</PRE><DL><DD>Draws the plot on a Java 2D graphics device (such as the screen or a printer). <P> This class does not store any information about where the individual items that make up the plot are actually drawn.  If you want to collect this information, pass in a ChartRenderingInfo object.  After the drawing is complete, the info object will contain lots of information about the chart.  If you don't want the information, pass in null. *<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plotArea</CODE> - the area within which the plot should be drawn.<DD><CODE>info</CODE> - an object for collecting information about the drawing of the chart.</DL></DD></DL><HR><A NAME="drawBackground(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawBackground</H3><PRE>public void <B>drawBackground</B>(java.awt.Graphics2D&nbsp;g2,                           java.awt.geom.Rectangle2D&nbsp;area)</PRE><DL><DD>Draw the plot background.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area within which the plot should be drawn.</DL></DD></DL><HR><A NAME="drawOutline(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawOutline</H3><PRE>public void <B>drawOutline</B>(java.awt.Graphics2D&nbsp;g2,                        java.awt.geom.Rectangle2D&nbsp;area)</PRE><DL><DD>Draw the plot outline<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area within which the plot should be drawn.</DL></DD></DL><HR><A NAME="drawNoDataMessage(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawNoDataMessage</H3><PRE>protected void <B>drawNoDataMessage</B>(java.awt.Graphics2D&nbsp;g2,                                 java.awt.geom.Rectangle2D&nbsp;area)</PRE><DL><DD>Draws a message to state that there is no data to plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area within which the plot should be drawn.</DL></DD></DL><HR><A NAME="handleClick(int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>handleClick</H3><PRE>public void <B>handleClick</B>(int&nbsp;x,                        int&nbsp;y,                        <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info)</PRE><DL><DD>Handles a 'click' on the plot.  Since the plot does not maintain any information about where it has been drawn, the plot area is supplied as an argument.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate.<DD><CODE>y</CODE> - the y coordinate.<DD><CODE>info</CODE> - an object for collecting information about the drawing of the chart.</DL></DD></DL><HR><A NAME="zoom(double)"><!-- --></A><H3>zoom</H3><PRE>public void <B>zoom</B>(double&nbsp;percent)</PRE><DL><DD>Performs a zoom on the plot.  Subclasses should override if zooming is appropriate for the type of plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>percent</CODE> - the zoom percentage.</DL></DD></DL><HR><A NAME="axisChanged(org.jfree.chart.event.AxisChangeEvent)"><!-- --></A><H3>axisChanged</H3><PRE>public void <B>axisChanged</B>(<A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html">AxisChangeEvent</A>&nbsp;event)</PRE><DL><DD>Receives notification of a change to one of the plot's axes.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/event/AxisChangeListener.html#axisChanged(org.jfree.chart.event.AxisChangeEvent)">axisChanged</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/event/AxisChangeListener.html">AxisChangeListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - information about the event (not used here).</DL></DD></DL><HR><A NAME="datasetChanged(org.jfree.data.DatasetChangeEvent)"><!-- --></A><H3>datasetChanged</H3><PRE>public void <B>datasetChanged</B>(<A HREF="../../../../org/jfree/data/DatasetChangeEvent.html">DatasetChangeEvent</A>&nbsp;event)</PRE><DL><DD>Receives notification of a change to the plot's dataset. <P> The plot reacts by passing on a plot change event to all registered listeners.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/DatasetChangeListener.html#datasetChanged(org.jfree.data.DatasetChangeEvent)">datasetChanged</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/DatasetChangeListener.html">DatasetChangeListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - information about the event (not used here).</DL></DD></DL><HR><A NAME="getRectX(double, double, double, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>getRectX</H3><PRE>protected double <B>getRectX</B>(double&nbsp;x,                          double&nbsp;w1,                          double&nbsp;w2,                          org.jfree.ui.RectangleEdge&nbsp;edge)</PRE><DL><DD>Adjusts the supplied x-value.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-value.<DD><CODE>w1</CODE> - width 1.<DD><CODE>w2</CODE> - width 2.<DD><CODE>edge</CODE> - the edge (left or right).<DT><B>Returns:</B><DD>the adjusted x-value.</DL></DD></DL><HR><A NAME="getRectY(double, double, double, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>getRectY</H3><PRE>protected double <B>getRectY</B>(double&nbsp;y,                          double&nbsp;h1,                          double&nbsp;h2,                          org.jfree.ui.RectangleEdge&nbsp;edge)</PRE><DL><DD>Adjusts the supplied y-value.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - the x-value.<DD><CODE>h1</CODE> - height 1.<DD><CODE>h2</CODE> - height 2.<DD><CODE>edge</CODE> - the edge (top or bottom).<DT><B>Returns:</B><DD>the adjusted y-value.</DL></DD></DL><HR><A NAME="getDataAreaRatio()"><!-- --></A><H3>getDataAreaRatio</H3><PRE>public double <B>getDataAreaRatio</B>()</PRE><DL><DD>Returns the data area ratio.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The ratio.</DL></DD></DL><HR><A NAME="setDataAreaRatio(double)"><!-- --></A><H3>setDataAreaRatio</H3><PRE>public void <B>setDataAreaRatio</B>(double&nbsp;ratio)</PRE><DL><DD>Sets the data area ratio.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ratio</CODE> - the ratio.</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 plot for equality with another object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</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>protected java.lang.Object <B>clone</B>()                          throws java.lang.CloneNotSupportedException</PRE><DL><DD>Creates a clone of the plot.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if some component of the plot does not support cloning.</DL></DD></DL><HR><A NAME="resolveDomainAxisLocation(org.jfree.chart.axis.AxisLocation, org.jfree.chart.plot.PlotOrientation)"><!-- --></A><H3>resolveDomainAxisLocation</H3><PRE>public static org.jfree.ui.RectangleEdge <B>resolveDomainAxisLocation</B>(<A HREF="../../../../org/jfree/chart/axis/AxisLocation.html">AxisLocation</A>&nbsp;location,                                                                   <A HREF="../../../../org/jfree/chart/plot/PlotOrientation.html">PlotOrientation</A>&nbsp;orientation)</PRE><DL><DD>Resolves a domain axis location for a given plot orientation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - the location.<DD><CODE>orientation</CODE> - the orientation.<DT><B>Returns:</B><DD>The edge for the domain axis.</DL></DD></DL><HR><A NAME="resolveRangeAxisLocation(org.jfree.chart.axis.AxisLocation, org.jfree.chart.plot.PlotOrientation)"><!-- --></A><H3>resolveRangeAxisLocation</H3><PRE>public static org.jfree.ui.RectangleEdge <B>resolveRangeAxisLocation</B>(<A HREF="../../../../org/jfree/chart/axis/AxisLocation.html">AxisLocation</A>&nbsp;location,                                                                  <A HREF="../../../../org/jfree/chart/plot/PlotOrientation.html">PlotOrientation</A>&nbsp;orientation)</PRE><DL><DD>Resolves a domain axis location for a given plot orientation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - the location.<DD><CODE>orientation</CODE> - the orientation.<DT><B>Returns:</B><DD>The edge for the domain axis.</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/plot/PiePlot.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/jfree/chart/plot/PlotOrientation.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="Plot.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="../../../../allcla

⌨️ 快捷键说明

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