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

📄 legend.html

📁 JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD><DL><DT><B>Returns:</B><DD>the chart.</DL></DD></DL><HR><A NAME="registerChart(org.jfree.chart.JFreeChart)"><!-- --></A><H3>registerChart</H3><PRE>protected void <B>registerChart</B>(<A HREF="../../../org/jfree/chart/JFreeChart.html" title="class in org.jfree.chart">JFreeChart</A>&nbsp;chart)</PRE><DL><DD>Internal maintenance method to update the reference to the central JFreeChart object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the chart, may be null, if the legend gets removed from 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&nbsp;g2,                                               java.awt.geom.Rectangle2D&nbsp;available,                                               <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A>&nbsp;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" title="interface in org.jfree.chart.event">LegendChangeListener</A>&nbsp;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" title="interface in org.jfree.chart.event">LegendChangeListener</A>&nbsp;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" title="class in org.jfree.chart.event">LegendChangeEvent</A>&nbsp;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&nbsp;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="isAnchoredToTop()"><!-- --></A><H3>isAnchoredToTop</H3><PRE>protected boolean <B>isAnchoredToTop</B>()</PRE><DL><DD>Returns <code>true</code> if and only if this legend is anchored to top.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if and only if this legend is anchored to top.</DL></DD></DL><HR><A NAME="isAnchoredToMiddle()"><!-- --></A><H3>isAnchoredToMiddle</H3><PRE>protected boolean <B>isAnchoredToMiddle</B>()</PRE><DL><DD>Returns <code>true</code> if and only if this legend is anchored to middle.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if and only if this legend is anchored to middle.</DL></DD></DL><HR><A NAME="isAnchoredToBottom()"><!-- --></A><H3>isAnchoredToBottom</H3><PRE>protected boolean <B>isAnchoredToBottom</B>()</PRE><DL><DD>Returns <code>true</code> if and only if this legend is anchored to bottom.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if and only if this legend is anchored to bottom.</DL></DD></DL><HR><A NAME="isAnchoredToLeft()"><!-- --></A><H3>isAnchoredToLeft</H3><PRE>protected boolean <B>isAnchoredToLeft</B>()</PRE><DL><DD>Returns <code>true</code> if and only if this legend is anchored to left.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if and only if this legend is anchored to left.</DL></DD></DL><HR><A NAME="isAnchoredToRight()"><!-- --></A><H3>isAnchoredToRight</H3><PRE>protected boolean <B>isAnchoredToRight</B>()</PRE><DL><DD>Returns <code>true</code> if and only if this legend is anchored to right.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if and only if this legend is anchored to right.</DL></DD></DL><HR><A NAME="isAnchoredToCenter()"><!-- --></A><H3>isAnchoredToCenter</H3><PRE>protected boolean <B>isAnchoredToCenter</B>()</PRE><DL><DD>Returns <code>true</code> if and only if this legend is anchored to center.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if and only if this legend is anchored to center.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;obj)</PRE><DL><DD>Tests this legend for equality with another object.<P><DD><DL></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><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>protected java.lang.Object <B>clone</B>()                          throws java.lang.CloneNotSupportedException</PRE><DL><DD>Clones the legend, and takes care of listeners. Note: the cloned legend refer to the same chart as the original one. JFreeChart clone() takes care of setting the references correctly.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if the object cannot be cloned.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jfree/chart/JFreeChart.html" title="class in org.jfree.chart"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jfree/chart/LegendItem.html" title="class in org.jfree.chart"><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>  &nbsp;&nbsp;<A HREF="Legend.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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