ucar.unidata.idv.control.chart
Class VerticalProfileChart

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.VerticalProfileChart
All Implemented Interfaces:
ImageObserver

public class VerticalProfileChart
extends XYChartManager

A time series chart

Version:
$Revision: 1.13 $
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
VerticalProfileChart()
          Default ctor
VerticalProfileChart(DisplayControlImpl control)
          Default constructor.
VerticalProfileChart(DisplayControlImpl control, String chartName)
          Default constructor.
 
Method Summary
protected  org.jfree.chart.axis.Axis addSeries(org.jfree.data.xy.XYSeries series, LineState lineState, int paramIdx, org.jfree.chart.renderer.xy.XYItemRenderer renderer, boolean rangeVisible)
          Add a series to the charts
 org.jfree.chart.plot.Plot doMakePlot()
          Make the plot
 org.jfree.data.xy.XYDataset getDummyDataset()
          Get a dummy dataset for the plot
protected  Dimension getPreferredChartSize()
          Get the preferred chart size
protected  void initPlot(org.jfree.chart.plot.Plot plot)
          Initialize the plot
 void setProfiles(List vpInfos)
          Set the profiles for this chart
 void timeChanged(Real time)
          A time changed method that passes in the 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, getPropertiesComponents, getSettingData, getShowThumb, getThumb, hasStuff, imageUpdate, initChart, initCharts, saveImage, setChartHolders, setControl, setGridLayoutDimension, setLayout, setLayoutType, setShowThumb, showPropertiesDialog, signalChartChanged, startLoadingData, timeChanged, updateContents, updateContents, updateThumb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticalProfileChart

public VerticalProfileChart()
Default ctor


VerticalProfileChart

public VerticalProfileChart(DisplayControlImpl control)
Default constructor.

Parameters:
control - the control to associate with

VerticalProfileChart

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

Parameters:
control - the control to associate with
chartName - the name for the chart
Method Detail

addSeries

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

Parameters:
series - series
lineState - line state
paramIdx - param index
renderer - renderer
rangeVisible - range visible
Returns:
the Axis

timeChanged

public void timeChanged(Real time)
A time changed method that passes in the time

Overrides:
timeChanged in class ChartManager
Parameters:
time - the time

setProfiles

public void setProfiles(List vpInfos)
                 throws VisADException,
                        RemoteException
Set the profiles for this chart

Parameters:
vpInfos - the list of VerticalProfileInfos
Throws:
RemoteException - Java RMI Exception
VisADException - VisAD problem

initPlot

protected void initPlot(org.jfree.chart.plot.Plot plot)
Initialize the plot

Overrides:
initPlot in class ChartManager
Parameters:
plot - the plot to initialize

getPreferredChartSize

protected Dimension getPreferredChartSize()
Get the preferred chart size

Overrides:
getPreferredChartSize in class ChartManager
Returns:
the preferred size

doMakePlot

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

Specified by:
doMakePlot in class ChartManager
Returns:
the plot

getDummyDataset

public org.jfree.data.xy.XYDataset getDummyDataset()
Get a dummy dataset for the plot

Returns:
a dummy dataset