public class StormTrackChart extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
StormTrackChart()
_more_
|
StormTrackChart(StormDisplayState stormDisplayState,
String name)
_more_
|
StormTrackChart(StormDisplayState stormDisplayState,
String name,
int mode)
_more_
|
Modifier and Type | Method and Description |
---|---|
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_
|
public static final int MODE_FORECASTTIME
public static final int MODE_FORECASTHOUR
private StormDisplayState stormDisplayState
private int mode
private TimeSeriesChart timeSeries
private boolean madeChart
private List<DateTime> forecastTimes
private List<Integer> forecastHours
private List<ucar.unidata.data.storm.StormParam> chartParams
private List<ucar.unidata.data.storm.Way> chartWays
private boolean chartDifference
private JList chartTimeBox
private boolean ignoreChartTimeChanges
private JComponent contents
public StormTrackChart()
public StormTrackChart(StormDisplayState stormDisplayState, String name)
stormDisplayState
- _more_name
- _more_public StormTrackChart(StormDisplayState stormDisplayState, String name, int mode)
stormDisplayState
- _more_name
- _more_mode
- _more_protected boolean isHourly()
public void deactivate()
protected JComponent getContents()
private JComponent doMakeContents()
public TimeSeriesChart getChart()
protected void timeChanged(Real time)
time
- _more_private List<DateTime> findForecastTimes()
private List<Integer> findForecastHours()
protected void createChart()
protected List getStormTrackParams()
public void removeChart()
JScrollPane makeScroller(JComponent comp, int width, int height)
comp
- _more_width
- _more_height
- _more_protected LineState makeLine(ucar.unidata.data.storm.StormTrack stormTrack, ucar.unidata.data.storm.StormParam param)
stormTrack
- _more_param
- _more_private void removeChartParam(ucar.unidata.data.storm.StormParam param)
param
- _more_private void addChartParam(ucar.unidata.data.storm.StormParam param)
param
- _more_private void removeChartWay(ucar.unidata.data.storm.Way way)
way
- _more_private void addChartWay(ucar.unidata.data.storm.Way way)
way
- _more_private void getSelectedTimes()
protected void updateChart()
public void setChartParams(List<ucar.unidata.data.storm.StormParam> value)
value
- The new value for ChartParamspublic List<ucar.unidata.data.storm.StormParam> getChartParams()
public void setChartWays(List<ucar.unidata.data.storm.Way> value)
value
- The new value for ChartWayspublic List<ucar.unidata.data.storm.Way> getChartWays()
public void setForecastTime(DateTime value)
value
- The new value for ChartForecastTimepublic void setForecastTimes(List<DateTime> value)
value
- _more_public List<DateTime> getForecastTimes()
public void setChartDifference(boolean value)
value
- The new value for ChartDifferencepublic boolean getChartDifference()
public void setName(String value)
value
- The new value for Namepublic void setStormDisplayState(StormDisplayState value)
value
- The new value for StormDisplayStatepublic StormDisplayState getStormDisplayState()
public void setMode(int value)
value
- The new value for Modepublic int getMode()
public void setForecastHour(int value)
value
- The new value for ForecastHourpublic void setForecastHours(List<Integer> value)
value
- _more_public List<Integer> getForecastHours()