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

📄 jfreechart.html

📁 JFreeChart的帮助文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="JFreeChart(org.jfree.chart.plot.Plot)"><!-- --></A><H3>JFreeChart</H3><PRE>public <B>JFreeChart</B>(<A HREF="../../../org/jfree/chart/plot/Plot.html">Plot</A>&nbsp;plot)</PRE><DL><DD>Constructs a chart. <P> Note that the <A HREF="../../../org/jfree/chart/ChartFactory.html"><CODE>ChartFactory</CODE></A> class contains static methods that will return a ready-made chart.<P><DT><B>Parameters:</B><DD><CODE>plot</CODE> - controller of the visual representation of the data.</DL><HR><A NAME="JFreeChart(java.lang.String, org.jfree.chart.plot.Plot)"><!-- --></A><H3>JFreeChart</H3><PRE>public <B>JFreeChart</B>(java.lang.String&nbsp;title,                  <A HREF="../../../org/jfree/chart/plot/Plot.html">Plot</A>&nbsp;plot)</PRE><DL><DD>Creates a new chart.<P><DT><B>Parameters:</B><DD><CODE>title</CODE> - the chart title.<DD><CODE>plot</CODE> - the plot.</DL><HR><A NAME="JFreeChart(java.lang.String, java.awt.Font, org.jfree.chart.plot.Plot, boolean)"><!-- --></A><H3>JFreeChart</H3><PRE>public <B>JFreeChart</B>(java.lang.String&nbsp;title,                  java.awt.Font&nbsp;titleFont,                  <A HREF="../../../org/jfree/chart/plot/Plot.html">Plot</A>&nbsp;plot,                  boolean&nbsp;createLegend)</PRE><DL><DD>Constructs a chart. <P> Note that the ChartFactory class contains static methods that will return a ready-made chart.<P><DT><B>Parameters:</B><DD><CODE>title</CODE> - the main chart title.<DD><CODE>titleFont</CODE> - the font for displaying the chart title.<DD><CODE>plot</CODE> - controller of the visual representation of the data.<DD><CODE>createLegend</CODE> - a flag indicating whether or not a legend should                      be created for the chart.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getRenderingHints()"><!-- --></A><H3>getRenderingHints</H3><PRE>public java.awt.RenderingHints <B>getRenderingHints</B>()</PRE><DL><DD>Returns the collection of rendering hints for the chart.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The rendering hints for the chart.</DL></DD></DL><HR><A NAME="setRenderingHints(java.awt.RenderingHints)"><!-- --></A><H3>setRenderingHints</H3><PRE>public void <B>setRenderingHints</B>(java.awt.RenderingHints&nbsp;renderingHints)</PRE><DL><DD>Sets the rendering hints for the chart.  These will be added (using the Graphics2D  addRenderingHints(...) method) near the start of the JFreeChart.draw(...) method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>renderingHints</CODE> - the rendering hints.</DL></DD></DL><HR><A NAME="isBorderVisible()"><!-- --></A><H3>isBorderVisible</H3><PRE>public boolean <B>isBorderVisible</B>()</PRE><DL><DD>Returns a flag that controls whether or not a border is drawn around the outside of the  chart.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="setBorderVisible(boolean)"><!-- --></A><H3>setBorderVisible</H3><PRE>public void <B>setBorderVisible</B>(boolean&nbsp;visible)</PRE><DL><DD>Sets a flag that controls whether or not a border is drawn around the outside of the chart.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>visible</CODE> - the flag.</DL></DD></DL><HR><A NAME="getBorderStroke()"><!-- --></A><H3>getBorderStroke</H3><PRE>public java.awt.Stroke <B>getBorderStroke</B>()</PRE><DL><DD>Returns the stroke used to draw the chart border (if visible).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The border stroke.</DL></DD></DL><HR><A NAME="setBorderStroke(java.awt.Stroke)"><!-- --></A><H3>setBorderStroke</H3><PRE>public void <B>setBorderStroke</B>(java.awt.Stroke&nbsp;stroke)</PRE><DL><DD>Sets the stroke used to draw the chart border (if visible).<P><DD><DL></DL></DD><DD><DL><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&nbsp;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/TextTitle.html">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.</DL></DD></DL><HR><A NAME="setTitle(org.jfree.chart.TextTitle)"><!-- --></A><H3>setTitle</H3><PRE>public void <B>setTitle</B>(<A HREF="../../../org/jfree/chart/TextTitle.html">TextTitle</A>&nbsp;title)</PRE><DL><DD>Sets the title for the chart.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the new title.</DL></DD></DL><HR><A NAME="setTitle(java.lang.String)"><!-- --></A><H3>setTitle</H3><PRE>public void <B>setTitle</B>(java.lang.String&nbsp;title)</PRE><DL><DD>Sets the chart title.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the new title.</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&nbsp;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/AbstractTitle.html">AbstractTitle</A> <B>getSubtitle</B>(int&nbsp;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.AbstractTitle)"><!-- --></A><H3>addSubtitle</H3><PRE>public void <B>addSubtitle</B>(<A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A>&nbsp;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">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">Legend</A>&nbsp;legend)</PRE><DL><DD>Sets the chart legend.  Registered listeners are notified that the chart has been modified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>legend</CODE> - the new chart legend (null permitted).</DL>

⌨️ 快捷键说明

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