EchoPoint
1.0

echopoint.meter
Interface MeterModel

All Known Implementing Classes:
DefaultMeterModel

public interface MeterModel

This model interface is used to represent a a range of values, a current value as well as an optional normal, warning and critical range.

If the normal, warning or critical ranges ar not required, they can be set to to null.

The minimim, maximum range must never be null, however the current value can be null.


Method Summary
 void addChangeListener(nextapp.echo.event.ChangeListener l)
          Adds a ChangeListener to the button.
 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.
 

Method Detail

addChangeListener

public void addChangeListener(nextapp.echo.event.ChangeListener l)
Adds a ChangeListener to the button.

Parameters:
l - The ChangeListener to be added.

getMaximumCriticalValue

public java.lang.Number getMaximumCriticalValue()
Returns the maximum critical value.

Returns:
the maximum critical value.

getMaximumNormalValue

public java.lang.Number getMaximumNormalValue()
Returns the maximum normal value.

Returns:
the maximum normal value.

getMaximumValue

public java.lang.Number getMaximumValue()
Returns the maximum value.

Returns:
the maximum value.

getMaximumWarningValue

public java.lang.Number getMaximumWarningValue()
Returns the maximum warning value.

Returns:
the maximum warning value.

getMinimumCriticalValue

public java.lang.Number getMinimumCriticalValue()
Returns the minimum critical value.

Returns:
the minimum critical value.

getMinimumNormalValue

public java.lang.Number getMinimumNormalValue()
Returns the minimum normal value.

Returns:
the minimum normal value.

getMinimumValue

public java.lang.Number getMinimumValue()
Returns the minimum value.

Returns:
the minimum value.

getMinimumWarningValue

public java.lang.Number getMinimumWarningValue()
Returns the minimum warning value.

Returns:
the minimum warning value.

getValue

public java.lang.Number getValue()
Returns the value.

Returns:
the value.

removeChangeListener

public void removeChangeListener(nextapp.echo.event.ChangeListener l)
Removes a ChangeListener from the button.

Parameters:
l - The ChangeListener to be removed.

setCriticalRange

public void setCriticalRange(java.lang.Number minCritical,
                             java.lang.Number maxCritical)
Sets the critical range for the dataset. Registered listeners are notified of the change.

Parameters:
minCritical - the new minimum.
maxCritical - the new maximum.

setNormalRange

public void setNormalRange(java.lang.Number minNormal,
                           java.lang.Number maxNormal)
Sets the normal range for the dataset. Registered listeners are notified of the change.

Parameters:
minNormal - the new minimum.
maxNormal - the new maximum.

setRange

public void setRange(java.lang.Number min,
                     java.lang.Number max)
Sets the range for the dataset. Registered listeners are notified of the change.

Parameters:
min - the new minimum.
max - the new maximum.

setValue

public void setValue(double value)
Sets the value.

Parameters:
value - the new value.

setValue

public void setValue(java.lang.Number value)
Sets the value for the dataset.

Parameters:
value - the new value.

setWarningRange

public void setWarningRange(java.lang.Number minWarning,
                            java.lang.Number maxWarning)
Sets the warning range for the dataset. Registered listeners are notified of the change.

Parameters:
minWarning - the new minimum.
maxWarning - the new maximum.

EchoPoint
1.0