com.jrefinery.data
Class DefaultMeterDataset

java.lang.Object
  extended by com.jrefinery.data.AbstractDataset
      extended by com.jrefinery.data.DefaultMeterDataset
All Implemented Interfaces:
Dataset, MeterDataset
Direct Known Subclasses:
SiamMeterDataset

public class DefaultMeterDataset
extends AbstractDataset
implements MeterDataset

A default implementation of the MeterDataset interface.


Field Summary
 
Fields inherited from class com.jrefinery.data.AbstractDataset
listeners
 
Fields inherited from interface com.jrefinery.data.MeterDataset
CRITICAL_DATA, FULL_DATA, NORMAL_DATA, WARNING_DATA
 
Constructor Summary
DefaultMeterDataset()
           
DefaultMeterDataset(java.lang.Number min, java.lang.Number max, java.lang.Number value, java.lang.String units)
           
DefaultMeterDataset(java.lang.Number min, java.lang.Number max, java.lang.Number value, java.lang.String units, java.lang.Number minCritical, java.lang.Number maxCritical, java.lang.Number minWarning, java.lang.Number maxWarning, java.lang.Number minNormal, java.lang.Number maxNormal, int borderType)
           
 
Method Summary
 int getBorderType()
           
 java.lang.Number getMaximumCriticalValue()
          Returns the upper value in the critical range.
 java.lang.Number getMaximumNormalValue()
          Returns the upper value in the normal range.
 java.lang.Number getMaximumValue()
          Returns the upper value in the overall range.
 java.lang.Number getMaximumWarningValue()
          Returns the upper value in the warning range.
 java.lang.Number getMinimumCriticalValue()
          Returns the lower value in the critical range.
 java.lang.Number getMinimumNormalValue()
          Returns the lower value in the normal range.
 java.lang.Number getMinimumValue()
          Returns the lower value in the overall range.
 java.lang.Number getMinimumWarningValue()
          Returns the lower value in the warning range.
 java.lang.String getUnits()
           
 java.lang.Number getValue()
          Returns the value.
 boolean isValueValid()
           
 void setBorderType(int borderType)
           
 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 setUnits(java.lang.String units)
           
 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.
 
Methods inherited from class com.jrefinery.data.AbstractDataset
addChangeListener, fireDatasetChanged, notifyListeners, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jrefinery.data.Dataset
addChangeListener, removeChangeListener
 

Constructor Detail

DefaultMeterDataset

public DefaultMeterDataset()

DefaultMeterDataset

public DefaultMeterDataset(java.lang.Number min,
                           java.lang.Number max,
                           java.lang.Number value,
                           java.lang.String units)

DefaultMeterDataset

public DefaultMeterDataset(java.lang.Number min,
                           java.lang.Number max,
                           java.lang.Number value,
                           java.lang.String units,
                           java.lang.Number minCritical,
                           java.lang.Number maxCritical,
                           java.lang.Number minWarning,
                           java.lang.Number maxWarning,
                           java.lang.Number minNormal,
                           java.lang.Number maxNormal,
                           int borderType)
Method Detail

getMinimumCriticalValue

public java.lang.Number getMinimumCriticalValue()
Description copied from interface: MeterDataset
Returns the lower value in the critical range.

Specified by:
getMinimumCriticalValue in interface MeterDataset
Returns:
The lower value.

getMaximumCriticalValue

public java.lang.Number getMaximumCriticalValue()
Description copied from interface: MeterDataset
Returns the upper value in the critical range.

Specified by:
getMaximumCriticalValue in interface MeterDataset
Returns:
The upper value.

getMinimumWarningValue

public java.lang.Number getMinimumWarningValue()
Description copied from interface: MeterDataset
Returns the lower value in the warning range.

Specified by:
getMinimumWarningValue in interface MeterDataset
Returns:
The lower value.

getMaximumWarningValue

public java.lang.Number getMaximumWarningValue()
Description copied from interface: MeterDataset
Returns the upper value in the warning range.

Specified by:
getMaximumWarningValue in interface MeterDataset
Returns:
The upper value.

getMinimumNormalValue

public java.lang.Number getMinimumNormalValue()
Description copied from interface: MeterDataset
Returns the lower value in the normal range.

Specified by:
getMinimumNormalValue in interface MeterDataset
Returns:
The lower value.

getMaximumNormalValue

public java.lang.Number getMaximumNormalValue()
Description copied from interface: MeterDataset
Returns the upper value in the normal range.

Specified by:
getMaximumNormalValue in interface MeterDataset
Returns:
The upper value.

getMinimumValue

public java.lang.Number getMinimumValue()
Description copied from interface: MeterDataset
Returns the lower value in the overall range.

Specified by:
getMinimumValue in interface MeterDataset
Returns:
The lower value.

getMaximumValue

public java.lang.Number getMaximumValue()
Description copied from interface: MeterDataset
Returns the upper value in the overall range.

Specified by:
getMaximumValue in interface MeterDataset
Returns:
The upper value.

getValue

public java.lang.Number getValue()
Description copied from interface: MeterDataset
Returns the value.

Specified by:
getValue in interface MeterDataset
Returns:
The value.

getUnits

public java.lang.String getUnits()
Specified by:
getUnits in interface MeterDataset

isValueValid

public boolean isValueValid()
Specified by:
isValueValid in interface MeterDataset

getBorderType

public int getBorderType()
Specified by:
getBorderType in interface MeterDataset

setUnits

public void setUnits(java.lang.String units)

setBorderType

public void setBorderType(int borderType)

setValue

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

Parameters:
value - The new value.

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.

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:
min - The new minimum.
max - The new maximum.

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:
min - The new minimum.
max - The new maximum.

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:
min - The new minimum.
max - The new maximum.


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.