| java.text.DateFormat org.jfree.chart.axis.MonthDateFormat
MonthDateFormat | public class MonthDateFormat extends DateFormat (Code) | | A formatter that formats dates to show the initial letter(s) of the month
name and, as an option, the year for the first or last month of each year.
|
Constructor Summary | |
public | MonthDateFormat() Creates a new instance for the default time zone. | public | MonthDateFormat(TimeZone zone) Creates a new instance for the specified time zone. | public | MonthDateFormat(Locale locale) Creates a new instance for the specified time zone. | public | MonthDateFormat(TimeZone zone, int chars) Creates a new instance for the specified time zone.
Parameters: zone - the time zone (null not permitted). Parameters: chars - the maximum number of characters to use from the monthnames (that are obtained from the date symbols of thedefault locale). | public | MonthDateFormat(Locale locale, int chars) Creates a new instance for the specified time zone.
Parameters: locale - the locale (null not permitted). Parameters: chars - the maximum number of characters to use from the monthnames (that are obtained from the date symbols of thedefault locale). | public | MonthDateFormat(TimeZone zone, Locale locale, int chars, boolean showYearForJan, boolean showYearForDec) Creates a new formatter. | public | MonthDateFormat(TimeZone zone, Locale locale, int chars, boolean[] showYear, DateFormat yearFormatter) Creates a new formatter. |
Method Summary | |
public boolean | equals(Object obj) Tests this formatter for equality with an arbitrary object.
Parameters: obj - the object. | public StringBuffer | format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) Formats the given date.
Parameters: date - the date. Parameters: toAppendTo - the string buffer. Parameters: fieldPosition - the field position. | public static void | main(String[] args) Some test code. | public Date | parse(String source, ParsePosition pos) Parses the given string (not implemented).
Parameters: source - the date string. Parameters: pos - the parse position. |
MonthDateFormat | public MonthDateFormat()(Code) | | Creates a new instance for the default time zone.
|
MonthDateFormat | public MonthDateFormat(TimeZone zone)(Code) | | Creates a new instance for the specified time zone.
Parameters: zone - the time zone (null not permitted). |
MonthDateFormat | public MonthDateFormat(Locale locale)(Code) | | Creates a new instance for the specified time zone.
Parameters: locale - the locale used to obtain the month names (null not permitted). |
MonthDateFormat | public MonthDateFormat(TimeZone zone, int chars)(Code) | | Creates a new instance for the specified time zone.
Parameters: zone - the time zone (null not permitted). Parameters: chars - the maximum number of characters to use from the monthnames (that are obtained from the date symbols of thedefault locale). If this value is <= 0, the entire month name is used in each case. |
MonthDateFormat | public MonthDateFormat(Locale locale, int chars)(Code) | | Creates a new instance for the specified time zone.
Parameters: locale - the locale (null not permitted). Parameters: chars - the maximum number of characters to use from the monthnames (that are obtained from the date symbols of thedefault locale). If this value is <= 0, the entire month name is used in each case. |
MonthDateFormat | public MonthDateFormat(TimeZone zone, Locale locale, int chars, boolean showYearForJan, boolean showYearForDec)(Code) | | Creates a new formatter.
Parameters: zone - the time zone used to extract the month and year from datespassed to this formatter (null not permitted). Parameters: locale - the locale used to determine the month names (null not permitted). Parameters: chars - the maximum number of characters to use from the month names, or zero to indicate that the entire month name should be used. Parameters: showYearForJan - a flag that controls whether or not the year isappended to the symbol for the first month ofeach year. Parameters: showYearForDec - a flag that controls whether or not the year isappended to the symbol for the last month ofeach year. |
MonthDateFormat | public MonthDateFormat(TimeZone zone, Locale locale, int chars, boolean[] showYear, DateFormat yearFormatter)(Code) | | Creates a new formatter.
Parameters: zone - the time zone used to extract the month and year from datespassed to this formatter (null not permitted). Parameters: locale - the locale used to determine the month names (null not permitted). Parameters: chars - the maximum number of characters to use from the month names, or zero to indicate that the entire month name should be used. Parameters: showYear - an array of flags that control whether or not theyear is displayed for a particular month. Parameters: yearFormatter - the year formatter. |
equals | public boolean equals(Object obj)(Code) | | Tests this formatter for equality with an arbitrary object.
Parameters: obj - the object. A boolean. |
format | public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)(Code) | | Formats the given date.
Parameters: date - the date. Parameters: toAppendTo - the string buffer. Parameters: fieldPosition - the field position. The formatted date. |
main | public static void main(String[] args)(Code) | | Some test code.
Parameters: args - ignored. |
parse | public Date parse(String source, ParsePosition pos)(Code) | | Parses the given string (not implemented).
Parameters: source - the date string. Parameters: pos - the parse position. null , as this method has not been implemented. |
Methods inherited from java.text.DateFormat | public Object clone()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) final public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition fieldPosition)(Code)(Java Doc) abstract public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)(Code)(Java Doc) final public String format(Date date)(Code)(Java Doc) public static Locale[] getAvailableLocales()(Code)(Java Doc) public Calendar getCalendar()(Code)(Java Doc) final public static DateFormat getDateInstance()(Code)(Java Doc) final public static DateFormat getDateInstance(int style)(Code)(Java Doc) final public static DateFormat getDateInstance(int style, Locale aLocale)(Code)(Java Doc) final public static DateFormat getDateTimeInstance()(Code)(Java Doc) final public static DateFormat getDateTimeInstance(int dateStyle, int timeStyle)(Code)(Java Doc) final public static DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale)(Code)(Java Doc) final public static DateFormat getInstance()(Code)(Java Doc) public NumberFormat getNumberFormat()(Code)(Java Doc) final public static DateFormat getTimeInstance()(Code)(Java Doc) final public static DateFormat getTimeInstance(int style)(Code)(Java Doc) final public static DateFormat getTimeInstance(int style, Locale aLocale)(Code)(Java Doc) public TimeZone getTimeZone()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isLenient()(Code)(Java Doc) public Date parse(String source) throws ParseException(Code)(Java Doc) abstract public Date parse(String source, ParsePosition pos)(Code)(Java Doc) public Object parseObject(String source, ParsePosition pos)(Code)(Java Doc) public void setCalendar(Calendar newCalendar)(Code)(Java Doc) public void setLenient(boolean lenient)(Code)(Java Doc) public void setNumberFormat(NumberFormat newNumberFormat)(Code)(Java Doc) public void setTimeZone(TimeZone zone)(Code)(Java Doc)
|
|
|