public class TradeChartAxisLabelFormatter extends java.lang.Object implements ILabelFormatter<CategoryDateAxis>
TradeChartAxisLabelProvider
Constructor and Description |
---|
TradeChartAxisLabelFormatter()
Creates a new instance of
TradeChartAxisLabelFormatter class |
TradeChartAxisLabelFormatter(java.util.Locale locale,
java.util.TimeZone timeZone)
Creates a new instance of
TradeChartAxisLabelFormatter 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(CategoryDateAxis axis)
Updates this label formatter with values provided by axis
|
public TradeChartAxisLabelFormatter()
TradeChartAxisLabelFormatter
classpublic TradeChartAxisLabelFormatter(java.util.Locale locale, java.util.TimeZone timeZone)
TradeChartAxisLabelFormatter
classlocale
- The Locale
to use by this formattertimeZone
- The TimeZone
to use by this formatterpublic void update(CategoryDateAxis axis)
update
in interface ILabelFormatter<CategoryDateAxis>
axis
- The current axispublic java.lang.CharSequence formatLabel(double dataValue)
formatLabel
in interface ILabelFormatter<CategoryDateAxis>
dataValue
- The data value to formatpublic java.lang.CharSequence formatCursorLabel(double dataValue)
formatCursorLabel
in interface ILabelFormatter<CategoryDateAxis>
dataValue
- The data value to format