info.monitorenter.gui.chart.labelformatters
Class ALabelFormatter
- java.lang.Object
-
- info.monitorenter.gui.chart.labelformatters.ALabelFormatter
-
- All Implemented Interfaces:
- IAxisLabelFormatter, java.io.Serializable
- Direct Known Subclasses:
- LabelFormatterAutoUnits, LabelFormatterDate, LabelFormatterNumber, LabelFormatterUnit
public abstract class ALabelFormatter extends java.lang.Object implements IAxisLabelFormatter
A label formatter that is aware of theAAxisit formats label for.This allows to compute the amount of fraction digits needed from the range to display.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static AUnitUNIT_UNCHANGEDThe default unit with the factor 1 that is returned as the default forgetUnit().-
Fields inherited from interface info.monitorenter.gui.chart.IAxisLabelFormatter
PROPERTY_FORMATCHANGE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPropertyChangeListener(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 givenpropertyName.booleanequals(java.lang.Object obj)IAxis<?>getAxis()Intended forAAxisonly.intgetMaxAmountChars()Returns the maximum amount of characters that will be returned fromIAxisLabelFormatter.format(double).AUnitgetUnit()ReturnsUNIT_UNCHANGED.inthashCode()voidinitPaintIteration()Void adapter method implementation - optional to override.voidremovePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)Deregisters a property change listener that has been registerd for listening on the given property.voidsetAxis(IAxis<?> axis)Intended forAAxisonly.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface info.monitorenter.gui.chart.IAxisLabelFormatter
format, getMinimumValueShiftForChange, getNextEvenValue, parse
-
-
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)Description copied from interface:IAxisLabelFormatterRegisters a property change listener that will be informed about changes of the property identified by the givenpropertyName.- Specified by:
addPropertyChangeListenerin 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 argumentpropertyNamechanges- See Also:
IAxisLabelFormatter.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
getMaxAmountChars
public int getMaxAmountChars()
Returns the maximum amount of characters that will be returned fromIAxisLabelFormatter.format(double).- Specified by:
getMaxAmountCharsin interfaceIAxisLabelFormatter- Returns:
- the maximum amount of characters that will be returned from
IAxisLabelFormatter.format(double).
-
getUnit
public AUnit getUnit()
ReturnsUNIT_UNCHANGED.- Specified by:
getUnitin interfaceIAxisLabelFormatter- Returns:
UNIT_UNCHANGED- See Also:
IAxisLabelFormatter.getUnit()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
initPaintIteration
public void initPaintIteration()
Void adapter method implementation - optional to override.- Specified by:
initPaintIterationin interfaceIAxisLabelFormatter- See Also:
IAxisLabelFormatter.initPaintIteration()
-
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)Description copied from interface:IAxisLabelFormatterDeregisters a property change listener that has been registerd for listening on the given property.- Specified by:
removePropertyChangeListenerin interfaceIAxisLabelFormatter- Parameters:
property- the property the listener was registered to.listener- a listener that will only be informed if the property identified by the argumentpropertyNamechanges- See Also:
IAxisLabelFormatter.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
-
setAxis
public void setAxis(IAxis<?> axis)
Intended forAAxisonly.Do never invoke this! This is only public for package sorting reasons.
- Specified by:
setAxisin interfaceIAxisLabelFormatter- Parameters:
axis- The m_axis to set.
-
-
DMelt 3.0 © DataMelt by jWork.ORG