edu.wisc.ssec.mcidasv.control.cyclone
Class StormTrackChart

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.control.cyclone.StormTrackChart

public class StormTrackChart
extends Object

Version:
$Revision$
Author:
Unidata Development Team

Field Summary
private  boolean chartDifference
          _more_
private  JPanel chartLeft
          _more_
private  List<ucar.unidata.data.storm.StormParam> chartParams
          _more_
private  JList chartTimeBox
          _more_
private  JPanel chartTop
          _more_
private  List<ucar.unidata.data.storm.Way> chartWays
          _more_
private  JComponent contents
          _more_
private  List<Integer> forecastHours
          _more_
private  List<DateTime> forecastTimes
          _more_
private  boolean ignoreChartTimeChanges
          _more_
private  boolean madeChart
          _more_
private  int mode
          _more_
static int MODE_FORECASTHOUR
          _more_
static int MODE_FORECASTTIME
          _more_
private  String name
          _more_
private  StormDisplayState stormDisplayState
          _more_
private  TimeSeriesChart timeSeries
          _more_
 
Constructor Summary
StormTrackChart()
          _more_
StormTrackChart(StormDisplayState stormDisplayState, String name)
          _more_
StormTrackChart(StormDisplayState stormDisplayState, String name, int mode)
          _more_
 
Method Summary
private  void addChartParam(ucar.unidata.data.storm.StormParam param)
          _more_
private  void addChartWay(ucar.unidata.data.storm.Way way)
          _more_
protected  void createChart()
          _more_
 void deactivate()
          _more_
private  JComponent doMakeContents()
          _more_
private  List<Integer> findForecastHours()
          _more_
private  List<DateTime> findForecastTimes()
          _more_
 TimeSeriesChart getChart()
          Get the chart
 boolean getChartDifference()
          Get the ChartDifference property.
 List<ucar.unidata.data.storm.StormParam> getChartParams()
          Get the ChartParams property.
 List<ucar.unidata.data.storm.Way> getChartWays()
          Get the ChartWays property.
protected  JComponent getContents()
          _more_
 List<Integer> getForecastHours()
          _more_
 List<DateTime> getForecastTimes()
          _more_
 int getMode()
          Get the Mode property.
 String getName()
          Get the Name property.
private  void getSelectedTimes()
          _more_
 StormDisplayState getStormDisplayState()
          Get the StormDisplayState property.
protected  List getStormTrackParams()
          _more_
protected  boolean isHourly()
          _more_
protected  LineState makeLine(ucar.unidata.data.storm.StormTrack stormTrack, ucar.unidata.data.storm.StormParam param)
          _more_
(package private)  JScrollPane makeScroller(JComponent comp, int width, int height)
          _more_
 void removeChart()
          _more_
private  void removeChartParam(ucar.unidata.data.storm.StormParam param)
          _more_
private  void removeChartWay(ucar.unidata.data.storm.Way way)
          _more_
 void setChartDifference(boolean value)
          Set the ChartDifference property.
 void setChartParams(List<ucar.unidata.data.storm.StormParam> value)
          Set the ChartParams property.
 void setChartWays(List<ucar.unidata.data.storm.Way> value)
          Set the ChartWays property.
 void setForecastHour(int value)
          Set the ForecastHour property.
 void setForecastHours(List<Integer> value)
          _more_
 void setForecastTime(DateTime value)
          Set the ChartForecastTime property.
 void setForecastTimes(List<DateTime> value)
          _more_
 void setMode(int value)
          Set the Mode property.
 void setName(String value)
          Set the Name property.
 void setStormDisplayState(StormDisplayState value)
          Set the StormDisplayState property.
protected  void timeChanged(Real time)
          _more_
protected  void updateChart()
          _more_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_FORECASTTIME

public static final int MODE_FORECASTTIME
_more_

See Also:
Constant Field Values

MODE_FORECASTHOUR

public static final int MODE_FORECASTHOUR
_more_

See Also:
Constant Field Values

stormDisplayState

private StormDisplayState stormDisplayState
_more_


mode

private int mode
_more_


timeSeries

private TimeSeriesChart timeSeries
_more_


chartLeft

private JPanel chartLeft
_more_


chartTop

private JPanel chartTop
_more_


madeChart

private boolean madeChart
_more_


forecastTimes

private List<DateTime> forecastTimes
_more_


forecastHours

private List<Integer> forecastHours
_more_


chartParams

private List<ucar.unidata.data.storm.StormParam> chartParams
_more_


chartWays

private List<ucar.unidata.data.storm.Way> chartWays
_more_


chartDifference

private boolean chartDifference
_more_


chartTimeBox

private JList chartTimeBox
_more_


ignoreChartTimeChanges

private boolean ignoreChartTimeChanges
_more_


contents

private JComponent contents
_more_


name

private String name
_more_

Constructor Detail

StormTrackChart

public StormTrackChart()
_more_


StormTrackChart

public StormTrackChart(StormDisplayState stormDisplayState,
                       String name)
_more_

Parameters:
stormDisplayState - _more_
name - _more_

StormTrackChart

public StormTrackChart(StormDisplayState stormDisplayState,
                       String name,
                       int mode)
_more_

Parameters:
stormDisplayState - _more_
name - _more_
mode - _more_
Method Detail

isHourly

protected boolean isHourly()
_more_

Returns:
_more_

deactivate

public void deactivate()
_more_


getContents

protected JComponent getContents()
_more_

Returns:
_more_

doMakeContents

private JComponent doMakeContents()
_more_

Returns:
_more_

getChart

public TimeSeriesChart getChart()
Get the chart

Returns:
The chart_

timeChanged

protected void timeChanged(Real time)
_more_

Parameters:
time - _more_

findForecastTimes

private List<DateTime> findForecastTimes()
_more_

Returns:
_more_

findForecastHours

private List<Integer> findForecastHours()
_more_

Returns:
_more_

createChart

protected void createChart()
_more_


getStormTrackParams

protected List getStormTrackParams()
_more_

Returns:
_more_

removeChart

public void removeChart()
_more_


makeScroller

JScrollPane makeScroller(JComponent comp,
                         int width,
                         int height)
_more_

Parameters:
comp - _more_
width - _more_
height - _more_
Returns:
_more_

makeLine

protected LineState makeLine(ucar.unidata.data.storm.StormTrack stormTrack,
                             ucar.unidata.data.storm.StormParam param)
_more_

Parameters:
stormTrack - _more_
param - _more_
Returns:
_more_

removeChartParam

private void removeChartParam(ucar.unidata.data.storm.StormParam param)
_more_

Parameters:
param - _more_

addChartParam

private void addChartParam(ucar.unidata.data.storm.StormParam param)
_more_

Parameters:
param - _more_

removeChartWay

private void removeChartWay(ucar.unidata.data.storm.Way way)
_more_

Parameters:
way - _more_

addChartWay

private void addChartWay(ucar.unidata.data.storm.Way way)
_more_

Parameters:
way - _more_

getSelectedTimes

private void getSelectedTimes()
_more_


updateChart

protected void updateChart()
_more_


setChartParams

public void setChartParams(List<ucar.unidata.data.storm.StormParam> value)
Set the ChartParams property.

Parameters:
value - The new value for ChartParams

getChartParams

public List<ucar.unidata.data.storm.StormParam> getChartParams()
Get the ChartParams property.

Returns:
The ChartParams

setChartWays

public void setChartWays(List<ucar.unidata.data.storm.Way> value)
Set the ChartWays property.

Parameters:
value - The new value for ChartWays

getChartWays

public List<ucar.unidata.data.storm.Way> getChartWays()
Get the ChartWays property.

Returns:
The ChartWays

setForecastTime

public void setForecastTime(DateTime value)
Set the ChartForecastTime property.

Parameters:
value - The new value for ChartForecastTime

setForecastTimes

public void setForecastTimes(List<DateTime> value)
_more_

Parameters:
value - _more_

getForecastTimes

public List<DateTime> getForecastTimes()
_more_

Returns:
_more_

setChartDifference

public void setChartDifference(boolean value)
Set the ChartDifference property.

Parameters:
value - The new value for ChartDifference

getChartDifference

public boolean getChartDifference()
Get the ChartDifference property.

Returns:
The ChartDifference

setName

public void setName(String value)
Set the Name property.

Parameters:
value - The new value for Name

getName

public String getName()
Get the Name property.

Returns:
The Name

setStormDisplayState

public void setStormDisplayState(StormDisplayState value)
Set the StormDisplayState property.

Parameters:
value - The new value for StormDisplayState

getStormDisplayState

public StormDisplayState getStormDisplayState()
Get the StormDisplayState property.

Returns:
The StormDisplayState

setMode

public void setMode(int value)
Set the Mode property.

Parameters:
value - The new value for Mode

getMode

public int getMode()
Get the Mode property.

Returns:
The Mode

setForecastHour

public void setForecastHour(int value)
Set the ForecastHour property.

Parameters:
value - The new value for ForecastHour

setForecastHours

public void setForecastHours(List<Integer> value)
_more_

Parameters:
value - _more_

getForecastHours

public List<Integer> getForecastHours()
_more_

Returns:
_more_