📄 texttitle.html
字号:
<DL><DD>Sets the font used to display the title string. Registered listeners are notified that the title has been modified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>font</CODE> - the new font (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getPaint()"><!-- --></A><H3>getPaint</H3><PRE>public java.awt.Paint <B>getPaint</B>()</PRE><DL><DD>Returns the paint used to display the title string.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the paint (never <code>null</code>).</DL></DD></DL><HR><A NAME="setPaint(java.awt.Paint)"><!-- --></A><H3>setPaint</H3><PRE>public void <B>setPaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the paint used to display the title string. Registered listeners are notified that the title has been modified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the new paint (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getBackgroundPaint()"><!-- --></A><H3>getBackgroundPaint</H3><PRE>public java.awt.Paint <B>getBackgroundPaint</B>()</PRE><DL><DD>Returns the background paint.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the paint (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setBackgroundPaint(java.awt.Paint)"><!-- --></A><H3>setBackgroundPaint</H3><PRE>public void <B>setBackgroundPaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the background paint 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. If you set this attribute to <code>null</code>, no background is painted (which makes the title background transparent).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the background paint (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getPreferredWidth(java.awt.Graphics2D, float)"><!-- --></A><H3>getPreferredWidth</H3><PRE>public float <B>getPreferredWidth</B>(java.awt.Graphics2D g2, float height)</PRE><DL><DD>Returns the preferred width of the title. This will only be called when the title is being drawn at the left or right of a chart.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/title/Title.html#getPreferredWidth(java.awt.Graphics2D, float)">getPreferredWidth</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>height</CODE> - the height.<DT><B>Returns:</B><DD>the preferred width of the title.</DL></DD></DL><HR><A NAME="getPreferredHeight(java.awt.Graphics2D, float)"><!-- --></A><H3>getPreferredHeight</H3><PRE>public float <B>getPreferredHeight</B>(java.awt.Graphics2D g2, float width)</PRE><DL><DD>Returns the preferred height of the title.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/title/Title.html#getPreferredHeight(java.awt.Graphics2D, float)">getPreferredHeight</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>width</CODE> - the width.<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 void <B>draw</B>(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><A HREF="../../../../org/jfree/chart/title/Title.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">draw</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A></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.</DL></DD></DL><HR><A NAME="drawHorizontal(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawHorizontal</H3><PRE>protected void <B>drawHorizontal</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)</PRE><DL><DD>Draws a the title horizontally within the specified area. This method will be called from the <A HREF="../../../../org/jfree/chart/title/TextTitle.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><CODE>draw</CODE></A> method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area for the title.</DL></DD></DL><HR><A NAME="drawVertical(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawVertical</H3><PRE>protected void <B>drawVertical</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)</PRE><DL><DD>Draws a the title vertically within the specified area. This method will be called from the <A HREF="../../../../org/jfree/chart/title/TextTitle.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><CODE>draw</CODE></A> method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area for the title.</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 this title for equality with another object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/title/Title.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A></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><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash code.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/title/Title.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a hash code.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>() throws java.lang.CloneNotSupportedException</PRE><DL><DD>Returns a clone of this object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/title/Title.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this object.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - never.</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> </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"> <A HREF="../../../../org/jfree/chart/title/LegendTitle.html" title="class in org.jfree.chart.title"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title"><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="TextTitle.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 + -