📄 title.html
字号:
<DD>Sets the horizontal alignment for the title and sends a <A HREF="../../../../org/jfree/chart/event/TitleChangeEvent.html" title="class in org.jfree.chart.event"><CODE>TitleChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the horizontal alignment (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getVerticalAlignment()"><!-- --></A><H3>getVerticalAlignment</H3><PRE>public org.jfree.ui.VerticalAlignment <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.267"><B>getVerticalAlignment</B></A>()</PRE><DL><DD>Returns the vertical alignment of the title.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The vertical alignment (never <code>null</code>).</DL></DD></DL><HR><A NAME="setVerticalAlignment(org.jfree.ui.VerticalAlignment)"><!-- --></A><H3>setVerticalAlignment</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.278"><B>setVerticalAlignment</B></A>(org.jfree.ui.VerticalAlignment alignment)</PRE><DL><DD>Sets the vertical alignment for the title, and notifies any registered listeners of the change.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the new vertical alignment (TOP, MIDDLE or BOTTOM, <code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getNotify()"><!-- --></A><H3>getNotify</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.294"><B>getNotify</B></A>()</PRE><DL><DD>Returns the flag that indicates whether or not the notification mechanism is enabled.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The flag.</DL></DD></DL><HR><A NAME="setNotify(boolean)"><!-- --></A><H3>setNotify</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.305"><B>setNotify</B></A>(boolean flag)</PRE><DL><DD>Sets the flag that indicates whether or not the notification mechanism is enabled. There are certain situations (such as cloning) where you want to turn notification off temporarily.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the new value of the flag.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>draw</H3><PRE>public abstract void <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.320"><B>draw</B></A>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)</PRE><DL><DD>Draws the title on a Java 2D graphics device (such as the screen or a printer).<P><DD><DL><DT><B>Specified by:</B><DD><CODE>draw</CODE> in interface <CODE>org.jfree.ui.Drawable</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area allocated for the title (subclasses should not draw outside this area).</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.334"><B>clone</B></A>() throws java.lang.CloneNotSupportedException</PRE><DL><DD>Returns a clone of the title. <P> One situation when this is useful is when editing the title properties - you can edit a clone, and then it is easier to cancel the changes if necessary.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone of the title.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - not thrown by this class, but it may be thrown by subclasses.</DL></DD></DL><HR><A NAME="addChangeListener(org.jfree.chart.event.TitleChangeListener)"><!-- --></A><H3>addChangeListener</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.347"><B>addChangeListener</B></A>(<A HREF="../../../../org/jfree/chart/event/TitleChangeListener.html" title="interface in org.jfree.chart.event">TitleChangeListener</A> listener)</PRE><DL><DD>Registers an object for notification of changes to the title.<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.TitleChangeListener)"><!-- --></A><H3>removeChangeListener</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.356"><B>removeChangeListener</B></A>(<A HREF="../../../../org/jfree/chart/event/TitleChangeListener.html" title="interface in org.jfree.chart.event">TitleChangeListener</A> listener)</PRE><DL><DD>Unregisters an object for notification of changes to the chart title.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the object that is being unregistered.</DL></DD></DL><HR><A NAME="notifyListeners(org.jfree.chart.event.TitleChangeEvent)"><!-- --></A><H3>notifyListeners</H3><PRE>protected void <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.367"><B>notifyListeners</B></A>(<A HREF="../../../../org/jfree/chart/event/TitleChangeEvent.html" title="class in org.jfree.chart.event">TitleChangeEvent</A> event)</PRE><DL><DD>Notifies all registered listeners that the chart title has changed in some way.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - an object that contains information about the change to the title.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.387"><B>equals</B></A>(java.lang.Object obj)</PRE><DL><DD>Tests an object for equality with this title.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html" title="class in org.jfree.chart.block">AbstractBlock</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object (<code>null</code> not permitted).<DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/chart/title/Title.html#line.418"><B>hashCode</B></A>()</PRE><DL><DD>Returns a hashcode for the title.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The hashcode.</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=2 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> </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="class-use/Title.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-files/index-1.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/title/TextTitle.html" title="class in org.jfree.chart.title"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jfree/chart/title/Title.html" target="_top"><B>FRAMES</B></A> <A HREF="Title.html" target="_top"><B>NO FRAMES</B></A> <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: 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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -