public class DateLabelFormatter extends java.lang.Object implements ILabelFormatter<IDateAxis>
DateLabelProvider
Constructor and Description |
---|
DateLabelFormatter()
Creates a new instance of
DateLabelFormatter class |
DateLabelFormatter(java.util.Locale locale,
java.util.TimeZone timeZone)
Creates a new instance of
DateLabelFormatter class |
DateLabelFormatter(java.text.SimpleDateFormat labelFormat,
java.text.SimpleDateFormat cursorLabelFormat)
Creates a new instance of
DateLabelFormatter class |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
formatCursorLabel(double dataValue)
Formats a label for the cursor, from the specified data-value passed in
|
java.lang.CharSequence |
formatLabel(double dataValue)
Formats a label for the axis from the specified data-value passed in
|
void |
update(IDateAxis axis)
Updates this label formatter with values provided by axis
|
public DateLabelFormatter()
DateLabelFormatter
classpublic DateLabelFormatter(java.util.Locale locale, java.util.TimeZone timeZone)
DateLabelFormatter
classlocale
- The Locale
to use by this formattertimeZone
- The TimeZone
to use by this formatterpublic DateLabelFormatter(java.text.SimpleDateFormat labelFormat, java.text.SimpleDateFormat cursorLabelFormat)
DateLabelFormatter
classlabelFormat
- A SimpleDateFormat
instance which should be used to format axis labelscursorLabelFormat
- A SimpleDateFormat
instance which should be used to format cursor labelspublic void update(IDateAxis axis)
update
in interface ILabelFormatter<IDateAxis>
axis
- The current axispublic java.lang.CharSequence formatLabel(double dataValue)
formatLabel
in interface ILabelFormatter<IDateAxis>
dataValue
- The data value to formatpublic java.lang.CharSequence formatCursorLabel(double dataValue)
formatCursorLabel
in interface ILabelFormatter<IDateAxis>
dataValue
- The data value to format