⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plot.html

📁 JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DL><HR><A NAME="setOutlinePaint(java.awt.Paint)"><!-- --></A><H3>setOutlinePaint</H3><PRE>public void <B>setOutlinePaint</B>(java.awt.Paint&nbsp;paint)</PRE><DL><DD>Sets the paint used to draw the outline of the plot area and sends a <A HREF="../../../../org/jfree/chart/event/PlotChangeEvent.html" title="class in org.jfree.chart.event"><CODE>PlotChangeEvent</CODE></A>  to all registered listeners.  If you set this attribute to <code>null</code>, no outline  will be drawn.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the paint (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getForegroundAlpha()"><!-- --></A><H3>getForegroundAlpha</H3><PRE>public float <B>getForegroundAlpha</B>()</PRE><DL><DD>Returns the alpha-transparency for the plot foreground.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the alpha-transparency.</DL></DD></DL><HR><A NAME="setForegroundAlpha(float)"><!-- --></A><H3>setForegroundAlpha</H3><PRE>public void <B>setForegroundAlpha</B>(float&nbsp;alpha)</PRE><DL><DD>Sets the alpha-transparency for the plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the new alpha transparency.</DL></DD></DL><HR><A NAME="getLegendItems()"><!-- --></A><H3>getLegendItems</H3><PRE>public <A HREF="../../../../org/jfree/chart/LegendItemCollection.html" title="class in org.jfree.chart">LegendItemCollection</A> <B>getLegendItems</B>()</PRE><DL><DD>Returns the legend items for the plot.  By default, this method returns <code>null</code>.   Subclasses should override to return a <A HREF="../../../../org/jfree/chart/LegendItemCollection.html" title="class in org.jfree.chart"><CODE>LegendItemCollection</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The legend items for the plot (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="addChangeListener(org.jfree.chart.event.PlotChangeListener)"><!-- --></A><H3>addChangeListener</H3><PRE>public void <B>addChangeListener</B>(<A HREF="../../../../org/jfree/chart/event/PlotChangeListener.html" title="interface in org.jfree.chart.event">PlotChangeListener</A>&nbsp;listener)</PRE><DL><DD>Registers an object for notification of changes to the plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the object to be registered.</DL></DD></DL><HR><A NAME="removeChangeListener(org.jfree.chart.event.PlotChangeListener)"><!-- --></A><H3>removeChangeListener</H3><PRE>public void <B>removeChangeListener</B>(<A HREF="../../../../org/jfree/chart/event/PlotChangeListener.html" title="interface in org.jfree.chart.event">PlotChangeListener</A>&nbsp;listener)</PRE><DL><DD>Unregisters an object for notification of changes to the plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the object to be unregistered.</DL></DD></DL><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" title="class in org.jfree.chart.event">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.plot.PlotState, org.jfree.chart.plot.PlotRenderingInfo)"><!-- --></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/plot/PlotState.html" title="class in org.jfree.chart.plot">PlotState</A>&nbsp;parentState,                          <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</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>parentState</CODE> - the state from the parent plot, if there is one.<DD><CODE>info</CODE> - an object for collecting information about the drawing of the chart.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.geom.Point2D, org.jfree.chart.plot.PlotState, org.jfree.chart.plot.PlotRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(java.awt.Graphics2D&nbsp;g2,                 java.awt.geom.Rectangle2D&nbsp;area,                 java.awt.geom.Point2D&nbsp;anchor,                 <A HREF="../../../../org/jfree/chart/plot/PlotState.html" title="class in org.jfree.chart.plot">PlotState</A>&nbsp;parentState,                 <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</A>&nbsp;info)</PRE><DL><DD>Implement later to make use of anchor.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the plot area.<DD><CODE>anchor</CODE> - the anchor point.<DD><CODE>parentState</CODE> - the parent state (if any).<DD><CODE>info</CODE> - carries back plot rendering info.</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>Draws the plot background (the background color and/or image). <P> This method will be called during the chart drawing process and is declared public so that it can be accessed by the renderers used by certain subclasses.  You shouldn't  need to call this method directly.<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="fillBackground(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>fillBackground</H3><PRE>protected void <B>fillBackground</B>(java.awt.Graphics2D&nbsp;g2,                              java.awt.geom.Rectangle2D&nbsp;area)</PRE><DL><DD>Fills the specified area with the background paint.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area.</DL></DD></DL><HR><A NAME="drawBackgroundImage(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawBackgroundImage</H3><PRE>protected void <B>drawBackgroundImage</B>(java.awt.Graphics2D&nbsp;g2,                                   java.awt.geom.Rectangle2D&nbsp;area)</PRE><DL><DD>Draws the background image (if there is one) aligned within the specified area.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area.</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>Draws the plot outline.  This method will be called during the chart drawing process and is declared public so that it can be accessed by the renderers used by certain subclasses.   You shouldn't need to call this method directly.<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.plot.PlotRenderingInfo)"><!-- --></A><H3>handleClick</H3><PRE>public void <B>handleClick</B>(int&nbsp;x,                        int&nbsp;y,                        <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</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 rendering info is supplied as an argument.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate (in Java2D space).<DD><CODE>y</CODE> - the y coordinate (in Java2D space).<DD><CODE>info</CODE> - an object containing information about the dimensions of the plot.</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" title="class in org.jfree.chart.event">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" title="interface in org.jfree.chart.event">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" title="class in org.jfree.data">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" title="interface in org.jfree.data">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,   

⌨️ 快捷键说明

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