legend.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 624 行 · 第 1/2 页
HTML
624 行
NORTH</H3><PRE>public static final int <B>NORTH</B></PRE><DL><DD>Constant anchor value for legend position NORTH.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.Legend.NORTH">Constant Field Values</A></DL></DL><HR><A NAME="EAST"><!-- --></A><H3>EAST</H3><PRE>public static final int <B>EAST</B></PRE><DL><DD>Constant anchor value for legend position EAST.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.Legend.EAST">Constant Field Values</A></DL></DL><HR><A NAME="SOUTH"><!-- --></A><H3>SOUTH</H3><PRE>public static final int <B>SOUTH</B></PRE><DL><DD>Constant anchor value for legend position SOUTH.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.Legend.SOUTH">Constant Field Values</A></DL></DL><HR><A NAME="INVERTED"><!-- --></A><H3>INVERTED</H3><PRE>protected static final int <B>INVERTED</B></PRE><DL><DD>Internal value indicating the bit holding the value of interest in the anchor value.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.Legend.INVERTED">Constant Field Values</A></DL></DL><HR><A NAME="HORIZONTAL"><!-- --></A><H3>HORIZONTAL</H3><PRE>protected static final int <B>HORIZONTAL</B></PRE><DL><DD>Internal value indicating the bit holding the value of interest in the anchor value.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.Legend.HORIZONTAL">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Legend()"><!-- --></A><H3>Legend</H3><PRE>public <B>Legend</B>()</PRE><DL><DD>Default constructor.<P></DL><HR><A NAME="Legend(org.jfree.chart.JFreeChart)"><!-- --></A><H3>Legend</H3><PRE>protected <B>Legend</B>(<A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart)</PRE><DL><DD>Creates a new legend.<P><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the chart that the legend belongs to.</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="createInstance(org.jfree.chart.JFreeChart)"><!-- --></A><H3>createInstance</H3><PRE>public static <A HREF="../../../org/jfree/chart/Legend.html">Legend</A> <B>createInstance</B>(<A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart)</PRE><DL><DD>Static factory method that returns a concrete subclass of Legend.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the chart that the legend belongs to.<DT><B>Returns:</B><DD>a StandardLegend.</DL></DD></DL><HR><A NAME="getChart()"><!-- --></A><H3>getChart</H3><PRE>public <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> <B>getChart</B>()</PRE><DL><DD>Returns the chart that this legend belongs to.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the chart.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public abstract java.awt.geom.Rectangle2D <B>draw</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D available, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info)</PRE><DL><DD>Draws the legend on a Java 2D graphics device (such as the screen or a printer).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>available</CODE> - the area within which the legend (and plot) should be drawn.<DD><CODE>info</CODE> - a carrier for returning information about the entities in the legend.<DT><B>Returns:</B><DD>the area remaining after the legend has drawn itself.</DL></DD></DL><HR><A NAME="addChangeListener(org.jfree.chart.event.LegendChangeListener)"><!-- --></A><H3>addChangeListener</H3><PRE>public void <B>addChangeListener</B>(<A HREF="../../../org/jfree/chart/event/LegendChangeListener.html">LegendChangeListener</A> listener)</PRE><DL><DD>Registers an object for notification of changes to the legend.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the object that is being registered.</DL></DD></DL><HR><A NAME="removeChangeListener(org.jfree.chart.event.LegendChangeListener)"><!-- --></A><H3>removeChangeListener</H3><PRE>public void <B>removeChangeListener</B>(<A HREF="../../../org/jfree/chart/event/LegendChangeListener.html">LegendChangeListener</A> listener)</PRE><DL><DD>Deregisters an object for notification of changes to the legend.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the object that is being deregistered.</DL></DD></DL><HR><A NAME="notifyListeners(org.jfree.chart.event.LegendChangeEvent)"><!-- --></A><H3>notifyListeners</H3><PRE>protected void <B>notifyListeners</B>(<A HREF="../../../org/jfree/chart/event/LegendChangeEvent.html">LegendChangeEvent</A> event)</PRE><DL><DD>Notifies all registered listeners that the chart legend has changed in some way.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - information about the change to the legend.</DL></DD></DL><HR><A NAME="getAnchor()"><!-- --></A><H3>getAnchor</H3><PRE>public int <B>getAnchor</B>()</PRE><DL><DD>Returns the current anchor of this legend. <p> The default anchor for this legend is <code>SOUTH</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current anchor.</DL></DD></DL><HR><A NAME="setAnchor(int)"><!-- --></A><H3>setAnchor</H3><PRE>public void <B>setAnchor</B>(int anchor)</PRE><DL><DD>Sets the current anchor of this legend. <P> The anchor can be one of: <code>NORTH</code>, <code>SOUTH</code>, <code>EAST</code>, <code>WEST</code>. If a valid anchor value is provided, the current anchor is set and an update event is triggered. Otherwise, no change is made.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>anchor</CODE> - the new anchor value.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object obj)</PRE><DL><DD>Tests this legend for equality with another object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object.<DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/jfree/chart/JFreeChart.html"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/chart/LegendItem.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Legend.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?