📄 jfreechart.html
字号:
public void <B>setBackgroundPaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the paint used to fill the chart background and sends a <A HREF="../../../org/jfree/chart/event/ChartChangeEvent.html" title="class in org.jfree.chart.event"><CODE>ChartChangeEvent</CODE></A> 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="getBackgroundImage()"><!-- --></A><H3>getBackgroundImage</H3><PRE>public java.awt.Image <B>getBackgroundImage</B>()</PRE><DL><DD>Returns the background image for the chart, or <code>null</code> if there is no image.<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 chart and sends a <A HREF="../../../org/jfree/chart/event/ChartChangeEvent.html" title="class in org.jfree.chart.event"><CODE>ChartChangeEvent</CODE></A> to all registered listeners.<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>com.jrefinery.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="getBackgroundImageAlpha()"><!-- --></A><H3>getBackgroundImageAlpha</H3><PRE>public float <B>getBackgroundImageAlpha</B>()</PRE><DL><DD>Returns the alpha-transparency for the chart's background image.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the alpha-transparency.</DL></DD></DL><HR><A NAME="setBackgroundImageAlpha(float)"><!-- --></A><H3>setBackgroundImageAlpha</H3><PRE>public void <B>setBackgroundImageAlpha</B>(float alpha)</PRE><DL><DD>Sets the alpha-transparency for the chart's background image. Registered listeners are notified that the chart has been changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the alpha value.</DL></DD></DL><HR><A NAME="isNotify()"><!-- --></A><H3>isNotify</H3><PRE>public boolean <B>isNotify</B>()</PRE><DL><DD>Returns a flag that controls whether or not change events are sent to registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</DL></DD></DL><HR><A NAME="setNotify(boolean)"><!-- --></A><H3>setNotify</H3><PRE>public void <B>setNotify</B>(boolean notify)</PRE><DL><DD>Sets a flag that controls whether or not listeners receive <A HREF="../../../org/jfree/chart/event/ChartChangeEvent.html" title="class in org.jfree.chart.event"><CODE>ChartChangeEvent</CODE></A> notifications.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>notify</CODE> - a boolean.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)</PRE><DL><DD>Draws the chart on a Java 2D graphics device (such as the screen or a printer). <P> This method is the focus of the entire JFreeChart library.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>draw</CODE> in interface <CODE>org.jfree.ui.Drawable</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area within which the chart should be drawn.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info)</PRE><DL><DD>Draws the chart on a Java 2D graphics device (such as the screen or a printer). <P> This method is the focus of the entire JFreeChart library.<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 chart should be drawn.<DD><CODE>info</CODE> - records info about the drawing (null means collect no info).</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.geom.Point2D, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D chartArea, java.awt.geom.Point2D anchor, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info)</PRE><DL><DD>Draws the chart on a Java 2D graphics device (such as the screen or a printer). <P> This method is the focus of the entire JFreeChart library.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>chartArea</CODE> - the area within which the chart should be drawn.<DD><CODE>anchor</CODE> - the anchor point (in Java2D space) for the chart (<code>null</code> permitted).<DD><CODE>info</CODE> - records info about the drawing (null means collect no info).</DL></DD></DL><HR><A NAME="drawTitle(org.jfree.chart.title.Title, java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawTitle</H3><PRE>public void <B>drawTitle</B>(<A HREF="../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A> title, java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)</PRE><DL><DD>Draws a title. The title should be drawn at the top, bottom, left or right of the specified area, and the area should be updated to reflect the amount of space used by the title.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the title (<code>null</code> not permitted).<DD><CODE>g2</CODE> - the graphics device (<code>null</code> not permitted).<DD><CODE>area</CODE> - the chart area, excluding any existing titles (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="createBufferedImage(int, int)"><!-- --></A><H3>createBufferedImage</H3><PRE>public java.awt.image.BufferedImage <B>createBufferedImage</B>(int width, int height)</PRE><DL><DD>Creates and returns a buffered image into which the chart has been drawn.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the width.<DD><CODE>height</CODE> - the height.<DT><B>Returns:</B><DD>a buffered image.</DL></DD></DL><HR><A NAME="createBufferedImage(int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>createBufferedImage</H3><PRE>public java.awt.image.BufferedImage <B>createBufferedImage</B>(int width, int height, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info)</PRE><DL><DD>Creates and returns a buffered image into which the chart has been drawn.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the width.<DD><CODE>height</CODE> - the height.<DD><CODE>info</CODE> - carries back chart state information (<code>null</code> permitted).<DT><B>Returns:</B><DD>a buffered image.</DL></DD></DL><HR><A NAME="createBufferedImage(int, int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>createBufferedImage</H3><PRE>public java.awt.image.BufferedImage <B>createBufferedImage</B>(int width, int height, int imageType, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info)</PRE><DL><DD>Creates and returns a buffered image into which the chart has been drawn.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the width.<DD><CODE>height</CODE> - the height.<DD><CODE>imageType</CODE> - the image type.<DD><CODE>info</CODE> - carries back chart state information (<code>null</code> permitted).<DT><B>Returns:</B><DD>a buffered image.</DL></DD></DL><HR><A NAME="createBufferedImage(int, int, double, double, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>createBufferedImage</H3><PRE>public java.awt.image.BufferedImage <B>createBufferedImage</B>(int imageWidth, int imageHeight, double drawWidth, double drawHeight, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info)</PRE><DL><DD>Creates and returns a buffered image into which the chart has been drawn.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>imageWidth</CODE> - the image width.<DD><CODE>imageHeight</CODE> - the image height.<DD><CODE>drawWidth</CODE> - the width for drawing the chart (will be scaled to fit image).<DD><CODE>drawHeight</CODE> - the height for drawing the chart (will be scaled to fit image).<DD><CODE>info</CODE> - optional object for collection chart dimension and entity information.<DT><B>Returns:</B><DD>a buffered image.</DL></DD></DL><HR><A NAME="handleClick(int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>handleClick</H3><PRE>pu
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -