plot.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,772 行 · 第 1/5 页
HTML
1,772 行
<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>insets</CODE> - the new insets.</DL></DD></DL><HR><A NAME="setInsets(java.awt.Insets, boolean)"><!-- --></A><H3>setInsets</H3><PRE>public void <B>setInsets</B>(java.awt.Insets insets, boolean notify)</PRE><DL><DD>Sets the insets for the plot and, if requested, notifies registered listeners that the plot has been modified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>insets</CODE> - the new insets.<DD><CODE>notify</CODE> - a flag that controls whether the registered listeners are notified.</DL></DD></DL><HR><A NAME="getBackgroundPaint()"><!-- --></A><H3>getBackgroundPaint</H3><PRE>public java.awt.Paint <B>getBackgroundPaint</B>()</PRE><DL><DD>Returns the background color of the plot area.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The paint (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setBackgroundPaint(java.awt.Paint)"><!-- --></A><H3>setBackgroundPaint</H3><PRE>public void <B>setBackgroundPaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the background color of the plot area. A <A HREF="../../../../org/jfree/chart/event/PlotChangeEvent.html"><CODE>PlotChangeEvent</CODE></A> is forwarded to all registered listeners.<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="getBackgroundAlpha()"><!-- --></A><H3>getBackgroundAlpha</H3><PRE>public float <B>getBackgroundAlpha</B>()</PRE><DL><DD>Returns the alpha transparency of the plot area background.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the alpha transparency.</DL></DD></DL><HR><A NAME="setBackgroundAlpha(float)"><!-- --></A><H3>setBackgroundAlpha</H3><PRE>public void <B>setBackgroundAlpha</B>(float alpha)</PRE><DL><DD>Sets the alpha transparency of the plot area background, and notifies registered listeners that the plot has been modified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the new alpha value.</DL></DD></DL><HR><A NAME="getDrawingSupplier()"><!-- --></A><H3>getDrawingSupplier</H3><PRE>public <A HREF="../../../../org/jfree/chart/plot/DrawingSupplier.html">DrawingSupplier</A> <B>getDrawingSupplier</B>()</PRE><DL><DD>Returns the drawing supplier for the plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The drawing supplier.</DL></DD></DL><HR><A NAME="setDrawingSupplier(org.jfree.chart.plot.DrawingSupplier)"><!-- --></A><H3>setDrawingSupplier</H3><PRE>public void <B>setDrawingSupplier</B>(<A HREF="../../../../org/jfree/chart/plot/DrawingSupplier.html">DrawingSupplier</A> supplier)</PRE><DL><DD>Sets the drawing supplier for the plot. The drawing supplier is responsible for supplying a limitless (possibly repeating) sequence of <code>Paint</code>, <code>Stroke</code> and <code>Shape</code> objects that the plot's renderer(s) can use to populate its(their) tables.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>supplier</CODE> - the new supplier.</DL></DD></DL><HR><A NAME="getBackgroundImage()"><!-- --></A><H3>getBackgroundImage</H3><PRE>public java.awt.Image <B>getBackgroundImage</B>()</PRE><DL><DD>Returns the background image that is used to fill the plot's background area.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The image (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setBackgroundImage(java.awt.Image)"><!-- --></A><H3>setBackgroundImage</H3><PRE>public void <B>setBackgroundImage</B>(java.awt.Image image)</PRE><DL><DD>Sets the background image for the plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getBackgroundImageAlignment()"><!-- --></A><H3>getBackgroundImageAlignment</H3><PRE>public int <B>getBackgroundImageAlignment</B>()</PRE><DL><DD>Returns the background image alignment. Alignment constants are defined in the <code>org.jfree.ui.Align</code> class in the JCommon class library.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The alignment.</DL></DD></DL><HR><A NAME="setBackgroundImageAlignment(int)"><!-- --></A><H3>setBackgroundImageAlignment</H3><PRE>public void <B>setBackgroundImageAlignment</B>(int alignment)</PRE><DL><DD>Sets the background alignment. <p> Alignment options are defined by the <CODE>Align</CODE> class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the alignment.</DL></DD></DL><HR><A NAME="getOutlineStroke()"><!-- --></A><H3>getOutlineStroke</H3><PRE>public java.awt.Stroke <B>getOutlineStroke</B>()</PRE><DL><DD>Returns the stroke used to outline the plot area.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The stroke (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setOutlineStroke(java.awt.Stroke)"><!-- --></A><H3>setOutlineStroke</H3><PRE>public void <B>setOutlineStroke</B>(java.awt.Stroke stroke)</PRE><DL><DD>Sets the stroke used to outline the plot area. A <A HREF="../../../../org/jfree/chart/event/PlotChangeEvent.html"><CODE>PlotChangeEvent</CODE></A> is sent to all registered listeners. <p> 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>stroke</CODE> - the stroke (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getOutlinePaint()"><!-- --></A><H3>getOutlinePaint</H3><PRE>public java.awt.Paint <B>getOutlinePaint</B>()</PRE><DL><DD>Returns the color used to draw the outline of the plot area.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The color (possibly <code>null<code>).</DL></DD></DL><HR><A NAME="setOutlinePaint(java.awt.Paint)"><!-- --></A><H3>setOutlinePaint</H3><PRE>public void <B>setOutlinePaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the color used to draw the outline of the plot area. A <A HREF="../../../../org/jfree/chart/event/PlotChangeEvent.html"><CODE>PlotChangeEvent</CODE></A> is sent to all registered listeners. <p> 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 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">LegendItemCollection</A> <B>getLegendItems</B>()</PRE><DL><DD>Returns the legend items for the plot. <P> By default, this method returns <code>null</code>. Subclasses should override to return a <A HREF="../../../../org/jfree/chart/LegendItemCollection.html"><CODE>LegendItemCollection</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the legend items for the plot.</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">PlotChangeListener</A> 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">PlotChangeListener</A> 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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?