anl.aida.plot
Class CacheTimeSeriesParams

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

public class CacheTimeSeriesParams
extends java.lang.Object
implements TimeSeriesParameters


Field Summary
private  org.jfree.data.time.TimeSeriesCollection dataset
           
private  java.util.List<ProgressListener<anl.aida.util.DateRange>> listeners
           
private  double max
           
private  double min
           
private static simphony.util.messages.MessageCenter msg
           
 
Constructor Summary
private CacheTimeSeriesParams()
           
 
Method Summary
 void addProgressListener(ProgressListener<anl.aida.util.DateRange> listener)
          Adds listener that will list for progress in the dataset creation.
static CacheTimeSeriesParams createParams(Cache cache, java.util.Collection<? extends Keyword> keywords, java.lang.Iterable<anl.aida.util.DateRange> ranges, ProgressListener<anl.aida.util.DateRange>... listeners)
           
private  void fireUpdate(anl.aida.util.DateRange range)
           
 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.
private  void init(Cache cache, java.util.Collection<? extends Keyword> keywords, java.lang.Iterable<anl.aida.util.DateRange> ranges)
           
private  void updateSeries(Keyword keyword, anl.aida.util.DateRange range, int docCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msg

private static simphony.util.messages.MessageCenter msg

dataset

private org.jfree.data.time.TimeSeriesCollection dataset

min

private double min

max

private double max

listeners

private java.util.List<ProgressListener<anl.aida.util.DateRange>> listeners
Constructor Detail

CacheTimeSeriesParams

private CacheTimeSeriesParams()
Method Detail

createParams

public static CacheTimeSeriesParams createParams(Cache cache,
                                                 java.util.Collection<? extends Keyword> keywords,
                                                 java.lang.Iterable<anl.aida.util.DateRange> ranges,
                                                 ProgressListener<anl.aida.util.DateRange>... listeners)

init

private void init(Cache cache,
                  java.util.Collection<? extends Keyword> keywords,
                  java.lang.Iterable<anl.aida.util.DateRange> ranges)

updateSeries

private void updateSeries(Keyword keyword,
                          anl.aida.util.DateRange range,
                          int docCount)

addProgressListener

public void addProgressListener(ProgressListener<anl.aida.util.DateRange> listener)
Adds listener that will list for progress in the dataset creation.

Parameters:
listener - the listener to add.

fireUpdate

private void fireUpdate(anl.aida.util.DateRange range)

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.