public abstract class ALabelFormatter extends 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 and Description |
---|---|
protected 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 and Description |
---|---|
protected |
ALabelFormatter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Registers a property change listener that will be informed about changes of
the property identified by the given
propertyName . |
boolean |
equals(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(String property,
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. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
format, getMinimumValueShiftForChange, getNextEvenValue, parse
public static final AUnit UNIT_UNCHANGED
getUnit()
.protected PropertyChangeSupport m_propertyChangeSupport
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
IAxisLabelFormatter
propertyName
.
addPropertyChangeListener
in interface IAxisLabelFormatter
propertyName
- 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(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int getMaxAmountChars()
IAxisLabelFormatter.format(double)
.
getMaxAmountChars
in interface IAxisLabelFormatter
IAxisLabelFormatter.format(double)
.public AUnit getUnit()
UNIT_UNCHANGED
.
getUnit
in interface IAxisLabelFormatter
UNIT_UNCHANGED
IAxisLabelFormatter.getUnit()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void initPaintIteration()
initPaintIteration
in interface IAxisLabelFormatter
IAxisLabelFormatter.initPaintIteration()
public void removePropertyChangeListener(String property, PropertyChangeListener listener)
IAxisLabelFormatter
removePropertyChangeListener
in interface IAxisLabelFormatter
property
- 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 IAxisLabelFormatter
axis
- The m_axis to set.Copyright © 2017. All rights reserved.