| org.jfree.chart.title.Title org.jfree.chart.title.TextTitle org.jfree.chart.title.DateTitle
DateTitle | public class DateTitle extends TextTitle implements Serializable(Code) | | A chart title that displays the date.
Keep in mind that a chart can have several titles, and that they can appear
at the top, left, right or bottom of the chart - a DateTitle
will commonly appear at the bottom of a chart, although you can place it
anywhere.
By specifying the locale, dates are formatted to the correct standard for
the given locale. For example, a date would appear as "January 17, 2000" in
the US, but "17 January 2000" in most European locales.
|
Constructor Summary | |
public | DateTitle() 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. | public | DateTitle(int style) Creates a new chart title that displays the current date with the
specified style (for the default locale). | public | DateTitle(int style, Locale locale, Font font, Paint paint) Creates a new chart title that displays the current date. | public | DateTitle(int style, Locale locale, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding) Creates a new chart title that displays the current date. |
DateTitle | public DateTitle()(Code) | | 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.
The color will be black in 12 point, plain Helvetica font (maps to Arial
on Win32 systems without Helvetica).
|
DateTitle | public DateTitle(int style)(Code) | | Creates a new chart title that displays the current date with the
specified style (for the default locale).
The date style should be one of: SHORT ,
MEDIUM , LONG or FULL
(defined in java.util.DateFormat).
Parameters: style - the date style. |
DateTitle | public DateTitle(int style, Locale locale, Font font, Paint paint)(Code) | | Creates a new chart title that displays the current date.
The date style should be one of: SHORT ,
MEDIUM , LONG or FULL (defined
in java.util.DateFormat).
For the locale, you can use Locale.getDefault() for the
default locale.
Parameters: style - the date style. Parameters: locale - the locale. Parameters: font - the font. Parameters: paint - the text color. |
DateTitle | public DateTitle(int style, Locale locale, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)(Code) | | Creates a new chart title that displays the current date.
The date style should be one of: SHORT ,
MEDIUM , LONG or FULL (defined
in java.util.DateFormat).
For the locale, you can use Locale.getDefault() for the
default locale.
Parameters: style - the date style. Parameters: locale - the locale. Parameters: font - the font (not null). Parameters: paint - the text color (not null). Parameters: position - the relative location of this title (use constants in Title). Parameters: horizontalAlignment - the horizontal text alignment of this title (use constants in Title). Parameters: verticalAlignment - the vertical text alignment of this title (useconstants in Title). Parameters: padding - determines the blank space around the outside of the title (not null). |
setDateFormat | public void setDateFormat(int style, Locale locale)(Code) | | Set the format of the date.
The date style should be one of: SHORT ,
MEDIUM , LONG or FULL (defined
in java.util.DateFormat).
For the locale, you can use Locale.getDefault() for the
default locale.
Parameters: style - the date style. Parameters: locale - the locale. |
Fields inherited from org.jfree.chart.title.Title | final public static HorizontalAlignment DEFAULT_HORIZONTAL_ALIGNMENT(Code)(Java Doc) final public static RectangleInsets DEFAULT_PADDING(Code)(Java Doc) final public static RectangleEdge DEFAULT_POSITION(Code)(Java Doc) final public static VerticalAlignment DEFAULT_VERTICAL_ALIGNMENT(Code)(Java Doc)
|
|
|