Package ucar.unidata.idv.control.chart
Class TimeSeriesChart
java.lang.Object
ucar.unidata.idv.control.chart.ChartManager
ucar.unidata.idv.control.chart.XYChartManager
ucar.unidata.idv.control.chart.TimeSeriesChart
- All Implemented Interfaces:
ImageObserver
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.WindbarbRendererNested classes/interfaces inherited from class ucar.unidata.idv.control.chart.ChartManager
ChartManager.FixedWidthLogarithmicAxis, ChartManager.FixedWidthNumberAxis -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringmacro for substituting the param name into the chart line nameFields 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, settingDataFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionctorTimeSeriesChart(DisplayControlImpl control) Default constructor.TimeSeriesChart(DisplayControlImpl control, String chartName) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jfree.chart.axis.AxisaddSeries(org.jfree.data.time.TimeSeries series, LineState lineState, int paramIdx, org.jfree.chart.renderer.xy.XYItemRenderer renderer, boolean rangeVisible) Add the seriesprotected org.jfree.chart.axis.AxisaddSeries(org.jfree.data.time.TimeSeries series, LineState lineState, int paramIdx, org.jfree.chart.renderer.xy.XYItemRenderer renderer, boolean rangeVisible, boolean addAxis) Add the seriesorg.jfree.chart.plot.PlotMake the plotGet the date formatorg.jfree.data.xy.XYDatasetutilitybooleanGet the ShowAnimationTime property.protected voidinitPlot(org.jfree.chart.plot.Plot plot) init plotvoidsetDateFormat(String format) Set the date formatvoidsetLocation(ucar.unidata.geoloc.LatLonPoint llp) Set the location for this chartvoidsetPointObs(List<PointOb> obs, List plotVars) set chart from point datavoidsetProbeSamples(List<ProbeRowInfo> rowInfos) Set the samples from the probevoidSet samplesvoidsetShowAnimationTime(boolean value) Set the ShowAnimationTime property.voidset chart from track datavoidshowAnimationTime(boolean value) Show timeMethods inherited from class ucar.unidata.idv.control.chart.XYChartManager
addChart, getRenderer, getRenderer, setEmptyChartLabelMethods 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, makeInitialChart, saveImage, setChartHolders, setChartName, setControl, setGridLayoutDimension, setLayout, setLayoutType, setShowThumb, showPropertiesDialog, signalChartChanged, startLoadingData, timeChanged, timeChanged, updateContents, updateContents, updateThumb, updateThumbInner
-
Field Details
-
MACRO_PARAMETER
macro for substituting the param name into the chart line name- See Also:
-
-
Constructor Details
-
TimeSeriesChart
public TimeSeriesChart()ctor -
TimeSeriesChart
Default constructor.- Parameters:
control- control that this is associated with
-
TimeSeriesChart
Default constructor.- Parameters:
control- control that this is associated withchartName- name for the chart
-
-
Method Details
-
doMakePlot
public org.jfree.chart.plot.Plot doMakePlot()Make the plot- Specified by:
doMakePlotin classChartManager- 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 datalineState- describes how to draw the lineparamIdx- which parameterrenderer- rendererrangeVisible- do we show range axis- Returns:
- the newly created range axis
-
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, boolean addAxis) Add the series- Parameters:
series- The datalineState- describes how to draw the lineparamIdx- which parameterrenderer- rendererrangeVisible- do we show range axisaddAxis- include the axis- Returns:
- the newly created range axis
-
setProbeSamples
Set the samples from the probe- Parameters:
rowInfos- the data- Throws:
RemoteException- On badnessVisADException- On badness
-
initPlot
protected void initPlot(org.jfree.chart.plot.Plot plot) init plot- Overrides:
initPlotin classChartManager- Parameters:
plot- plot
-
setProbeSamplesInner
Set samples- Throws:
RemoteException- On badnessVisADException- On badness
-
setPointObs
set chart from point data- Parameters:
obs- obsplotVars- the vars to plot- Throws:
RemoteException- On badnessVisADException- On badness
-
setTracks
set chart from track data- Parameters:
lines- LineStates- Throws:
RemoteException- On badnessVisADException- 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) Set the location for this chart- Parameters:
llp- the location
-
setDateFormat
Set the date format- Parameters:
format- the date format
-
getDateFormat
Get the date format- Returns:
- the date format
-