📄 jfreechart.html
字号:
Sets a flag that controls whether or not a border is drawn around the outside of the chart.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/JFreeChart.html#setLegend(org.jfree.chart.Legend)">setLegend</A></B>(<A HREF="../../../org/jfree/chart/Legend.html" title="class in org.jfree.chart">Legend</A> legend)</CODE><BR> Sets the chart legend.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/JFreeChart.html#setNotify(boolean)">setNotify</A></B>(boolean notify)</CODE><BR> Sets a flag that controls whether or not listeners receive <A HREF="../../../org/jfree/chart/event/ChartChangeEvent.html" title="class in org.jfree.chart.event"><CODE>ChartChangeEvent</CODE></A> notifications.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/JFreeChart.html#setRenderingHints(java.awt.RenderingHints)">setRenderingHints</A></B>(java.awt.RenderingHints renderingHints)</CODE><BR> Sets the rendering hints for the chart.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/JFreeChart.html#setSubtitles(java.util.List)">setSubtitles</A></B>(java.util.List subtitles)</CODE><BR> Sets the title list for the chart (completely replaces any existing titles).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/JFreeChart.html#setSuppressChartChangeEvents(boolean)">setSuppressChartChangeEvents</A></B>(boolean flag)</CODE><BR> <B>Deprecated.</B> <I>Use setNotify(boolean) instead.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/JFreeChart.html#setTitle(java.lang.String)">setTitle</A></B>(java.lang.String title)</CODE><BR> Sets the chart title.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/JFreeChart.html#setTitle(org.jfree.chart.title.TextTitle)">setTitle</A></B>(<A HREF="../../../org/jfree/chart/title/TextTitle.html" title="class in org.jfree.chart.title">TextTitle</A> title)</CODE><BR> Sets the title for the chart.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/JFreeChart.html#titleChanged(org.jfree.chart.event.TitleChangeEvent)">titleChanged</A></B>(<A HREF="../../../org/jfree/chart/event/TitleChangeEvent.html" title="class in org.jfree.chart.event">TitleChangeEvent</A> event)</CODE><BR> Receives notification that a chart title has changed, and passes this on to registered listeners.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="INFO"><!-- --></A><H3>INFO</H3><PRE>public static final org.jfree.ui.about.ProjectInfo <B>INFO</B></PRE><DL><DD>Information about the project.<P><DL></DL></DL><HR><A NAME="DEFAULT_TITLE_FONT"><!-- --></A><H3>DEFAULT_TITLE_FONT</H3><PRE>public static final java.awt.Font <B>DEFAULT_TITLE_FONT</B></PRE><DL><DD>The default font for titles.<P><DL></DL></DL><HR><A NAME="DEFAULT_BACKGROUND_PAINT"><!-- --></A><H3>DEFAULT_BACKGROUND_PAINT</H3><PRE>public static final java.awt.Paint <B>DEFAULT_BACKGROUND_PAINT</B></PRE><DL><DD>The default background color.<P><DL></DL></DL><HR><A NAME="DEFAULT_BACKGROUND_IMAGE"><!-- --></A><H3>DEFAULT_BACKGROUND_IMAGE</H3><PRE>public static final java.awt.Image <B>DEFAULT_BACKGROUND_IMAGE</B></PRE><DL><DD>The default background image.<P><DL></DL></DL><HR><A NAME="DEFAULT_BACKGROUND_IMAGE_ALIGNMENT"><!-- --></A><H3>DEFAULT_BACKGROUND_IMAGE_ALIGNMENT</H3><PRE>public static final int <B>DEFAULT_BACKGROUND_IMAGE_ALIGNMENT</B></PRE><DL><DD>The default background image alignment.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.JFreeChart.DEFAULT_BACKGROUND_IMAGE_ALIGNMENT">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_BACKGROUND_IMAGE_ALPHA"><!-- --></A><H3>DEFAULT_BACKGROUND_IMAGE_ALPHA</H3><PRE>public static float <B>DEFAULT_BACKGROUND_IMAGE_ALPHA</B></PRE><DL><DD>The default background image alpha.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><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" title="class in org.jfree.chart.plot">Plot</A> plot)</PRE><DL><DD>Constructs a chart. <P> Note that the <A HREF="../../../org/jfree/chart/ChartFactory.html" title="class in org.jfree.chart"><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 (<code>null</code> not permitted).</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 title, <A HREF="../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A> plot)</PRE><DL><DD>Creates a new chart.<P><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><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 title, java.awt.Font titleFont, <A HREF="../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A> plot, boolean 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 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><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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, never null.</DL></DD></DL><HR><A NAME="setRenderingHints(java.awt.RenderingHints)"><!-- --></A><H3>setRenderingHints</H3><PRE>public void <B>setRenderingHints</B>(java.awt.RenderingHints 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 <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 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 stroke)</PRE><DL><DD>Sets the stroke used to draw the chart border (if visible).<P><DD><DL></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -