Package ucar.unidata.idv.control.chart
Class XYChartManager
java.lang.Object
ucar.unidata.idv.control.chart.ChartManager
ucar.unidata.idv.control.chart.XYChartManager
- All Implemented Interfaces:
ImageObserver
- Direct Known Subclasses:
TimeSeriesChart,VerticalProfileChart
A time series chart
- Version:
- $Revision: 1.4 $
- Author:
- MetApps Development Team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classa cut and paste so we can draw bars with a fixed widthprotected classClass MyXYAreaRenderer for rendering areasprotected static classa cut and paste so we can draw bars with a fixed widthclassClass MyXYPlot is an xyplot with some special sauce to synchronize drawingprotected static classa cut and paste so we can draw bars with a fixed widthprotected static classdisplays windw barbsNested 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, settingDataFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionctorXYChartManager(DisplayControlImpl control) Default constructor.XYChartManager(DisplayControlImpl control, String chartName) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChart(ChartHolder chartHolder) Add chartprotected org.jfree.chart.renderer.xy.XYItemRenderergetRenderer(LineState lineState) Get the renderer for the given lineprotected org.jfree.chart.renderer.xy.XYItemRenderergetRenderer(LineState lineState, boolean showLegend) Get the renderer for the given linevoidsetEmptyChartLabel(String label) Set the label to use when we have an empty chartMethods 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, setChartName, setControl, setGridLayoutDimension, setLayout, setLayoutType, setShowThumb, showPropertiesDialog, signalChartChanged, startLoadingData, timeChanged, timeChanged, updateContents, updateContents, updateThumb, updateThumbInner
-
Constructor Details
-
XYChartManager
public XYChartManager()ctor -
XYChartManager
Default constructor.- Parameters:
control- my control
-
XYChartManager
Default constructor.- Parameters:
control- my controlchartName- my name
-
-
Method Details
-
getRenderer
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 lineshowLegend- And show the legend- Returns:
- renderer
-
setEmptyChartLabel
Set the label to use when we have an empty chart- Parameters:
label- empty chart label
-
addChart
Add chart- Overrides:
addChartin classChartManager- Parameters:
chartHolder- new chart
-