HiRISE

HiRISE.HiReport.util
Class OrbitNumberDataset

java.lang.Object
  extended by org.jfree.data.general.AbstractDataset
      extended by org.jfree.data.general.AbstractSeriesDataset
          extended by org.jfree.data.xy.AbstractXYDataset
              extended by org.jfree.data.xy.AbstractIntervalXYDataset
                  extended by HiRISE.HiReport.util.OrbitNumberDataset
All Implemented Interfaces:
ObjectInputValidation, Serializable, Cloneable, EventListener, Dataset, SeriesChangeListener, SeriesDataset, IntervalXYDataset, XYDataset

public class OrbitNumberDataset
extends AbstractIntervalXYDataset

Dataset for holding values with in the orbit number domain.

See Also:
Serialized Form

Constructor Summary
OrbitNumberDataset(int minOrbit, int maxOrbit)
          Create a new dataset with the given range.
 
Method Summary
 void addSeries(String key)
          Add a new data series
 DomainOrder getDomainOrder()
           
 Number getEndX(int series, int item)
           
 Number getEndY(int series, int item)
           
 int getItemCount(int series)
           
 int getSeriesCount()
           
 Comparable getSeriesKey(int series)
           
 Number getStartX(int series, int item)
           
 Number getStartY(int series, int item)
           
 Number getX(int series, int item)
           
 double getXValue(int series, int item)
           
 Number getY(int series, int item)
           
 double getYValue(int series, int item)
           
 void incrementValue(int series, int orbit, double increment)
          Add a number to a stored value.
 void setValue(int series, int orbit, double value)
          Set a value.
 
Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset
getEndXValue, getEndYValue, getStartXValue, getStartYValue
 
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChanged
 
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.data.general.SeriesDataset
indexOf
 
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
 

Constructor Detail

OrbitNumberDataset

public OrbitNumberDataset(int minOrbit,
                          int maxOrbit)
Create a new dataset with the given range. Data series will need to be added with the addSeries() method.

Parameters:
minOrbit - starting orbit
maxOrbit - ending orbit
Method Detail

addSeries

public void addSeries(String key)
Add a new data series

Parameters:
key - unique name of series

setValue

public void setValue(int series,
                     int orbit,
                     double value)
Set a value.

Parameters:
series - number (order of creation)
orbit - number (must be in range)
value - the number to store

incrementValue

public void incrementValue(int series,
                           int orbit,
                           double increment)
Add a number to a stored value.

Parameters:
series - number (order of creation)
orbit - number (must be in range)
increment - value to add

getItemCount

public int getItemCount(int series)

getSeriesCount

public int getSeriesCount()
Specified by:
getSeriesCount in interface SeriesDataset
Specified by:
getSeriesCount in class AbstractSeriesDataset

getSeriesKey

public Comparable getSeriesKey(int series)
Specified by:
getSeriesKey in interface SeriesDataset
Specified by:
getSeriesKey in class AbstractSeriesDataset

getDomainOrder

public DomainOrder getDomainOrder()
Specified by:
getDomainOrder in interface XYDataset
Overrides:
getDomainOrder in class AbstractXYDataset

getXValue

public double getXValue(int series,
                        int item)
Specified by:
getXValue in interface XYDataset
Overrides:
getXValue in class AbstractXYDataset

getYValue

public double getYValue(int series,
                        int item)
Specified by:
getYValue in interface XYDataset
Overrides:
getYValue in class AbstractXYDataset

getX

public Number getX(int series,
                   int item)

getStartX

public Number getStartX(int series,
                        int item)

getEndX

public Number getEndX(int series,
                      int item)

getY

public Number getY(int series,
                   int item)

getStartY

public Number getStartY(int series,
                        int item)

getEndY

public Number getEndY(int series,
                      int item)

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona