jfreechart.html
来自「JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东」· HTML 代码 · 共 1,606 行 · 第 1/5 页
HTML
1,606 行
<DT><B>Parameters:</B><DD><CODE>stroke</CODE> - the stroke.</DL></DD></DL><HR><A NAME="getBorderPaint()"><!-- --></A><H3>getBorderPaint</H3><PRE>public java.awt.Paint <B>getBorderPaint</B>()</PRE><DL><DD>Returns the paint used to draw the chart border (if visible).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The border paint.</DL></DD></DL><HR><A NAME="setBorderPaint(java.awt.Paint)"><!-- --></A><H3>setBorderPaint</H3><PRE>public void <B>setBorderPaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the paint used to draw the chart border (if visible).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the paint.</DL></DD></DL><HR><A NAME="getTitle()"><!-- --></A><H3>getTitle</H3><PRE>public <A HREF="../../../org/jfree/chart/title/TextTitle.html" title="class in org.jfree.chart.title">TextTitle</A> <B>getTitle</B>()</PRE><DL><DD>Returns the chart title.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the chart title (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setTitle(org.jfree.chart.title.TextTitle)"><!-- --></A><H3>setTitle</H3><PRE>public void <B>setTitle</B>(<A HREF="../../../org/jfree/chart/title/TextTitle.html" title="class in org.jfree.chart.title">TextTitle</A> title)</PRE><DL><DD>Sets the title for the chart. If you do not want a title for the chart, set it to <code>null</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the title (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="setTitle(java.lang.String)"><!-- --></A><H3>setTitle</H3><PRE>public void <B>setTitle</B>(java.lang.String title)</PRE><DL><DD>Sets the chart title. This is a convenience method that ends up calling the <A HREF="../../../org/jfree/chart/JFreeChart.html#setTitle(org.jfree.chart.title.TextTitle)"><CODE>setTitle(TextTitle)</CODE></A> method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the new title (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getSubtitles()"><!-- --></A><H3>getSubtitles</H3><PRE>public java.util.List <B>getSubtitles</B>()</PRE><DL><DD>Returns the list of subtitles.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the subtitle list.</DL></DD></DL><HR><A NAME="setSubtitles(java.util.List)"><!-- --></A><H3>setSubtitles</H3><PRE>public void <B>setSubtitles</B>(java.util.List subtitles)</PRE><DL><DD>Sets the title list for the chart (completely replaces any existing titles).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>subtitles</CODE> - the new list of subtitles.</DL></DD></DL><HR><A NAME="getSubtitleCount()"><!-- --></A><H3>getSubtitleCount</H3><PRE>public int <B>getSubtitleCount</B>()</PRE><DL><DD>Returns the number of titles for the chart.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of titles for the chart.</DL></DD></DL><HR><A NAME="getSubtitle(int)"><!-- --></A><H3>getSubtitle</H3><PRE>public <A HREF="../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A> <B>getSubtitle</B>(int index)</PRE><DL><DD>Returns a chart subtitle.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the chart subtitle (zero based).<DT><B>Returns:</B><DD>a chart subtitle.</DL></DD></DL><HR><A NAME="addSubtitle(org.jfree.chart.title.Title)"><!-- --></A><H3>addSubtitle</H3><PRE>public void <B>addSubtitle</B>(<A HREF="../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A> subtitle)</PRE><DL><DD>Adds a chart subtitle, and notifies registered listeners that the chart has been modified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>subtitle</CODE> - the subtitle.</DL></DD></DL><HR><A NAME="getLegend()"><!-- --></A><H3>getLegend</H3><PRE>public <A HREF="../../../org/jfree/chart/Legend.html" title="class in org.jfree.chart">Legend</A> <B>getLegend</B>()</PRE><DL><DD>Returns the chart legend.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the chart legend (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setLegend(org.jfree.chart.Legend)"><!-- --></A><H3>setLegend</H3><PRE>public void <B>setLegend</B>(<A HREF="../../../org/jfree/chart/Legend.html" title="class in org.jfree.chart">Legend</A> legend)</PRE><DL><DD>Sets the chart legend. Registered listeners are notified that the chart has been modified. The legends chart reference is updated.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>legend</CODE> - the new chart legend (null permitted).</DL></DD></DL><HR><A NAME="getPlot()"><!-- --></A><H3>getPlot</H3><PRE>public <A HREF="../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">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" title="class in org.jfree.chart.plot">CategoryPlot</A> <B>getCategoryPlot</B>()</PRE><DL><DD>Returns the plot cast as a <A HREF="../../../org/jfree/chart/plot/CategoryPlot.html" title="class in org.jfree.chart.plot"><CODE>CategoryPlot</CODE></A>. <p> NOTE: if the plot is not an instance of <A HREF="../../../org/jfree/chart/plot/CategoryPlot.html" title="class in org.jfree.chart.plot"><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" title="class in org.jfree.chart.plot">XYPlot</A> <B>getXYPlot</B>()</PRE><DL><DD>Returns the plot cast as an <A HREF="../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot"><CODE>XYPlot</CODE></A>. <p> NOTE: if the plot is not an instance of <A HREF="../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot"><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>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 flag)</PRE><DL><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, but is slower.<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 paint used for the chart background.<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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?