anl.aida.plot
Class DFTimeSeriesParams

java.lang.Object
  extended by anl.aida.plot.DFTimeSeriesParams
All Implemented Interfaces:
TimeSeriesParameters

public class DFTimeSeriesParams
extends java.lang.Object
implements TimeSeriesParameters

Adapts one or more DataFrames to the TimeSeriesParameters interface.


Field Summary
private  org.jfree.data.time.TimeSeriesCollection dataset
           
private  double max
           
private  double min
           
private  java.lang.String seriesHeading
           
private  java.lang.String title
           
private  java.lang.String unitsLabel
           
private  java.lang.String xAxisLabel
           
private  java.lang.String yAxisLabel
           
 
Constructor Summary
DFTimeSeriesParams(java.util.List<anl.aida.data.DataFrame> frames)
           
DFTimeSeriesParams(java.util.List<anl.aida.data.DataFrame> frames, int[] otherAxisIndices)
           
 
Method Summary
private  void addFrame1Axis(anl.aida.data.DataFrame frame)
           
private  void addFrame2Axis(anl.aida.data.DataFrame frame)
           
private  void addFrame2Axis(anl.aida.data.DataFrame frame, int[] otherAxisIndices)
           
private  void createDataset(java.util.List<anl.aida.data.DataFrame> frames, int[] otherAxisIndices)
           
 org.jfree.data.time.TimeSeriesCollection getDataset()
          Gets the dataset for the time series.
 double getMax()
          Gets the maximum value of the time series.
 double getMin()
          Gets the minimum value of the time series.
 java.lang.String getSeriesHeading()
          Gets the heading for the series.
 java.lang.String getTitle()
          Gets the title of the time series.
 java.lang.String getUnitsLabel()
          Gets the label for the units, if any.
 java.lang.String getXAxisLabel()
          Gets the label for the x-axis.
 java.lang.String getYAxisLabel()
          Gets the label for the y-axis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

private double min

max

private double max

dataset

private org.jfree.data.time.TimeSeriesCollection dataset

seriesHeading

private java.lang.String seriesHeading

unitsLabel

private java.lang.String unitsLabel

xAxisLabel

private java.lang.String xAxisLabel

yAxisLabel

private java.lang.String yAxisLabel

title

private java.lang.String title
Constructor Detail

DFTimeSeriesParams

public DFTimeSeriesParams(java.util.List<anl.aida.data.DataFrame> frames)

DFTimeSeriesParams

public DFTimeSeriesParams(java.util.List<anl.aida.data.DataFrame> frames,
                          int[] otherAxisIndices)
Method Detail

createDataset

private void createDataset(java.util.List<anl.aida.data.DataFrame> frames,
                           int[] otherAxisIndices)

addFrame1Axis

private void addFrame1Axis(anl.aida.data.DataFrame frame)

addFrame2Axis

private void addFrame2Axis(anl.aida.data.DataFrame frame)

addFrame2Axis

private void addFrame2Axis(anl.aida.data.DataFrame frame,
                           int[] otherAxisIndices)

getDataset

public org.jfree.data.time.TimeSeriesCollection getDataset()
Description copied from interface: TimeSeriesParameters
Gets the dataset for the time series.

Specified by:
getDataset in interface TimeSeriesParameters
Returns:
the dataset for the time series.

getMax

public double getMax()
Description copied from interface: TimeSeriesParameters
Gets the maximum value of the time series.

Specified by:
getMax in interface TimeSeriesParameters
Returns:
the maximum value of the time series.

getMin

public double getMin()
Description copied from interface: TimeSeriesParameters
Gets the minimum value of the time series.

Specified by:
getMin in interface TimeSeriesParameters
Returns:
the minimum value of the time series.

getSeriesHeading

public java.lang.String getSeriesHeading()
Description copied from interface: TimeSeriesParameters
Gets the heading for the series.

Specified by:
getSeriesHeading in interface TimeSeriesParameters
Returns:
the heading for the series.

getTitle

public java.lang.String getTitle()
Description copied from interface: TimeSeriesParameters
Gets the title of the time series.

Specified by:
getTitle in interface TimeSeriesParameters
Returns:
the title of the time series.

getUnitsLabel

public java.lang.String getUnitsLabel()
Description copied from interface: TimeSeriesParameters
Gets the label for the units, if any.

Specified by:
getUnitsLabel in interface TimeSeriesParameters
Returns:
the label for the units, if any.

getXAxisLabel

public java.lang.String getXAxisLabel()
Description copied from interface: TimeSeriesParameters
Gets the label for the x-axis.

Specified by:
getXAxisLabel in interface TimeSeriesParameters
Returns:
the label for the x-axis.

getYAxisLabel

public java.lang.String getYAxisLabel()
Description copied from interface: TimeSeriesParameters
Gets the label for the y-axis.

Specified by:
getYAxisLabel in interface TimeSeriesParameters
Returns:
the label for the y-axis.