📄 plot.html
字号:
</DD></DL><HR><A NAME="setDrawingSupplier(org.jfree.chart.plot.DrawingSupplier)"><!-- --></A><H3>setDrawingSupplier</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.543"><B>setDrawingSupplier</B></A>(<A HREF="../../../../org/jfree/chart/plot/DrawingSupplier.html" title="interface in org.jfree.chart.plot">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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.554"><B>getBackgroundImage</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.563"><B>setBackgroundImage</B></A>(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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.575"><B>getBackgroundImageAlignment</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.587"><B>setBackgroundImageAlignment</B></A>(int alignment)</PRE><DL><DD>Sets the alignment for the background image 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. Alignment options are defined by the <CODE>Align</CODE> class in the JCommon class library.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the alignment.</DL></DD></DL><HR><A NAME="getBackgroundImageAlpha()"><!-- --></A><H3>getBackgroundImageAlpha</H3><PRE>public float <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.603"><B>getBackgroundImageAlpha</B></A>()</PRE><DL><DD>Returns the alpha transparency used to draw the background image. This is a value in the range 0.0f to 1.0f, where 0.0f is fully transparent and 1.0f is fully opaque.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The alpha transparency.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/chart/plot/Plot.html#setBackgroundImageAlpha(float)"><CODE>setBackgroundImageAlpha(float)</CODE></A></DL></DD></DL><HR><A NAME="setBackgroundImageAlpha(float)"><!-- --></A><H3>setBackgroundImageAlpha</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.618"><B>setBackgroundImageAlpha</B></A>(float alpha)</PRE><DL><DD>Sets the alpha transparency used when drawing the background image.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the alpha transparency (in the range 0.0f to 1.0f, where 0.0f is fully transparent, and 1.0f is fully opaque).<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>alpha</code> is not within the specified range.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/chart/plot/Plot.html#getBackgroundImageAlpha()"><CODE>getBackgroundImageAlpha()</CODE></A></DL></DD></DL><HR><A NAME="getOutlineStroke()"><!-- --></A><H3>getOutlineStroke</H3><PRE>public java.awt.Stroke <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.634"><B>getOutlineStroke</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.645"><B>setOutlineStroke</B></A>(java.awt.Stroke stroke)</PRE><DL><DD>Sets the stroke used to outline 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>stroke</CODE> - the stroke (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getOutlinePaint()"><!-- --></A><H3>getOutlinePaint</H3><PRE>public java.awt.Paint <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.670"><B>getOutlinePaint</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.681"><B>setOutlinePaint</B></A>(java.awt.Paint 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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.706"><B>getForegroundAlpha</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.715"><B>setForegroundAlpha</B></A>(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" title="class in org.jfree.chart">LegendItemCollection</A> <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.731"><B>getLegendItems</B></A>()</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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/LegendItemSource.html#getLegendItems()">getLegendItems</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/LegendItemSource.html" title="interface in org.jfree.chart">LegendItemSource</A></CODE></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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.740"><B>addChangeListener</B></A>(<A HREF="../../../../org/jfree/chart/event/PlotChangeListener.html" title="interface in org.jfree.chart.event">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 <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.749"><B>removeChangeListener</B></A>(<A HREF="../../../../org/jfree/chart/event/PlotChangeListener.html" title="interface in org.jfree.chart.event">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><HR><A NAME="notifyListeners(org.jfree.chart.event.PlotChangeEvent)"><!-- --></A><H3>notifyListeners</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.758"><B>notifyListeners</B></A>(<A HREF="../../../../org/jfree/chart/event/PlotChangeEvent.html" title="class in org.jfree.chart.event">PlotChangeEvent</A> 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, java.awt.geom.Point2D, org.jfree.chart.plot.PlotState, org.jfree.chart.plot.PlotRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public abstract void <A HREF="../../../../src-html/org/jfree/chart/plot/Plot.html#line.783"><B>draw
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -