datetitle.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 408 行 · 第 1/2 页

HTML
408
字号
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the format of the date.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.chart.TextTitle"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.jfree.chart.<A HREF="../../../org/jfree/chart/TextTitle.html">TextTitle</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/jfree/chart/TextTitle.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">draw</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#drawHorizontal(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">drawHorizontal</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#getBackgroundPaint()">getBackgroundPaint</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#getFont()">getFont</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#getPaint()">getPaint</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#getPreferredHeight(java.awt.Graphics2D)">getPreferredHeight</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#getPreferredWidth(java.awt.Graphics2D)">getPreferredWidth</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#getText()">getText</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#isValidPosition(int)">isValidPosition</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#setBackgroundPaint(java.awt.Paint)">setBackgroundPaint</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#setFont(java.awt.Font)">setFont</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#setPaint(java.awt.Paint)">setPaint</A>, <A HREF="../../../org/jfree/chart/TextTitle.html#setText(java.lang.String)">setText</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.chart.AbstractTitle"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.jfree.chart.<A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#addChangeListener(org.jfree.chart.event.TitleChangeListener)">addChangeListener</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#clone()">clone</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getHorizontalAlignment()">getHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getNotify()">getNotify</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getPosition()">getPosition</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getSpacer()">getSpacer</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getVerticalAlignment()">getVerticalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidHorizontalAlignment(int)">isValidHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidVerticalAlignment(int)">isValidVerticalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#notifyListeners(org.jfree.chart.event.TitleChangeEvent)">notifyListeners</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#removeChangeListener(org.jfree.chart.event.TitleChangeListener)">removeChangeListener</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setHorizontalAlignment(int)">setHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setNotify(boolean)">setNotify</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setPosition(int)">setPosition</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setSpacer(org.jfree.chart.Spacer)">setSpacer</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setVerticalAlignment(int)">setVerticalAlignment</A></CODE></TD></TR></TABLE>&nbsp;<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>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="DateTitle()"><!-- --></A><H3>DateTitle</H3><PRE>public <B>DateTitle</B>()</PRE><DL><DD>Creates a new chart title that displays the current date in the default (LONG) format for the locale, positioned to the bottom right of the chart. <P> The color will be black in 12 point, plain Helvetica font (maps to Arial on Win32 systems without Helvetica).<P></DL><HR><A NAME="DateTitle(int)"><!-- --></A><H3>DateTitle</H3><PRE>public <B>DateTitle</B>(int&nbsp;style)</PRE><DL><DD>Creates a new chart title that displays the current date with the specified style (for the default locale). <P> The date style should be one of:  <code>SHORT</code>, <code>MEDIUM</code>, <code>LONG</code> or <code>FULL</code> (defined in <code>java.util.DateFormat<code>).<P><DT><B>Parameters:</B><DD><CODE>style</CODE> - the date style.</DL><HR><A NAME="DateTitle(int, java.util.Locale, java.awt.Font, java.awt.Paint)"><!-- --></A><H3>DateTitle</H3><PRE>public <B>DateTitle</B>(int&nbsp;style,                 java.util.Locale&nbsp;locale,                 java.awt.Font&nbsp;font,                 java.awt.Paint&nbsp;paint)</PRE><DL><DD>Creates a new chart title that displays the current date. <p> The date style should be one of:  <code>SHORT</code>, <code>MEDIUM</code>, <code>LONG</code> or <code>FULL</code> (defined in <code>java.util.DateFormat<code>). <P> For the locale, you can use <code>Locale.getDefault()</code> for the default locale.<P><DT><B>Parameters:</B><DD><CODE>style</CODE> - the date style.<DD><CODE>locale</CODE> - the locale.<DD><CODE>font</CODE> - the font.<DD><CODE>paint</CODE> - the text color.</DL><HR><A NAME="DateTitle(int, java.util.Locale, java.awt.Font, java.awt.Paint, int, int, int, org.jfree.chart.Spacer)"><!-- --></A><H3>DateTitle</H3><PRE>public <B>DateTitle</B>(int&nbsp;style,                 java.util.Locale&nbsp;locale,                 java.awt.Font&nbsp;font,                 java.awt.Paint&nbsp;paint,                 int&nbsp;position,                 int&nbsp;horizontalAlignment,                 int&nbsp;verticalAlignment,                 <A HREF="../../../org/jfree/chart/Spacer.html">Spacer</A>&nbsp;spacer)</PRE><DL><DD>Creates a new chart title that displays the current date. <p> The date style should be one of:  <code>SHORT</code>, <code>MEDIUM</code>, <code>LONG</code> or <code>FULL</code> (defined in <code>java.util.DateFormat<code>). <P> For the locale, you can use <code>Locale.getDefault()</code> for the default locale.<P><DT><B>Parameters:</B><DD><CODE>style</CODE> - the date style.<DD><CODE>locale</CODE> - the locale.<DD><CODE>font</CODE> - the font.<DD><CODE>paint</CODE> - the text color.<DD><CODE>position</CODE> - the relative location of this title (use constants in AbstractTitle).<DD><CODE>horizontalAlignment</CODE> - the horizontal text alignment of this title (use constants                             in AbstractTitle).<DD><CODE>verticalAlignment</CODE> - the vertical text alignment of this title (use constants in                           AbstractTitle).<DD><CODE>spacer</CODE> - determines the blank space 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="setDateFormat(int, java.util.Locale)"><!-- --></A><H3>setDateFormat</H3><PRE>public void <B>setDateFormat</B>(int&nbsp;style,                          java.util.Locale&nbsp;locale)</PRE><DL><DD>Set the format of the date. <P> The date style should be one of:  <code>SHORT</code>, <code>MEDIUM</code>, <code>LONG</code> or <code>FULL</code> (defined in <code>java.util.DateFormat<code>). <P> For the locale, you can use <code>Locale.getDefault()</code> for the default locale.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - the date style.<DD><CODE>locale</CODE> - the locale.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jfree/chart/CrosshairInfo.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jfree/chart/DefaultShapeFactory.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>  &nbsp;&nbsp;<A HREF="DateTitle.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.jfree.chart.TextTitle">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?