abstracttitle.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,139 行 · 第 1/3 页
HTML
1,139 行
</DD></DL><HR><A NAME="setHorizontalAlignment(int)"><!-- --></A><H3>setHorizontalAlignment</H3><PRE>public void <B>setHorizontalAlignment</B>(int alignment)</PRE><DL><DD>Sets the horizontal alignment for the title, and notifies any registered listeners of the change. The constants LEFT, CENTER and RIGHT (defined in this class) can be used to specify the alignment.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the new horizontal alignment (LEFT, CENTER or RIGHT).</DL></DD></DL><HR><A NAME="getVerticalAlignment()"><!-- --></A><H3>getVerticalAlignment</H3><PRE>public int <B>getVerticalAlignment</B>()</PRE><DL><DD>Returns the vertical alignment of the title. The constants TOP, MIDDLE and BOTTOM (defined in this class) are used.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the vertical alignment of the title (TOP, MIDDLE or BOTTOM).</DL></DD></DL><HR><A NAME="setVerticalAlignment(int)"><!-- --></A><H3>setVerticalAlignment</H3><PRE>public void <B>setVerticalAlignment</B>(int alignment)</PRE><DL><DD>Sets the vertical alignment for the title, and notifies any registered listeners of the change. The constants TOP, MIDDLE and BOTTOM (defined in this class) can be used to specify the alignment.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the new vertical alignment (TOP, MIDDLE or BOTTOM).</DL></DD></DL><HR><A NAME="getSpacer()"><!-- --></A><H3>getSpacer</H3><PRE>public <A HREF="../../../org/jfree/chart/Spacer.html">Spacer</A> <B>getSpacer</B>()</PRE><DL><DD>Returns the spacer (determines the blank space around the edges) for this title.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the spacer for this title.</DL></DD></DL><HR><A NAME="setSpacer(org.jfree.chart.Spacer)"><!-- --></A><H3>setSpacer</H3><PRE>public void <B>setSpacer</B>(<A HREF="../../../org/jfree/chart/Spacer.html">Spacer</A> spacer)</PRE><DL><DD>Sets the spacer for the title, and notifies registered listeners of the change.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>spacer</CODE> - the new spacer.</DL></DD></DL><HR><A NAME="getNotify()"><!-- --></A><H3>getNotify</H3><PRE>public boolean <B>getNotify</B>()</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 <B>setNotify</B>(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="isValidPosition(int)"><!-- --></A><H3>isValidPosition</H3><PRE>public abstract boolean <B>isValidPosition</B>(int position)</PRE><DL><DD>Returns true if the title can assume the specified location, and false otherwise.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - the position.<DT><B>Returns:</B><DD><code>true</code> if the title can assume the specified position.</DL></DD></DL><HR><A NAME="getPreferredWidth(java.awt.Graphics2D)"><!-- --></A><H3>getPreferredWidth</H3><PRE>public abstract double <B>getPreferredWidth</B>(java.awt.Graphics2D g2)</PRE><DL><DD>Returns the preferred width of the title. When a title is displayed at the left or right of a chart, the chart will attempt to give the title enough space for it's preferred width.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DT><B>Returns:</B><DD>the preferred width of the title.</DL></DD></DL><HR><A NAME="getPreferredHeight(java.awt.Graphics2D)"><!-- --></A><H3>getPreferredHeight</H3><PRE>public abstract double <B>getPreferredHeight</B>(java.awt.Graphics2D g2)</PRE><DL><DD>Returns the preferred height of the title. When a title is displayed at the top or bottom of a chart, the chart will attempt to give the title enough space for it's preferred height.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DT><B>Returns:</B><DD>the preferred height of the title.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>draw</H3><PRE>public abstract void <B>draw</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D titleArea)</PRE><DL><DD>Draws the title 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>titleArea</CODE> - the area for drawing the title.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</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.</DL></DD></DL><HR><A NAME="addChangeListener(org.jfree.chart.event.TitleChangeListener)"><!-- --></A><H3>addChangeListener</H3><PRE>public void <B>addChangeListener</B>(<A HREF="../../../org/jfree/chart/event/TitleChangeListener.html">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 <B>removeChangeListener</B>(<A HREF="../../../org/jfree/chart/event/TitleChangeListener.html">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 <B>notifyListeners</B>(<A HREF="../../../org/jfree/chart/event/TitleChangeEvent.html">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="isValidHorizontalAlignment(int)"><!-- --></A><H3>isValidHorizontalAlignment</H3><PRE>protected static boolean <B>isValidHorizontalAlignment</B>(int code)</PRE><DL><DD>Utility method for checking a horizontal alignment code.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>code</CODE> - the alignment code.<DT><B>Returns:</B><DD><code>true</code> if alignment is <code>LEFT|MIDDLE|RIGHT</code>.</DL></DD></DL><HR><A NAME="isValidVerticalAlignment(int)"><!-- --></A><H3>isValidVerticalAlignment</H3><PRE>protected static boolean <B>isValidVerticalAlignment</B>(int code)</PRE><DL><DD>Utility method for checking a vertical alignment code.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>code</CODE> - the alignment code.<DT><B>Returns:</B><DD><code>true</code>, if alignment is <code>TOP|MIDDLE|BOTTOM</code>.</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 an object for equality with this title.<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"> PREV CLASS <A HREF="../../../org/jfree/chart/ChartColor.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="AbstractTitle.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 + -
显示快捷键?