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

📄 jfreechart.html

📁 jfreechart最新源代码
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 <br><br> Note that the  <A HREF="../../../org/jfree/chart/ChartFactory.html" title="class in org.jfree.chart"><CODE>ChartFactory</CODE></A> class contains a range  of static methods that will return ready-made charts, and often this is a more convenient way to create charts than using this constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>plot</CODE> - the plot (<code>null</code> not permitted).</DL></DL><HR><A NAME="JFreeChart(java.lang.String, org.jfree.chart.plot.Plot)"><!-- --></A><H3>JFreeChart</H3><PRE>public <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.327"><B>JFreeChart</B></A>(java.lang.String&nbsp;title,                  <A HREF="../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A>&nbsp;plot)</PRE><DL><DD>Creates a new chart with the given title and plot.  A default font  (@link DEFAULT_TITLE_FONT) is used for the title, and the chart will  have a legend added automatically.   <br><br> Note that the  <A HREF="../../../org/jfree/chart/ChartFactory.html" title="class in org.jfree.chart"><CODE>ChartFactory</CODE></A> class contains a range  of static methods that will return ready-made charts, and often this is a more convenient way to create charts than using this constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the chart title (<code>null</code> permitted).<DD><CODE>plot</CODE> - the plot (<code>null</code> not permitted).</DL></DL><HR><A NAME="JFreeChart(java.lang.String, java.awt.Font, org.jfree.chart.plot.Plot, boolean)"><!-- --></A><H3>JFreeChart</H3><PRE>public <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.348"><B>JFreeChart</B></A>(java.lang.String&nbsp;title,                  java.awt.Font&nbsp;titleFont,                  <A HREF="../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A>&nbsp;plot,                  boolean&nbsp;createLegend)</PRE><DL><DD>Creates a new chart with the given title and plot.  The  <code>createLegend</code> argument specifies whether or not a legend should be added to the chart.   <br><br> Note that the  <A HREF="../../../org/jfree/chart/ChartFactory.html" title="class in org.jfree.chart"><CODE>ChartFactory</CODE></A> class contains a range  of static methods that will return ready-made charts, and often this is a more convenient way to create charts than using this constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the chart title (<code>null</code> permitted).<DD><CODE>titleFont</CODE> - the font for displaying the chart title                    (<code>null</code> permitted).<DD><CODE>plot</CODE> - controller of the visual representation of the data               (<code>null</code> not permitted).<DD><CODE>createLegend</CODE> - a flag indicating whether or not a legend should                         be created for the chart.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getRenderingHints()"><!-- --></A><H3>getRenderingHints</H3><PRE>public java.awt.RenderingHints <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.408"><B>getRenderingHints</B></A>()</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 (never <code>null</code>).</DL></DD></DL><HR><A NAME="setRenderingHints(java.awt.RenderingHints)"><!-- --></A><H3>setRenderingHints</H3><PRE>public void <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.420"><B>setRenderingHints</B></A>(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 (<code>null</code> not                         permitted).</DL></DD></DL><HR><A NAME="isBorderVisible()"><!-- --></A><H3>isBorderVisible</H3><PRE>public boolean <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.434"><B>isBorderVisible</B></A>()</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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.444"><B>setBorderVisible</B></A>(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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.454"><B>getBorderStroke</B></A>()</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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.463"><B>setBorderStroke</B></A>(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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.473"><B>getBorderPaint</B></A>()</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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.482"><B>setBorderPaint</B></A>(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="getPadding()"><!-- --></A><H3>getPadding</H3><PRE>public org.jfree.ui.RectangleInsets <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.492"><B>getPadding</B></A>()</PRE><DL><DD>Returns the padding between the chart border and the chart drawing area.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The padding (never <code>null</code>).</DL></DD></DL><HR><A NAME="setPadding(org.jfree.ui.RectangleInsets)"><!-- --></A><H3>setPadding</H3><PRE>public void <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.502"><B>setPadding</B></A>(org.jfree.ui.RectangleInsets&nbsp;padding)</PRE><DL><DD>Sets the padding between the chart border and the chart drawing area, 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>padding</CODE> - the padding (<code>null</code> not permitted).</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> <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.518"><B>getTitle</B></A>()</PRE><DL><DD>Returns the main chart title.  Very often a chart will have just one title, so we make this case simple by providing accessor methods for the main title.  However, multiple titles are supported - see the <A HREF="../../../org/jfree/chart/JFreeChart.html#addSubtitle(org.jfree.chart.title.Title)"><CODE>addSubtitle(Title)</CODE></A> method.<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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.530"><B>setTitle</B></A>(<A HREF="../../../org/jfree/chart/title/TextTitle.html" title="class in org.jfree.chart.title">TextTitle</A>&nbsp;title)</PRE><DL><DD>Sets the main title 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.  If you do not want a title for the  chart, set it to <code>null</code>.  If you want more than one title on a chart, use the <A HREF="../../../org/jfree/chart/JFreeChart.html#addSubtitle(org.jfree.chart.title.Title)"><CODE>addSubtitle(Title)</CODE></A> method.<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 <A HREF="../../../src-html/org/jfree/chart/JFreeChart.html#line.545"><B>setTitle</B></A>(java.lang.String&nbsp;text)</PRE><DL><DD>Sets the chart title 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.  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.  If there is an existing title, its text is updated, otherwise a new title using the default font is  added to the chart.  If <code>text</code> is <code>null</code> the chart title is set to <code>null</code>.<P><DD><DL></DL></DD><DD><DL>

⌨️ 快捷键说明

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