texttitle.html
来自「jfreechart1。0。2的api。」· HTML 代码 · 共 1,078 行 · 第 1/4 页
HTML
1,078 行
public <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.206"><B>TextTitle</B></A>(java.lang.String text, java.awt.Font font, java.awt.Paint paint, org.jfree.ui.RectangleEdge position, org.jfree.ui.HorizontalAlignment horizontalAlignment, org.jfree.ui.VerticalAlignment verticalAlignment, org.jfree.ui.RectangleInsets padding)</PRE><DL><DD>Creates a new title.<P><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text for the title (<code>null</code> not permitted).<DD><CODE>font</CODE> - the title font (<code>null</code> not permitted).<DD><CODE>paint</CODE> - the title paint (<code>null</code> not permitted).<DD><CODE>position</CODE> - the title position (<code>null</code> not permitted).<DD><CODE>horizontalAlignment</CODE> - the horizontal alignment (<code>null</code> not permitted).<DD><CODE>verticalAlignment</CODE> - the vertical alignment (<code>null</code> not permitted).<DD><CODE>padding</CODE> - the space to leave around the outside of the title.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getText()"><!-- --></A><H3>getText</H3><PRE>public java.lang.String <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.242"><B>getText</B></A>()</PRE><DL><DD>Returns the title text.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The text (never <code>null</code>).</DL></DD></DL><HR><A NAME="setText(java.lang.String)"><!-- --></A><H3>setText</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.252"><B>setText</B></A>(java.lang.String text)</PRE><DL><DD>Sets the title to the specified text 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>text</CODE> - the text (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getTextAlignment()"><!-- --></A><H3>getTextAlignment</H3><PRE>public org.jfree.ui.HorizontalAlignment <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.270"><B>getTextAlignment</B></A>()</PRE><DL><DD>Returns the text alignment. This controls how the text is aligned within the title's bounds, whereas the title's horizontal alignment controls how the title's bounding rectangle is aligned within the drawing space.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The text alignment.</DL></DD></DL><HR><A NAME="setTextAlignment(org.jfree.ui.HorizontalAlignment)"><!-- --></A><H3>setTextAlignment</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.279"><B>setTextAlignment</B></A>(org.jfree.ui.HorizontalAlignment alignment)</PRE><DL><DD>Sets the text alignment.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the alignment (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getFont()"><!-- --></A><H3>getFont</H3><PRE>public java.awt.Font <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.292"><B>getFont</B></A>()</PRE><DL><DD>Returns the font used to display the title string.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The font (never <code>null</code>).</DL></DD></DL><HR><A NAME="setFont(java.awt.Font)"><!-- --></A><H3>setFont</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.302"><B>setFont</B></A>(java.awt.Font font)</PRE><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 <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.317"><B>getPaint</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.327"><B>setPaint</B></A>(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 <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.342"><B>getBackgroundPaint</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.353"><B>setBackgroundPaint</B></A>(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="getToolTipText()"><!-- --></A><H3>getToolTipText</H3><PRE>public java.lang.String <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.363"><B>getToolTipText</B></A>()</PRE><DL><DD>Returns the tool tip text.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The tool tip text (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setToolTipText(java.lang.String)"><!-- --></A><H3>setToolTipText</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.373"><B>setToolTipText</B></A>(java.lang.String text)</PRE><DL><DD>Sets the tool tip text to the specified text 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>text</CODE> - the text (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getURLText()"><!-- --></A><H3>getURLText</H3><PRE>public java.lang.String <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.383"><B>getURLText</B></A>()</PRE><DL><DD>Returns the URL text.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The URL text (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setURLText(java.lang.String)"><!-- --></A><H3>setURLText</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/TextTitle.html#line.393"><B>setURLText</B></A>(java.lang.String text)</PRE><DL><DD>Sets the URL text to the specified text 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>text</CODE> - the text (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getExpandToFitSpace()"><!-- --></A><H3>getExpandToFitSpace</H3><PRE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?