|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.gui.chart.labelformatters.ALabelFormatter
public abstract class ALabelFormatter
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.
Field Summary | |
---|---|
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() . |
Fields inherited from interface info.monitorenter.gui.chart.IAxisLabelFormatter |
---|
PROPERTY_FORMATCHANGE |
Constructor Summary | |
---|---|
protected |
ALabelFormatter()
Default constructor. |
Method Summary | |
---|---|
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 . |
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 . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.monitorenter.gui.chart.IAxisLabelFormatter |
---|
format, getMinimumValueShiftForChange, getNextEvenValue, parse |
Field Detail |
---|
public static final AUnit UNIT_UNCHANGED
getUnit()
.
protected PropertyChangeSupport m_propertyChangeSupport
Constructor Detail |
---|
protected ALabelFormatter()
Method Detail |
---|
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 IAxis getAxis()
AAxis
only.
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 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |