legendtitle.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 331 行 · 第 1/2 页

HTML
331
字号
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a legend item to the LegendTitle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/LegendTitle.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">draw</A></B>(java.awt.Graphics2D&nbsp;g2,     java.awt.geom.Rectangle2D&nbsp;area)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draws the title on a Java 2D graphics device (such as the screen or a printer).</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.chart.AbstractTitle"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.jfree.chart.<A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#addChangeListener(org.jfree.chart.event.TitleChangeListener)">addChangeListener</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#clone()">clone</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getHorizontalAlignment()">getHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getNotify()">getNotify</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getPosition()">getPosition</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getPreferredHeight(java.awt.Graphics2D)">getPreferredHeight</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getPreferredWidth(java.awt.Graphics2D)">getPreferredWidth</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getSpacer()">getSpacer</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getVerticalAlignment()">getVerticalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidHorizontalAlignment(int)">isValidHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidPosition(int)">isValidPosition</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidVerticalAlignment(int)">isValidVerticalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#notifyListeners(org.jfree.chart.event.TitleChangeEvent)">notifyListeners</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#removeChangeListener(org.jfree.chart.event.TitleChangeListener)">removeChangeListener</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setHorizontalAlignment(int)">setHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setNotify(boolean)">setNotify</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setPosition(int)">setPosition</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setSpacer(org.jfree.chart.Spacer)">setSpacer</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setVerticalAlignment(int)">setVerticalAlignment</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><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>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="LegendTitle()"><!-- --></A><H3>LegendTitle</H3><PRE>public <B>LegendTitle</B>()</PRE><DL><DD>Constructs a new, empty LegendTitle.<P></DL><HR><A NAME="LegendTitle(org.jfree.chart.LegendItemLayout)"><!-- --></A><H3>LegendTitle</H3><PRE>public <B>LegendTitle</B>(<A HREF="../../../org/jfree/chart/LegendItemLayout.html">LegendItemLayout</A>&nbsp;layout)</PRE><DL><DD>Creates a new legend title.<P><DT><B>Parameters:</B><DD><CODE>layout</CODE> - the layout.</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="addLegendItem(org.jfree.chart.LegendItem)"><!-- --></A><H3>addLegendItem</H3><PRE>public void <B>addLegendItem</B>(<A HREF="../../../org/jfree/chart/LegendItem.html">LegendItem</A>&nbsp;item)</PRE><DL><DD>Adds a legend item to the LegendTitle.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>item</CODE> - the item to add.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(java.awt.Graphics2D&nbsp;g2,                 java.awt.geom.Rectangle2D&nbsp;area)</PRE><DL><DD>Draws the title on a Java 2D graphics device (such as the screen or a printer). Currently it does nothing.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">draw</A></CODE> in class <CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area for the chart and all its titles.</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>&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/LegendItemCollection.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jfree/chart/Marker.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>  &nbsp;&nbsp;<A HREF="LegendTitle.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.jfree.chart.AbstractTitle">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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