|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.text.Format
java.text.DateFormat
org.jfree.chart.axis.QuarterDateFormat
A formatter that formats dates to show the year and quarter (for example, '2004 IV' for the last quarter of 2004.
Nested Class Summary |
Nested classes inherited from class java.text.DateFormat |
java.text.DateFormat.Field |
Field Summary | |
static java.lang.String[] |
REGULAR_QUARTERS
Symbols for regular quarters. |
static java.lang.String[] |
ROMAN_QUARTERS
Symbols for roman numbered quarters. |
Fields inherited from class java.text.DateFormat |
AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, numberFormat, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD |
Constructor Summary | |
QuarterDateFormat()
Creates a new instance for the default time zone. |
|
QuarterDateFormat(java.util.TimeZone zone)
Creates a new instance for the specified time zone. |
|
QuarterDateFormat(java.util.TimeZone zone,
java.lang.String[] quarterSymbols)
Creates a new instance for the specified time zone. |
Method Summary | |
java.lang.StringBuffer |
format(java.util.Date date,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition fieldPosition)
Formats the given date. |
java.util.Date |
parse(java.lang.String source,
java.text.ParsePosition pos)
Parses the given string (not implemented). |
Methods inherited from class java.text.DateFormat |
clone, equals, format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, hashCode, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone |
Methods inherited from class java.text.Format |
format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] REGULAR_QUARTERS
public static final java.lang.String[] ROMAN_QUARTERS
Constructor Detail |
public QuarterDateFormat()
public QuarterDateFormat(java.util.TimeZone zone)
zone
- the time zone (null
not permitted).public QuarterDateFormat(java.util.TimeZone zone, java.lang.String[] quarterSymbols)
zone
- the time zone (null
not permitted).quarterSymbols
- the quarter symbols.Method Detail |
public java.lang.StringBuffer format(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition)
date
- the date.toAppendTo
- the string buffer.fieldPosition
- the field position.
public java.util.Date parse(java.lang.String source, java.text.ParsePosition pos)
source
- the date string.pos
- the parse position.
null
, as this method has not been implemented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |