Class CalendarDateLabelFormatter
Defines a label formatter for IDateAxis which allows to use CalendarUnit based formatting
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class CalendarDateLabelFormatter extends labelProviders.LabelFormatterBase<IDateAxis>
Constructors
CalendarDateLabelFormatter()
Creates a new instance of CalendarDateLabelFormatter class
Declaration
public CalendarDateLabelFormatter()
CalendarDateLabelFormatter(labelProviders.ICalendarUnitDateFormatter dateFormatter, labelProviders.ICalendarUnitDateFormatter cursorDateFormatter)
Creates a new instance of CalendarDateLabelFormatter class.
Declaration
public CalendarDateLabelFormatter(labelProviders.ICalendarUnitDateFormatter dateFormatter, labelProviders.ICalendarUnitDateFormatter cursorDateFormatter)
Parameters
| Type | Name | Description |
|---|---|---|
| labelProviders.ICalendarUnitDateFormatter | dateFormatter | The formatter for axis labels. |
| labelProviders.ICalendarUnitDateFormatter | cursorDateFormatter | The formatter for cursor. |
CalendarDateLabelFormatter(Locale locale, TimeZone timeZone)
Creates a new instance of CalendarDateLabelFormatter class
Declaration
public CalendarDateLabelFormatter(Locale locale, TimeZone timeZone)
Parameters
| Type | Name | Description |
|---|---|---|
| Locale | locale | The Locale to use by this formatter |
| TimeZone | timeZone | The TimeZone to use by this formatter |
Methods
formatCursorLabel(double dataValue)
Formats a label for the cursor, from the specified data-value passed in
Declaration
public CharSequence formatCursorLabel(double dataValue)
Parameters
| Type | Name | Description |
|---|---|---|
| double | dataValue |
Returns
| Type | Description |
|---|---|
| CharSequence |
Overrides
formatLabel(double dataValue)
Formats a label for the axis from the specified data-value passed in
Declaration
public CharSequence formatLabel(double dataValue)
Parameters
| Type | Name | Description |
|---|---|---|
| double | dataValue |
Returns
| Type | Description |
|---|---|
| CharSequence |
Overrides
update(IDateAxis axis)
Updates this label formatter with values provided by axis
Declaration
public void update(IDateAxis axis)
Parameters
| Type | Name | Description |
|---|---|---|
| IDateAxis | axis |
Overrides
update(List<CharSequence> formattedTickLabels, DoubleValues majorTicks)
Updates ticks collection according to provided axis ticks.
Declaration
public boolean update(List<CharSequence> formattedTickLabels, DoubleValues majorTicks)
Parameters
| Type | Name | Description |
|---|---|---|
| List<CharSequence> | formattedTickLabels | |
| DoubleValues | majorTicks |
Returns
| Type | Description |
|---|---|
| boolean |