|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.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 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() . |
Fields inherited from interface info.monitorenter.gui.chart.IAxisLabelFormatter |
---|
PROPERTY_FORMATCHANGE |
Constructor Summary | |
---|---|
protected |
ALabelFormatter()
Default constructor. |
Method Summary | |
---|---|
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. |
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 Detail |
---|
public static final AUnit UNIT_UNCHANGED
getUnit()
.
protected java.beans.PropertyChangeSupport m_propertyChangeSupport
Constructor Detail |
---|
protected ALabelFormatter()
Method Detail |
---|
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.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(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
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 int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void initPaintIteration()
initPaintIteration
in interface IAxisLabelFormatter
IAxisLabelFormatter.initPaintIteration()
public void removePropertyChangeListener(java.lang.String property, java.beans.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 | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |