org.mbari.siam.moos.utils.node
Class SiamMeterDataset

java.lang.Object
  extended by com.jrefinery.data.AbstractDataset
      extended by com.jrefinery.data.DefaultMeterDataset
          extended by org.mbari.siam.moos.utils.node.SiamMeterDataset
All Implemented Interfaces:
Dataset, MeterDataset

public class SiamMeterDataset
extends DefaultMeterDataset

EnvDataset

Description: This is the dataset object for each variable to be plotted

C August 2003 MBARI * Monterey Bay Aquarium Research Institute Proprietary Information. All rights reserved.

Version:
1.0
Author:
Sanghamitra Das

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
SiamMeterDataset(java.lang.Number min, java.lang.Number max, java.lang.Number value, java.lang.String units, java.lang.String name, Instrument ins, java.lang.String nodeName)
           
SiamMeterDataset(java.lang.String name, Instrument ins, java.lang.String nodeName)
          constructor
 
Method Summary
 void add(java.lang.Double xvalue, java.lang.Double yvalue)
          add a value to the dataset
 java.util.HashMap getFileSettings()
          get the settings from the settings file if it exssts
 int getItemCount(int series)
          Returns the number of data values to be plotted on the chart
 int getSeriesCount()
          returns the series count.
 java.lang.String getSeriesName(int series)
          Returns the series Name / variable name which is being plotted
 java.lang.Object getSettings()
          Returns the settings object associated with this dataset
 java.lang.Number getXValue(int series, int n)
          Returns the x value of the nth position
 java.lang.Number getYValue(int series, int n)
          Returns the y value of the nth position
 void setTranslate(double whatever)
           
 
Methods inherited from class com.jrefinery.data.DefaultMeterDataset
getBorderType, getMaximumCriticalValue, getMaximumNormalValue, getMaximumValue, getMaximumWarningValue, getMinimumCriticalValue, getMinimumNormalValue, getMinimumValue, getMinimumWarningValue, getUnits, getValue, isValueValid, setBorderType, setCriticalRange, setNormalRange, setRange, setUnits, setValue, setWarningRange
 
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

SiamMeterDataset

public SiamMeterDataset(java.lang.String name,
                        Instrument ins,
                        java.lang.String nodeName)
constructor


SiamMeterDataset

public SiamMeterDataset(java.lang.Number min,
                        java.lang.Number max,
                        java.lang.Number value,
                        java.lang.String units,
                        java.lang.String name,
                        Instrument ins,
                        java.lang.String nodeName)
Method Detail

add

public void add(java.lang.Double xvalue,
                java.lang.Double yvalue)
add a value to the dataset


setTranslate

public void setTranslate(double whatever)

getXValue

public java.lang.Number getXValue(int series,
                                  int n)
Returns the x value of the nth position


getYValue

public java.lang.Number getYValue(int series,
                                  int n)
Returns the y value of the nth position


getSeriesCount

public int getSeriesCount()
returns the series count. In this case we always will have one series


getSeriesName

public java.lang.String getSeriesName(int series)
Returns the series Name / variable name which is being plotted


getItemCount

public int getItemCount(int series)
Returns the number of data values to be plotted on the chart


getSettings

public java.lang.Object getSettings()
Returns the settings object associated with this dataset


getFileSettings

public java.util.HashMap getFileSettings()
get the settings from the settings file if it exssts



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.