protected class TickUnitCollection.MNFormat extends DateFormat
DateFormat.Field
Modifier and Type | Field and Description |
---|---|
protected int |
debugLevel |
private static long |
serialVersionUID
Default entry to satisfy serializable interface.
|
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 and Description |
---|
TickUnitCollection.MNFormat() |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(Date date,
StringBuffer toAppendTo,
FieldPosition fieldPosition)
Returns a StringBuffer containing N or M to represent
noon and midnight in the time axis of the chart.
|
int |
getDebugLevel() |
Date |
parse(String source,
ParsePosition pos)
Not used in this class.
|
void |
setDebugLevel(int value) |
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
format, formatToCharacterIterator, parseObject
protected int debugLevel
private static final long serialVersionUID
TickUnitCollection.MNFormat()
public int getDebugLevel()
public void setDebugLevel(int value)
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)
This method may not return null although it may return an empty StringBuffer.
The values of 11, 13, 23, and 1 were added to the tests for the value of the hour field to handle the case where Daylight Savings Time begins or ends in the reporting period. In this case, the hour corresponding to the tick marks is shifted by an hour after the change.
format
in class DateFormat
date
- Date to be used in selecting the charactertoAppendTo
- fieldPosition
- public Date parse(String source, ParsePosition pos)
This would normally be used to convert the character representation into a java.util.Date object. However, that is not possible given the nature of this class. A dummy method that returns null is used to satisfy the interface and superclass requirements. Actually calling this method will cause an exception to be raised.
parse
in class DateFormat