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

java.lang.Object
  extended by com.jrefinery.data.AbstractDataset
      extended by com.jrefinery.data.AbstractSeriesDataset
          extended by com.jrefinery.chart.demo.SampleXYDataset
              extended by org.mbari.siam.moos.utils.node.SiamXYDataset
All Implemented Interfaces:
Dataset, SeriesChangeListener, SeriesDataset, XYDataset
Direct Known Subclasses:
CTDXYDataset, EnvXYDataset

public class SiamXYDataset
extends com.jrefinery.chart.demo.SampleXYDataset

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
 
Constructor Summary
SiamXYDataset(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.chart.demo.SampleXYDataset
getTranslate
 
Methods inherited from class com.jrefinery.data.AbstractSeriesDataset
getLegendItemCount, getLegendItemLabels, seriesChanged
 
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

SiamXYDataset

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

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)
Overrides:
setTranslate in class com.jrefinery.chart.demo.SampleXYDataset

getXValue

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

Specified by:
getXValue in interface XYDataset
Overrides:
getXValue in class com.jrefinery.chart.demo.SampleXYDataset
Parameters:
series - The series (zero-based index).
n - The item (zero-based index).
Returns:
The x-value for an item within a series.

getYValue

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

Specified by:
getYValue in interface XYDataset
Overrides:
getYValue in class com.jrefinery.chart.demo.SampleXYDataset
Parameters:
series - The series (zero-based index).
n - The item (zero-based index).
Returns:
The y-value for an item within a series.

getSeriesCount

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

Specified by:
getSeriesCount in interface SeriesDataset
Overrides:
getSeriesCount in class com.jrefinery.chart.demo.SampleXYDataset
Returns:
The number of series in the dataset.

getSeriesName

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

Specified by:
getSeriesName in interface SeriesDataset
Overrides:
getSeriesName in class com.jrefinery.chart.demo.SampleXYDataset
Parameters:
series - The series (zero-based index).

getItemCount

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

Specified by:
getItemCount in interface XYDataset
Overrides:
getItemCount in class com.jrefinery.chart.demo.SampleXYDataset
Parameters:
series - The series (zero-based index).
Returns:
The number of items within a series.

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.