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.MyChartPanel
Nested 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_PASSON
Fields inherited from class ucar.unidata.idv.control.chart.ChartWrapper
animationWidget, dataChoiceWrappers, PROP_SELECTEDTIME, PROP_TIMERANGE, timeFilterSource, timeSelectSource
Fields inherited from class ucar.unidata.idv.control.multi.DisplayComponent
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVED
Fields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Apply propertiesprotected boolean
Can we do chart colorsboolean
Can we have colors on the data chocie wrappers in the properties dialogprotected JComponent
Create the chart if neededint
getBins()
Get the Bins property.protected void
getPropertiesComponents
(List comps, int tabIdx) Add components to properties dialogboolean
Get the Stacked property.Type namevoid
loadData()
Create the chartsvoid
setBins
(int value) Set the Bins property.void
setStacked
(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, signalChartChanged
Methods 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, wrapDataChoices
Methods 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, toString
Methods inherited from class ucar.unidata.collab.PropertiedThing
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, removePropertyChangeListener, showProperties
Methods 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:
getTypeName
in classChartWrapper
- Returns:
- Type name
-
doMakeContents
Create the chart if needed- Specified by:
doMakeContents
in classDisplayComponent
- Returns:
- The gui contents
-
loadData
Create the charts- Overrides:
loadData
in classChartWrapper
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
getPropertiesComponents
Add components to properties dialog- Overrides:
getPropertiesComponents
in classPlotWrapper
- Parameters:
comps
- List of componentstabIdx
- Which tab in properties dialog
-
applyProperties
protected boolean applyProperties()Apply properties- Overrides:
applyProperties
in classPlotWrapper
- Returns:
- Was successful
-
canDoColors
protected boolean canDoColors()Can we do chart colors- Overrides:
canDoColors
in classPlotWrapper
- Returns:
- can do colors
-
canDoWrapperColor
public boolean canDoWrapperColor()Can we have colors on the data chocie wrappers in the properties dialog- Overrides:
canDoWrapperColor
in 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
-