📄 jfreechart.html
字号:
<DT><B>Parameters:</B><DD><CODE>text</CODE> - the title text (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="addLegend(org.jfree.chart.title.LegendTitle)"><!-- --></A><H3>addLegend</H3><PRE>public void <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.565"><B>addLegend</B></A>(<A HREF="../../../org/jfree/chart/title/LegendTitle.html" title="class in org.jfree.chart.title">LegendTitle</A> legend)</PRE><DL><DD>Adds a legend to the plot 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>legend</CODE> - the legend (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getLegend()"><!-- --></A><H3>getLegend</H3><PRE>public <A HREF="../../../org/jfree/chart/title/LegendTitle.html" title="class in org.jfree.chart.title">LegendTitle</A> <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.575"><B>getLegend</B></A>()</PRE><DL><DD>Returns the legend for the chart, if there is one. Note that a chart can have more than one legend - this method returns the first.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The legend (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="getLegend(int)"><!-- --></A><H3>getLegend</H3><PRE>public <A HREF="../../../org/jfree/chart/title/LegendTitle.html" title="class in org.jfree.chart.title">LegendTitle</A> <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.586"><B>getLegend</B></A>(int index)</PRE><DL><DD>Returns the nth legend for a chart, or <code>null</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the legend index (zero-based).<DT><B>Returns:</B><DD>The legend (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="removeLegend()"><!-- --></A><H3>removeLegend</H3><PRE>public void <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.607"><B>removeLegend</B></A>()</PRE><DL><DD>Removes the first legend in 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></DL></DD></DL><HR><A NAME="getSubtitles()"><!-- --></A><H3>getSubtitles</H3><PRE>public java.util.List <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.616"><B>getSubtitles</B></A>()</PRE><DL><DD>Returns the list of subtitles for the chart.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The subtitle list (possibly empty, but never <code>null</code>).</DL></DD></DL><HR><A NAME="setSubtitles(java.util.List)"><!-- --></A><H3>setSubtitles</H3><PRE>public void <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.627"><B>setSubtitles</B></A>(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 (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getSubtitleCount()"><!-- --></A><H3>getSubtitleCount</H3><PRE>public int <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.640"><B>getSubtitleCount</B></A>()</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> <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.651"><B>getSubtitle</B></A>(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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.664"><B>addSubtitle</B></A>(<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 (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="clearSubtitles()"><!-- --></A><H3>clearSubtitles</H3><PRE>public void <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.677"><B>clearSubtitles</B></A>()</PRE><DL><DD>Clears all subtitles from 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></DL></DD></DL><HR><A NAME="removeSubtitle(org.jfree.chart.title.Title)"><!-- --></A><H3>removeSubtitle</H3><PRE>public void <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.693"><B>removeSubtitle</B></A>(<A HREF="../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A> title)</PRE><DL><DD>Removes the specified subtitle 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>title</CODE> - the title.</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> <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.705"><B>getPlot</B></A>()</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> <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.717"><B>getCategoryPlot</B></A>()</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> <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.729"><B>getXYPlot</B></A>()</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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.739"><B>getAntiAlias</B></A>()</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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.755"><B>setAntiAlias</B></A>(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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -