Class ALabelFormatter
java.lang.Object
info.monitorenter.gui.chart.labelformatters.ALabelFormatter
- All Implemented Interfaces:
IAxisLabelFormatter
,Serializable
- Direct Known Subclasses:
LabelFormatterAutoUnits
,LabelFormatterDate
,LabelFormatterNumber
,LabelFormatterUnit
A label formatter that is aware of the
AAxis
it formats label for.
This allows to compute the amount of fraction digits needed from the range to display.
- Version:
- $Revision: 1.10 $
- Author:
- Achim Westermann
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PropertyChangeSupport
Support for acting as a property change event producer for listeners.static final AUnit
The default unit with the factor 1 that is returned as the default forgetUnit()
.Fields inherited from interface info.monitorenter.gui.chart.IAxisLabelFormatter
PROPERTY_FORMATCHANGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) Registers a property change listener that will be informed about changes of the property identified by the givenpropertyName
.boolean
IAxis
<?> getAxis()
Intended forAAxis
only.int
Returns the maximum amount of characters that will be returned fromIAxisLabelFormatter.format(double)
.getUnit()
ReturnsUNIT_UNCHANGED
.int
hashCode()
void
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
Intended forAAxis
only.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface info.monitorenter.gui.chart.IAxisLabelFormatter
format, getMinimumValueShiftForChange, getNextEvenValue, parse
-
Field Details
-
UNIT_UNCHANGED
The default unit with the factor 1 that is returned as the default forgetUnit()
. -
m_propertyChangeSupport
Support for acting as a property change event producer for listeners.
-
-
Constructor Details
-
ALabelFormatter
protected ALabelFormatter()Default constructor.
-
-
Method Details
-
addPropertyChangeListener
Description copied from interface:IAxisLabelFormatter
Registers a property change listener that will be informed about changes of the property identified by the givenpropertyName
.- Specified by:
addPropertyChangeListener
in interfaceIAxisLabelFormatter
- Parameters:
propertyName
- the name of the property the listener is interested inlistener
- a listener that will only be informed if the property identified by the argumentpropertyName
changes- See Also:
-
equals
-
getAxis
Intended forAAxis
only.- Returns:
- Returns the axis.
-
getMaxAmountChars
public int getMaxAmountChars()Returns the maximum amount of characters that will be returned fromIAxisLabelFormatter.format(double)
.- Specified by:
getMaxAmountChars
in interfaceIAxisLabelFormatter
- Returns:
- the maximum amount of characters that will be returned from
IAxisLabelFormatter.format(double)
.
-
getUnit
ReturnsUNIT_UNCHANGED
.- Specified by:
getUnit
in interfaceIAxisLabelFormatter
- Returns:
UNIT_UNCHANGED
- See Also:
-
hashCode
public int hashCode() -
initPaintIteration
public void initPaintIteration()Void adapter method implementation - optional to override.- Specified by:
initPaintIteration
in interfaceIAxisLabelFormatter
- See Also:
-
removePropertyChangeListener
Description copied from interface:IAxisLabelFormatter
Deregisters a property change listener that has been registerd for listening on the given property.- Specified by:
removePropertyChangeListener
in interfaceIAxisLabelFormatter
- Parameters:
property
- the property the listener was registered to.listener
- a listener that will only be informed if the property identified by the argumentpropertyName
changes- See Also:
-
setAxis
Intended forAAxis
only.Do never invoke this! This is only public for package sorting reasons.
- Specified by:
setAxis
in interfaceIAxisLabelFormatter
- Parameters:
axis
- The m_axis to set.
-