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

📄 jfreechart.html

📁 JFreeChart的帮助文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DD></DL><HR><A NAME="getPlot()"><!-- --></A><H3>getPlot</H3><PRE>public <A HREF="../../../org/jfree/chart/plot/Plot.html">Plot</A> <B>getPlot</B>()</PRE><DL><DD>Returns the plot for the chart.  The plot is a class responsible for coordinating the visual representation of the data, including the axes (if any).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the plot.</DL></DD></DL><HR><A NAME="getCategoryPlot()"><!-- --></A><H3>getCategoryPlot</H3><PRE>public <A HREF="../../../org/jfree/chart/plot/CategoryPlot.html">CategoryPlot</A> <B>getCategoryPlot</B>()</PRE><DL><DD>Returns the plot cast as a <A HREF="../../../org/jfree/chart/plot/CategoryPlot.html"><CODE>CategoryPlot</CODE></A>. <p> NOTE: if the plot is not an instance of <A HREF="../../../org/jfree/chart/plot/CategoryPlot.html"><CODE>CategoryPlot</CODE></A>, then a <code>ClassCastException</code> is thrown.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the plot.</DL></DD></DL><HR><A NAME="getXYPlot()"><!-- --></A><H3>getXYPlot</H3><PRE>public <A HREF="../../../org/jfree/chart/plot/XYPlot.html">XYPlot</A> <B>getXYPlot</B>()</PRE><DL><DD>Returns the plot cast as an <A HREF="../../../org/jfree/chart/plot/XYPlot.html"><CODE>XYPlot</CODE></A>. <p> NOTE: if the plot is not an instance of <A HREF="../../../org/jfree/chart/plot/XYPlot.html"><CODE>XYPlot</CODE></A>, then a <code>ClassCastException</code> is thrown.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the plot.</DL></DD></DL><HR><A NAME="getAntiAlias()"><!-- --></A><H3>getAntiAlias</H3><PRE>public boolean <B>getAntiAlias</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Add hints using the getRenderingHints()/setRenderingHints() methods.</I><P><DD>Returns a flag that indicates whether or not anti-aliasing is used when the chart is drawn.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the flag.</DL></DD></DL><HR><A NAME="setAntiAlias(boolean)"><!-- --></A><H3>setAntiAlias</H3><PRE>public void <B>setAntiAlias</B>(boolean&nbsp;flag)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Add hints using the getRenderingHints()/setRenderingHints() methods.</I><P><DD>Sets a flag that indicates whether or not anti-aliasing is used when the chart is drawn. <P> Anti-aliasing usually improves the appearance of charts.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the new value of the flag.</DL></DD></DL><HR><A NAME="getBackgroundPaint()"><!-- --></A><H3>getBackgroundPaint</H3><PRE>public java.awt.Paint <B>getBackgroundPaint</B>()</PRE><DL><DD>Returns the color/shade used to fill the chart background.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the color/shade used to fill the chart background.</DL></DD></DL><HR><A NAME="setBackgroundPaint(java.awt.Paint)"><!-- --></A><H3>setBackgroundPaint</H3><PRE>public void <B>setBackgroundPaint</B>(java.awt.Paint&nbsp;paint)</PRE><DL><DD>Sets the color/shade used to fill the chart background.  All registered listeners are notified that the chart has been changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the new background color/shade.</DL></DD></DL><HR><A NAME="getBackgroundImage()"><!-- --></A><H3>getBackgroundImage</H3><PRE>public java.awt.Image <B>getBackgroundImage</B>()</PRE><DL><DD>Returns the chart's background image (possibly null).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the image.</DL></DD></DL><HR><A NAME="setBackgroundImage(java.awt.Image)"><!-- --></A><H3>setBackgroundImage</H3><PRE>public void <B>setBackgroundImage</B>(java.awt.Image&nbsp;image)</PRE><DL><DD>Sets the chart's background image (null permitted). Registered listeners are notified that the chart has been changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image.</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&nbsp;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&nbsp;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&nbsp;notify)</PRE><DL><DD>Sets a flag that controls whether or not listeners receive <A HREF="../../../org/jfree/chart/event/ChartChangeEvent.html"><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&nbsp;g2,                 java.awt.geom.Rectangle2D&nbsp;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&nbsp;g2,                 java.awt.geom.Rectangle2D&nbsp;chartArea,                 <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;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>info</CODE> - records info about the drawing (null means collect no info).</DL></DD></DL><HR><A NAME="drawTitle(org.jfree.chart.AbstractTitle, java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawTitle</H3><PRE>public void <B>drawTitle</B>(<A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A>&nbsp;title,                      java.awt.Graphics2D&nbsp;g2,                      java.awt.geom.Rectangle2D&nbsp;nonTitleArea)</PRE><DL><DD>Draws a title. <P> The title should be drawn at the top, bottom, left or right of the nonTitleArea, 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.<DD><CODE>g2</CODE> - the graphics device.<DD><CODE>nonTitleArea</CODE> - the area.</DL></DD></DL><HR><A NAME="createBufferedImage(int, int)"><!-- --></A><H3>createBufferedImage</H3><PRE>public java.awt.image.BufferedImage <B>createBufferedImage</B>(int&nbsp;width,                                                        int&nbsp;height)</PRE><DL><DD>Creates and returns a buffered image into which the chart has been drawn.<P><DD><DL>

⌨️ 快捷键说明

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