IAxisLabelFormatter, java.io.SerializableLabelFormatterAutoUnits, LabelFormatterDate, LabelFormatterNumber, LabelFormatterUnitpublic abstract class ALabelFormatter extends java.lang.Object implements IAxisLabelFormatter
AAxis it formats label for.
This allows to compute the amount of fraction digits needed from the range to display.
| Modifier and Type | Field | Description |
|---|---|---|
protected java.beans.PropertyChangeSupport |
m_propertyChangeSupport |
Support for acting as a property change event producer for listeners.
|
static AUnit |
UNIT_UNCHANGED |
The default unit with the factor 1 that is returned as the default for
getUnit(). |
PROPERTY_FORMATCHANGE| Modifier | Constructor | Description |
|---|---|---|
protected |
ALabelFormatter() |
Default constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
Registers a property change listener that will be informed about changes of
the property identified by the given
propertyName. |
boolean |
equals(java.lang.Object obj) |
|
IAxis<?> |
getAxis() |
Intended for
AAxis only. |
int |
getMaxAmountChars() |
Returns the maximum amount of characters that will be returned from
IAxisLabelFormatter.format(double). |
AUnit |
getUnit() |
Returns
UNIT_UNCHANGED. |
int |
hashCode() |
|
void |
initPaintIteration() |
Void adapter method implementation - optional to override.
|
void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener) |
Deregisters a property change listener that has been registerd for
listening on the given property.
|
void |
setAxis(IAxis<?> axis) |
Intended for
AAxis only. |
format, getMinimumValueShiftForChange, getNextEvenValue, parsepublic static final AUnit UNIT_UNCHANGED
getUnit().protected java.beans.PropertyChangeSupport m_propertyChangeSupport
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
IAxisLabelFormatterpropertyName.
addPropertyChangeListener in interface IAxisLabelFormatterpropertyName - the name of the property the listener is interested inlistener - a listener that will only be informed if the property identified
by the argument propertyName changesIAxisLabelFormatter.addPropertyChangeListener(java.lang.String,
java.beans.PropertyChangeListener)public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int getMaxAmountChars()
IAxisLabelFormatter.format(double).
getMaxAmountChars in interface IAxisLabelFormatterIAxisLabelFormatter.format(double).public AUnit getUnit()
UNIT_UNCHANGED.
getUnit in interface IAxisLabelFormatterUNIT_UNCHANGEDIAxisLabelFormatter.getUnit()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void initPaintIteration()
initPaintIteration in interface IAxisLabelFormatterIAxisLabelFormatter.initPaintIteration()public void removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
IAxisLabelFormatterremovePropertyChangeListener in interface IAxisLabelFormatterproperty - the property the listener was registered to.listener - a listener that will only be informed if the property identified
by the argument propertyName changesIAxisLabelFormatter.removePropertyChangeListener(java.lang.String,
java.beans.PropertyChangeListener)public void setAxis(IAxis<?> axis)
AAxis only.
Do never invoke this! This is only public for package sorting reasons.
setAxis in interface IAxisLabelFormatteraxis - The m_axis to set.Copyright © 2001 - 2010 LGPL, All Rights Footloose.