|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.meter.DefaultMeterModel
The default implementation of the MeterModel interface.
Note that this model implementation will adjust the value so that it is always between the maximum and minimum range.
Field Summary | |
protected nextapp.echo.event.EventListenerList |
listenerList
The event listener support . |
Constructor Summary | |
DefaultMeterModel()
Default constructor. |
|
DefaultMeterModel(java.lang.Number min,
java.lang.Number max,
java.lang.Number value)
Creates a new dataset. |
|
DefaultMeterModel(java.lang.Number min,
java.lang.Number max,
java.lang.Number value,
java.lang.Number minCritical,
java.lang.Number maxCritical,
java.lang.Number minWarning,
java.lang.Number maxWarning,
java.lang.Number minNormal,
java.lang.Number maxNormal)
Creates a new dataset. |
Method Summary | |
void |
addChangeListener(nextapp.echo.event.ChangeListener l)
Adds a ChangeListener to the button. |
void |
fireStateChanged()
Notifies all listeners that have registered for this event type. |
java.lang.Number |
getMaximumCriticalValue()
Returns the maximum critical value. |
java.lang.Number |
getMaximumNormalValue()
Returns the maximum normal value. |
java.lang.Number |
getMaximumValue()
Returns the maximum value. |
java.lang.Number |
getMaximumWarningValue()
Returns the maximum warning value. |
java.lang.Number |
getMinimumCriticalValue()
Returns the minimum critical value. |
java.lang.Number |
getMinimumNormalValue()
Returns the minimum normal value. |
java.lang.Number |
getMinimumValue()
Returns the minimum value. |
java.lang.Number |
getMinimumWarningValue()
Returns the minimum warning value. |
java.lang.Number |
getValue()
Returns the value. |
void |
removeChangeListener(nextapp.echo.event.ChangeListener l)
Removes a ChangeListener from the button. |
void |
setCriticalRange(java.lang.Number minCritical,
java.lang.Number maxCritical)
Sets the critical range for the dataset. |
void |
setNormalRange(java.lang.Number minNormal,
java.lang.Number maxNormal)
Sets the normal range for the dataset. |
void |
setRange(java.lang.Number min,
java.lang.Number max)
Sets the range for the dataset. |
void |
setValue(double value)
Sets the value. |
void |
setValue(java.lang.Number value)
Sets the value for the dataset. |
void |
setWarningRange(java.lang.Number minWarning,
java.lang.Number maxWarning)
Sets the warning range for the dataset. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected nextapp.echo.event.EventListenerList listenerList
Constructor Detail |
public DefaultMeterModel()
public DefaultMeterModel(java.lang.Number min, java.lang.Number max, java.lang.Number value)
min
- the minimum value.max
- the maximum value.value
- the current value.public DefaultMeterModel(java.lang.Number min, java.lang.Number max, java.lang.Number value, java.lang.Number minCritical, java.lang.Number maxCritical, java.lang.Number minWarning, java.lang.Number maxWarning, java.lang.Number minNormal, java.lang.Number maxNormal)
min
- the lower bound for the overall range.max
- the upper bound for the overall range.value
- the current value.minCritical
- the minimum critical value.maxCritical
- the maximum critical value.minWarning
- the minimum warning value.maxWarning
- the maximum warning value.minNormal
- the minimum normal value.maxNormal
- the maximum normal value.Method Detail |
public void addChangeListener(nextapp.echo.event.ChangeListener l)
ChangeListener
to the button.
addChangeListener
in interface MeterModel
l
- The ChangeListener
to be added.public void fireStateChanged()
public java.lang.Number getMaximumCriticalValue()
getMaximumCriticalValue
in interface MeterModel
public java.lang.Number getMaximumNormalValue()
getMaximumNormalValue
in interface MeterModel
public java.lang.Number getMaximumValue()
getMaximumValue
in interface MeterModel
public java.lang.Number getMaximumWarningValue()
getMaximumWarningValue
in interface MeterModel
public java.lang.Number getMinimumCriticalValue()
getMinimumCriticalValue
in interface MeterModel
public java.lang.Number getMinimumNormalValue()
getMinimumNormalValue
in interface MeterModel
public java.lang.Number getMinimumValue()
getMinimumValue
in interface MeterModel
public java.lang.Number getMinimumWarningValue()
getMinimumWarningValue
in interface MeterModel
public java.lang.Number getValue()
getValue
in interface MeterModel
public void removeChangeListener(nextapp.echo.event.ChangeListener l)
ChangeListener
from the button.
removeChangeListener
in interface MeterModel
l
- The ChangeListener
to be removed.public void setCriticalRange(java.lang.Number minCritical, java.lang.Number maxCritical)
setCriticalRange
in interface MeterModel
minCritical
- the new minimum.maxCritical
- the new maximum.public void setNormalRange(java.lang.Number minNormal, java.lang.Number maxNormal)
setNormalRange
in interface MeterModel
minNormal
- the new minimum.maxNormal
- the new maximum.public void setRange(java.lang.Number min, java.lang.Number max)
setRange
in interface MeterModel
min
- the new minimum.max
- the new maximum.public void setValue(double value)
setValue
in interface MeterModel
value
- the new value.public void setValue(java.lang.Number value)
setValue
in interface MeterModel
value
- the new value.public void setWarningRange(java.lang.Number minWarning, java.lang.Number maxWarning)
setWarningRange
in interface MeterModel
minWarning
- the new minimum.maxWarning
- the new maximum.public java.lang.String toString()
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |