org.jfree.chart.axis
Class QuarterDateFormat
DateFormat
org.jfree.chart.axis.QuarterDateFormat
- Cloneable, Serializable
extends DateFormat
implements Cloneable, Serializable
A formatter that formats dates to show the year and quarter (for example,
'2004 IV' for the last quarter of 2004.
QuarterDateFormat() - Creates a new instance for the default time zone.
|
QuarterDateFormat(TimeZone zone) - Creates a new instance for the specified time zone.
|
QuarterDateFormat(TimeZone zone, String[] quarterSymbols) - Creates a new instance for the specified time zone.
|
boolean | equals(Object obj) - Tests this formatter for equality with an arbitrary object.
|
StringBuffer | format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) - Formats the given date.
|
Date | parse(String source, ParsePosition pos) - Parses the given string (not implemented).
|
REGULAR_QUARTERS
public static final String[] REGULAR_QUARTERS
Symbols for regular quarters.
ROMAN_QUARTERS
public static final String[] ROMAN_QUARTERS
Symbols for roman numbered quarters.
QuarterDateFormat
public QuarterDateFormat()
Creates a new instance for the default time zone.
QuarterDateFormat
public QuarterDateFormat(TimeZone zone)
Creates a new instance for the specified time zone.
zone
- the time zone (null
not permitted).
QuarterDateFormat
public QuarterDateFormat(TimeZone zone,
String[] quarterSymbols)
Creates a new instance for the specified time zone.
zone
- the time zone (null
not permitted).quarterSymbols
- the quarter symbols.
equals
public boolean equals(Object obj)
Tests this formatter for equality with an arbitrary object.
format
public StringBuffer format(Date date,
StringBuffer toAppendTo,
FieldPosition fieldPosition)
Formats the given date.
date
- the date.toAppendTo
- the string buffer.fieldPosition
- the field position.
parse
public Date parse(String source,
ParsePosition pos)
Parses the given string (not implemented).
source
- the date string.pos
- the parse position.
null
, as this method has not been implemented.