Interface ICalendarUnitDateFormatter
Defines the protocol to a date formatter which is used by TradeChartAxisLabelFormatter.
Namespace:
Assembly: .dll
Syntax
public interface ICalendarUnitDateFormatter
Methods
format(Date date, int calendarUnit)
Formats date for the axis according to the specified calendarUnit.
Declaration
public abstract CharSequence format(Date date, int calendarUnit)
Parameters
| Type | Name | Description |
|---|---|---|
| Date | date | The date value to format. |
| int | calendarUnit | Calendar unit used while formatting date |
Returns
| Type | Description |
|---|---|
| CharSequence | The formatted value. |
getLocale()
Gets locale used by this date formatter.
Declaration
public abstract Locale getLocale()
Returns
| Type | Description |
|---|---|
| Locale |
getTimeZone()
Gets time zone used by this date formatter.
Declaration
public abstract TimeZone getTimeZone()
Returns
| Type | Description |
|---|---|
| TimeZone |
tryApplyDefaultFormat(String defaultFormat)
Tries to apply default format to underlying default DateFormat.
Declaration
public abstract void tryApplyDefaultFormat(String defaultFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| String | defaultFormat | Default format string to apply. |