ucar.unidata.idv.control.chart
Class TimeSeriesChart

java.lang.Object
  extended by ucar.unidata.idv.control.chart.ChartManager
      extended by ucar.unidata.idv.control.chart.XYChartManager
          extended by ucar.unidata.idv.control.chart.TimeSeriesChart
All Implemented Interfaces:
ImageObserver

public class TimeSeriesChart
extends XYChartManager

A time series chart

Version:
$Revision: 1.12 $
Author:
MetApps Development Team

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.unidata.idv.control.chart.XYChartManager
XYChartManager.CloudCoverageRenderer, XYChartManager.MyXYAreaRenderer, XYChartManager.MyXYBarRenderer, XYChartManager.MyXYPlot, XYChartManager.TextRenderer, XYChartManager.WindbarbRenderer
 
Nested classes/interfaces inherited from class ucar.unidata.idv.control.chart.ChartManager
ChartManager.FixedWidthLogarithmicAxis, ChartManager.FixedWidthNumberAxis
 
Field Summary
 
Fields inherited from class ucar.unidata.idv.control.chart.ChartManager
AXIS_WIDTH, chartHolders, contents, control, LAYOUT_2COLGRID, LAYOUT_3COLGRID, LAYOUT_CARD, LAYOUT_GRAPH, LAYOUT_HSTACK, LAYOUT_TAB, LAYOUT_VSTACK, MUTEX, okToDraw, settingData
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TimeSeriesChart()
          ctor
TimeSeriesChart(DisplayControlImpl control)
          Default constructor.
TimeSeriesChart(DisplayControlImpl control, String chartName)
          Default constructor.
 
Method Summary
protected  org.jfree.chart.axis.Axis addSeries(org.jfree.data.time.TimeSeries series, LineState lineState, int paramIdx, org.jfree.chart.renderer.xy.XYItemRenderer renderer, boolean rangeVisible)
          Add the series
 org.jfree.chart.plot.Plot doMakePlot()
          Make the plot
 org.jfree.data.xy.XYDataset getDummyDataset()
          utility
 boolean getShowAnimationTime()
          Get the ShowAnimationTime property.
protected  void initPlot(org.jfree.chart.plot.Plot plot)
          init plot
 void setLocation(ucar.unidata.geoloc.LatLonPoint llp)
           
 void setPointObs(List<PointOb> obs, List plotVars)
          set chart from point data
 void setProbeSamples(List<ProbeRowInfo> rowInfos)
          Set the samples from the probe
 void setProbeSamplesInner()
          Set samples
 void setShowAnimationTime(boolean value)
          Set the ShowAnimationTime property.
 void showAnimationTime(boolean value)
          Show time
 
Methods inherited from class ucar.unidata.idv.control.chart.XYChartManager
addChart, getRenderer, setEmptyChartLabel
 
Methods inherited from class ucar.unidata.idv.control.chart.ChartManager
addLineState, addRange, addViewMenuItems, applyProperties, chartNameChanged, clearLineStates, doMakeContents, doneLoadingData, editLayout, findChartHolder, getChartHolder, getChartHolder, getChartHolders, getContents, getControl, getCurrentRanges, getDefaultChartName, getGridLayoutDimension, getLayout, getMutex, getOkToDraw, getPlotNames, getPlots, getPopupMenuItems, getPreferredChartSize, getPropertiesComponents, getSettingData, getShowThumb, getThumb, hasStuff, imageUpdate, initChart, initCharts, saveImage, setChartHolders, setControl, setGridLayoutDimension, setLayout, setLayoutType, setShowThumb, showPropertiesDialog, signalChartChanged, startLoadingData, timeChanged, timeChanged, updateContents, updateContents, updateThumb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSeriesChart

public TimeSeriesChart()
ctor


TimeSeriesChart

public TimeSeriesChart(DisplayControlImpl control)
Default constructor.

Parameters:
control - control that this is associated with

TimeSeriesChart

public TimeSeriesChart(DisplayControlImpl control,
                       String chartName)
Default constructor.

Parameters:
control - control that this is associated with
chartName - name for the chart
Method Detail

doMakePlot

public org.jfree.chart.plot.Plot doMakePlot()
Make the plot

Specified by:
doMakePlot in class ChartManager
Returns:
The plot_

showAnimationTime

public void showAnimationTime(boolean value)
Show time

Parameters:
value - show time

addSeries

protected org.jfree.chart.axis.Axis addSeries(org.jfree.data.time.TimeSeries series,
                                              LineState lineState,
                                              int paramIdx,
                                              org.jfree.chart.renderer.xy.XYItemRenderer renderer,
                                              boolean rangeVisible)
Add the series

Parameters:
series - The data
lineState - describes how to draw the line
paramIdx - which parameter
renderer - renderer
rangeVisible - do we show range axis
Returns:
the newly created range axis

setProbeSamples

public void setProbeSamples(List<ProbeRowInfo> rowInfos)
                     throws VisADException,
                            RemoteException
Set the samples from the probe

Parameters:
rowInfos - the data
Throws:
RemoteException - On badness
VisADException - On badness

initPlot

protected void initPlot(org.jfree.chart.plot.Plot plot)
init plot

Overrides:
initPlot in class ChartManager
Parameters:
plot - plot

setProbeSamplesInner

public void setProbeSamplesInner()
                          throws VisADException,
                                 RemoteException
Set samples

Throws:
RemoteException - On badness
VisADException - On badness

setPointObs

public void setPointObs(List<PointOb> obs,
                        List plotVars)
                 throws VisADException,
                        RemoteException
set chart from point data

Parameters:
obs - obs
plotVars - the vars to plot
Throws:
RemoteException - On badness
VisADException - On badness

setShowAnimationTime

public void setShowAnimationTime(boolean value)
Set the ShowAnimationTime property.

Parameters:
value - The new value for ShowAnimationTime

getShowAnimationTime

public boolean getShowAnimationTime()
Get the ShowAnimationTime property.

Returns:
The ShowAnimationTime

getDummyDataset

public org.jfree.data.xy.XYDataset getDummyDataset()
utility

Returns:
dummy

setLocation

public void setLocation(ucar.unidata.geoloc.LatLonPoint llp)