ucar.unidata.idv.control.chart
Class XYChartManager

java.lang.Object
  extended by ucar.unidata.idv.control.chart.ChartManager
      extended by ucar.unidata.idv.control.chart.XYChartManager
All Implemented Interfaces:
ImageObserver
Direct Known Subclasses:
TimeSeriesChart, VerticalProfileChart

public abstract class XYChartManager
extends ChartManager

A time series chart

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

Nested Class Summary
protected static class XYChartManager.CloudCoverageRenderer
          a cut and paste so we can draw bars with a fixed width
protected  class XYChartManager.MyXYAreaRenderer
          Class MyXYAreaRenderer for rendering areas
protected static class XYChartManager.MyXYBarRenderer
          a cut and paste so we can draw bars with a fixed width
 class XYChartManager.MyXYPlot
          Class MyXYPlot is an xyplot with some special sauce to synchronize drawing
protected static class XYChartManager.TextRenderer
          a cut and paste so we can draw bars with a fixed width
protected static class XYChartManager.WindbarbRenderer
          displays windw barbs
 
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
XYChartManager()
          ctor
XYChartManager(DisplayControlImpl control)
          Default constructor.
XYChartManager(DisplayControlImpl control, String chartName)
          Default constructor.
 
Method Summary
protected  void addChart(ChartHolder chartHolder)
          Add chart
protected  org.jfree.chart.renderer.xy.XYItemRenderer getRenderer(LineState lineState)
          Get the renderer for the given line
protected  org.jfree.chart.renderer.xy.XYItemRenderer getRenderer(LineState lineState, boolean showLegend)
          Get the renderer for the given line
 void setEmptyChartLabel(String label)
          Set the label to use when we have an empty chart
 
Methods inherited from class ucar.unidata.idv.control.chart.ChartManager
addLineState, addRange, addViewMenuItems, applyProperties, chartNameChanged, clearLineStates, doMakeContents, doMakePlot, 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, initPlot, makeInitialChart, saveImage, setChartHolders, setControl, setGridLayoutDimension, setLayout, setLayoutType, setShowThumb, showPropertiesDialog, signalChartChanged, startLoadingData, timeChanged, timeChanged, updateContents, updateContents, updateThumb, updateThumbInner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYChartManager

public XYChartManager()
ctor


XYChartManager

public XYChartManager(DisplayControlImpl control)
Default constructor.

Parameters:
control - my control

XYChartManager

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

Parameters:
control - my control
chartName - my name
Method Detail

getRenderer

protected org.jfree.chart.renderer.xy.XYItemRenderer getRenderer(LineState lineState)
Get the renderer for the given line

Parameters:
lineState - The line
Returns:
renderer

getRenderer

protected org.jfree.chart.renderer.xy.XYItemRenderer getRenderer(LineState lineState,
                                                                 boolean showLegend)
Get the renderer for the given line

Parameters:
lineState - The line
showLegend - And show the legend
Returns:
renderer

setEmptyChartLabel

public void setEmptyChartLabel(String label)
Set the label to use when we have an empty chart

Parameters:
label - empty chart label

addChart

protected void addChart(ChartHolder chartHolder)
Add chart

Overrides:
addChart in class ChartManager
Parameters:
chartHolder - new chart