abstracttitle.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,139 行 · 第 1/3 页
HTML
1,139 行
<CODE>protected static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidHorizontalAlignment(int)">isValidHorizontalAlignment</A></B>(int code)</CODE><BR> Utility method for checking a horizontal alignment code.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidPosition(int)">isValidPosition</A></B>(int position)</CODE><BR> Returns true if the title can assume the specified location, and false otherwise.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidVerticalAlignment(int)">isValidVerticalAlignment</A></B>(int code)</CODE><BR> Utility method for checking a vertical alignment code.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#notifyListeners(org.jfree.chart.event.TitleChangeEvent)">notifyListeners</A></B>(<A HREF="../../../org/jfree/chart/event/TitleChangeEvent.html">TitleChangeEvent</A> event)</CODE><BR> Notifies all registered listeners that the chart title has changed in some way.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#removeChangeListener(org.jfree.chart.event.TitleChangeListener)">removeChangeListener</A></B>(<A HREF="../../../org/jfree/chart/event/TitleChangeListener.html">TitleChangeListener</A> listener)</CODE><BR> Unregisters an object for notification of changes to the chart title.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#setHorizontalAlignment(int)">setHorizontalAlignment</A></B>(int alignment)</CODE><BR> Sets the horizontal alignment for the title, and notifies any registered listeners of the change.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#setNotify(boolean)">setNotify</A></B>(boolean flag)</CODE><BR> Sets the flag that indicates whether or not the notification mechanism is enabled.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#setPosition(int)">setPosition</A></B>(int position)</CODE><BR> Sets the position for the title.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#setSpacer(org.jfree.chart.Spacer)">setSpacer</A></B>(<A HREF="../../../org/jfree/chart/Spacer.html">Spacer</A> spacer)</CODE><BR> Sets the spacer for the title, and notifies registered listeners of the change.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/AbstractTitle.html#setVerticalAlignment(int)">setVerticalAlignment</A></B>(int alignment)</CODE><BR> Sets the vertical alignment for the title, and notifies any registered listeners of the change.</TD></TR></TABLE> <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> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="TOP"><!-- --></A><H3>TOP</H3><PRE>public static final int <B>TOP</B></PRE><DL><DD>Useful constant for the title position (also used for vertical alignment).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.TOP">Constant Field Values</A></DL></DL><HR><A NAME="BOTTOM"><!-- --></A><H3>BOTTOM</H3><PRE>public static final int <B>BOTTOM</B></PRE><DL><DD>Useful constant for the title position (also used for vertical alignment).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.BOTTOM">Constant Field Values</A></DL></DL><HR><A NAME="RIGHT"><!-- --></A><H3>RIGHT</H3><PRE>public static final int <B>RIGHT</B></PRE><DL><DD>Useful constant for the title position (also used for horizontal alignment).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.RIGHT">Constant Field Values</A></DL></DL><HR><A NAME="LEFT"><!-- --></A><H3>LEFT</H3><PRE>public static final int <B>LEFT</B></PRE><DL><DD>Useful constant for the title position (also used for horizontal alignment).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.LEFT">Constant Field Values</A></DL></DL><HR><A NAME="NORTH"><!-- --></A><H3>NORTH</H3><PRE>public static final int <B>NORTH</B></PRE><DL><DD>Useful constant for the title position.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.NORTH">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>Useful constant for the title position.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.SOUTH">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>Useful constant for the title position.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.EAST">Constant Field Values</A></DL></DL><HR><A NAME="WEST"><!-- --></A><H3>WEST</H3><PRE>public static final int <B>WEST</B></PRE><DL><DD>Useful constant for the title position.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.WEST">Constant Field Values</A></DL></DL><HR><A NAME="CENTER"><!-- --></A><H3>CENTER</H3><PRE>public static final int <B>CENTER</B></PRE><DL><DD>Useful constant for the title alignment (horizontal or vertical).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.CENTER">Constant Field Values</A></DL></DL><HR><A NAME="MIDDLE"><!-- --></A><H3>MIDDLE</H3><PRE>public static final int <B>MIDDLE</B></PRE><DL><DD>Useful constant for the title alignment (horizontal or vertical).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.MIDDLE">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_POSITION"><!-- --></A><H3>DEFAULT_POSITION</H3><PRE>public static final int <B>DEFAULT_POSITION</B></PRE><DL><DD>The default title position.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.DEFAULT_POSITION">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_HORIZONTAL_ALIGNMENT"><!-- --></A><H3>DEFAULT_HORIZONTAL_ALIGNMENT</H3><PRE>public static final int <B>DEFAULT_HORIZONTAL_ALIGNMENT</B></PRE><DL><DD>The default horizontal alignment.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.DEFAULT_HORIZONTAL_ALIGNMENT">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_VERTICAL_ALIGNMENT"><!-- --></A><H3>DEFAULT_VERTICAL_ALIGNMENT</H3><PRE>public static final int <B>DEFAULT_VERTICAL_ALIGNMENT</B></PRE><DL><DD>The default vertical alignment.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.AbstractTitle.DEFAULT_VERTICAL_ALIGNMENT">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_SPACER"><!-- --></A><H3>DEFAULT_SPACER</H3><PRE>public static final <A HREF="../../../org/jfree/chart/Spacer.html">Spacer</A> <B>DEFAULT_SPACER</B></PRE><DL><DD>Default title spacer.<P><DL></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="AbstractTitle()"><!-- --></A><H3>AbstractTitle</H3><PRE>protected <B>AbstractTitle</B>()</PRE><DL><DD>Creates a new title, using default attributes where necessary.<P></DL><HR><A NAME="AbstractTitle(int, int, int)"><!-- --></A><H3>AbstractTitle</H3><PRE>protected <B>AbstractTitle</B>(int position, int horizontalAlignment, int verticalAlignment)</PRE><DL><DD>Creates a new title, using default attributes where necessary.<P><DT><B>Parameters:</B><DD><CODE>position</CODE> - the relative position of the title (TOP, BOTTOM, RIGHT and LEFT).<DD><CODE>horizontalAlignment</CODE> - the horizontal alignment of the title (LEFT, CENTER or RIGHT).<DD><CODE>verticalAlignment</CODE> - the vertical alignment of the title (TOP, MIDDLE or BOTTOM).</DL><HR><A NAME="AbstractTitle(int, int, int, org.jfree.chart.Spacer)"><!-- --></A><H3>AbstractTitle</H3><PRE>protected <B>AbstractTitle</B>(int position, int horizontalAlignment, int verticalAlignment, <A HREF="../../../org/jfree/chart/Spacer.html">Spacer</A> spacer)</PRE><DL><DD>Constructs a new AbstractTitle. <P> This class defines constants for the valid position and alignment values --- an IllegalArgumentException will be thrown if invalid values are passed to this constructor.<P><DT><B>Parameters:</B><DD><CODE>position</CODE> - the relative position of the title (TOP, BOTTOM, RIGHT and LEFT).<DD><CODE>horizontalAlignment</CODE> - the horizontal alignment of the title (LEFT, CENTER or RIGHT).<DD><CODE>verticalAlignment</CODE> - the vertical alignment of the title (TOP, MIDDLE or BOTTOM).<DD><CODE>spacer</CODE> - the amount of space to leave around the outside of the title.</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="getPosition()"><!-- --></A><H3>getPosition</H3><PRE>public int <B>getPosition</B>()</PRE><DL><DD>Returns the relative position of the title---represented by one of four integer constants defined in this class: TOP, BOTTOM, RIGHT or LEFT (or the equivalent NORTH, SOUTH, EAST and WEST).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The title position.</DL></DD></DL><HR><A NAME="setPosition(int)"><!-- --></A><H3>setPosition</H3><PRE>public void <B>setPosition</B>(int position)</PRE><DL><DD>Sets the position for the title.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - the relative position of the title (use one of the constants TOP, BOTTOM, RIGHT and LEFT, or the equivalent NORTH, SOUTH, EAST and WEST).</DL></DD></DL><HR><A NAME="getHorizontalAlignment()"><!-- --></A><H3>getHorizontalAlignment</H3><PRE>public int <B>getHorizontalAlignment</B>()</PRE><DL><DD>Returns the horizontal alignment of the title. The constants LEFT, CENTER and RIGHT (defined in this class) are used.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the horizontal alignment of the title (LEFT, CENTER or RIGHT).</DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?