Package ucar.unidata.idv.control.chart
Class HistogramWrapper
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.idv.control.multi.DisplayComponent
ucar.unidata.idv.control.chart.ChartWrapper
ucar.unidata.idv.control.chart.PlotWrapper
ucar.unidata.idv.control.chart.HistogramWrapper
- All Implemented Interfaces:
KeyListener,PropertyChangeListener,EventListener,Sharable
- Direct Known Subclasses:
McVHistogramWrapper
Provides a time series chart
- Version:
- $Revision: 1.16 $
- Author:
- IDV Development Team
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.idv.control.chart.PlotWrapper
PlotWrapper.MyChartPanelNested classes/interfaces inherited from class ucar.unidata.idv.control.chart.ChartWrapper
ChartWrapper.FieldProperties -
Field Summary
Fields inherited from class ucar.unidata.idv.control.chart.PlotWrapper
chart, chartPanel, EVENT_DONTPASSON, EVENT_PASSONFields inherited from class ucar.unidata.idv.control.chart.ChartWrapper
animationWidget, dataChoiceWrappers, PROP_SELECTEDTIME, PROP_TIMERANGE, timeFilterSource, timeSelectSourceFields inherited from class ucar.unidata.idv.control.multi.DisplayComponent
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVEDFields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanApply propertiesprotected booleanCan we do chart colorsbooleanCan we have colors on the data chocie wrappers in the properties dialogprotected JComponentCreate the chart if neededintgetBins()Get the Bins property.protected voidgetPropertiesComponents(List comps, int tabIdx) Add components to properties dialogbooleanGet the Stacked property.Type namevoidloadData()Create the chartsvoidsetBins(int value) Set the Bins property.voidsetStacked(boolean value) Set the Stacked property.Methods inherited from class ucar.unidata.idv.control.chart.PlotWrapper
annotationChanged, chartPanelGetToolTipText, chartPanelMouseClicked, chartPanelMouseDragged, chartPanelMousePressed, chartPanelMouseReleased, doMakeChartPanel, getAutoRange, getBackgroundColor, getChartPanel, getDataAreaColor, getDomainLineState, getPopupMenuItems, getPreferredChartSize, getPropertyTabs, getRangeLineState, initXYPlot, keyPressed, keyReleased, keyTyped, okToDraw, panPlot, panPlot, setAutoRange, setBackgroundColor, setDataAreaColor, setDomainLineState, setName, setRangeLineState, signalChartChangedMethods inherited from class ucar.unidata.idv.control.chart.ChartWrapper
addDataChoice, addDataChoices, addField, animationTimeChanged, applyJython, applyJython, canBeASourceForTimeSelectionEvents, canDoDataChoiceList, canDoDriveTime, canDoJython, canDoMinMaxDate, canDoParameters, canDoRemoveParameters, canDoResolution, canDoTimeFilters, canDoTimeSelect, canDoWrapperSide, createDataChoiceWrapper, doApplyProperties, doMakeWrapperDisplayComponent, doMultipleAddFields, doRemove, filterData, formatValue, getAnimationShareGroup, getCategories, getDataChoices, getDataChoiceWrappers, getDriveTime, getFieldSelectionLabels, getFlatField, getInterpreter, getJython, getMaxDate, getMinDate, getResolution, getShowTime, getTimeFilterRanges, getTimeFilterSource, getTimeRanges, getTimeSelectSource, getTimeValues, init, initDone, initializeJython, propertyChange, removeTimeFilterSource, removeTimeSelectSource, setAnimationShareGroup, setDataChoiceWrappers, setDriveTime, setJython, setMaxDate, setMinDate, setResolution, setShowTime, setTimeFilterSource, setTimeFromAnimation, setTimeSelectSource, wrapDataChoicesMethods inherited from class ucar.unidata.idv.control.multi.DisplayComponent
addGroupMenuItems, doMakeDisplayLabel, doSaveImage, doSaveMovie, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, removeDisplayComponent, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, showPopup, showProperties, toStringMethods inherited from class ucar.unidata.collab.PropertiedThing
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, removePropertyChangeListener, showPropertiesMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
-
Constructor Details
-
HistogramWrapper
public HistogramWrapper()Default ctor -
HistogramWrapper
Ctor- Parameters:
name- The namedataChoices- List of data choices
-
-
Method Details
-
getTypeName
Type name- Specified by:
getTypeNamein classChartWrapper- Returns:
- Type name
-
doMakeContents
Create the chart if needed- Specified by:
doMakeContentsin classDisplayComponent- Returns:
- The gui contents
-
loadData
Create the charts- Overrides:
loadDatain classChartWrapper- Throws:
RemoteException- On badnessVisADException- On badness
-
getPropertiesComponents
Add components to properties dialog- Overrides:
getPropertiesComponentsin classPlotWrapper- Parameters:
comps- List of componentstabIdx- Which tab in properties dialog
-
applyProperties
protected boolean applyProperties()Apply properties- Overrides:
applyPropertiesin classPlotWrapper- Returns:
- Was successful
-
canDoColors
protected boolean canDoColors()Can we do chart colors- Overrides:
canDoColorsin classPlotWrapper- Returns:
- can do colors
-
canDoWrapperColor
public boolean canDoWrapperColor()Can we have colors on the data chocie wrappers in the properties dialog- Overrides:
canDoWrapperColorin classChartWrapper- Returns:
- can do wrapper color
-
setBins
public void setBins(int value) Set the Bins property.- Parameters:
value- The new value for Bins
-
getBins
public int getBins()Get the Bins property.- Returns:
- The Bins
-
setStacked
public void setStacked(boolean value) Set the Stacked property.- Parameters:
value- The new value for Stacked
-
getStacked
public boolean getStacked()Get the Stacked property.- Returns:
- The Stacked
-