Package ucar.unidata.idv.control.chart
Class ScatterPlotChartWrapper
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.ScatterPlotChartWrapper
- All Implemented Interfaces:
KeyListener,PropertyChangeListener,EventListener,Sharable
Provides a scatter plot
- Version:
- $Revision: 1.41 $
- Author:
- IDV Development Team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJust a hook to turn off the series display in the legend and to hold the shape to draw.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 booleancanBeASourceForTimeSelectionEventsprotected booleanCan we do chart colorsbooleanDon't add parametersbooleanCan we have colors on the data chocie wrappers in the properties dialogHook to intercept these calls on the chartbooleanchartPanelMouseClicked(MouseEvent event) Handle the eventprotected JComponentCreate the guiprotected JComponentdoMakeWrapperDisplayComponent(int idx, ChartWrapper.FieldProperties fieldProperty) Utility to make the gui widget for the wrapper in the properties listbooleanWhen selecting data does the data tree support multiple selectionsGet the data categories for choosing new dataReturns the list of labels used for selecting data choices.Return the human readable name of this chartvoidloadData()Create the chartstoString()to stringMethods inherited from class ucar.unidata.idv.control.chart.PlotWrapper
annotationChanged, chartPanelMouseDragged, chartPanelMousePressed, chartPanelMouseReleased, doMakeChartPanel, getAutoRange, getBackgroundColor, getChartPanel, getDataAreaColor, getDomainLineState, getPopupMenuItems, getPreferredChartSize, getPropertiesComponents, 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, canDoDataChoiceList, canDoDriveTime, canDoJython, canDoMinMaxDate, canDoRemoveParameters, canDoResolution, canDoTimeFilters, canDoTimeSelect, canDoWrapperSide, createDataChoiceWrapper, doApplyProperties, doRemove, filterData, formatValue, getAnimationShareGroup, getDataChoices, getDataChoiceWrappers, getDriveTime, 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, showPropertiesMethods 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
-
ScatterPlotChartWrapper
public ScatterPlotChartWrapper()Default ctor -
ScatterPlotChartWrapper
Ctor- Parameters:
name- The namedataChoices- List of data choices
-
-
Method Details
-
getTypeName
Return the human readable name of this chart- Specified by:
getTypeNamein classChartWrapper- Returns:
- Chart type name
-
chartPanelMouseClicked
Handle the event- Overrides:
chartPanelMouseClickedin classPlotWrapper- Parameters:
event- the event- Returns:
- Should we pass on this event
-
getCategories
Get the data categories for choosing new data- Overrides:
getCategoriesin classChartWrapper- Returns:
- data categories
-
doMakeContents
Create the gui- Specified by:
doMakeContentsin classDisplayComponent- Returns:
- The gui
-
chartPanelGetToolTipText
Hook to intercept these calls on the chart- Overrides:
chartPanelGetToolTipTextin classPlotWrapper- Parameters:
event- The event- Returns:
- Was this event handled by the ChartWrapper
-
applyProperties
protected boolean applyProperties()Apply properties- Overrides:
applyPropertiesin classPlotWrapper- Returns:
- Successful
-
loadData
Create the charts- Overrides:
loadDatain classChartWrapper- Throws:
RemoteException- On badnessVisADException- On badness
-
doMakeWrapperDisplayComponent
protected JComponent doMakeWrapperDisplayComponent(int idx, ChartWrapper.FieldProperties fieldProperty) Utility to make the gui widget for the wrapper in the properties list- Overrides:
doMakeWrapperDisplayComponentin classChartWrapper- Parameters:
idx- Which onefieldProperty- Holder of stuff- Returns:
- The gui
-
getFieldSelectionLabels
Returns the list of labels used for selecting data choices.- Overrides:
getFieldSelectionLabelsin classChartWrapper- Returns:
- List of field labels
-
doMultipleAddFields
public boolean doMultipleAddFields()When selecting data does the data tree support multiple selections- Overrides:
doMultipleAddFieldsin classChartWrapper- Returns:
- Do multiples
-
canDoParameters
public boolean canDoParameters()Don't add parameters- Overrides:
canDoParametersin classChartWrapper- Returns:
- Don't add parameters
-
canBeASourceForTimeSelectionEvents
protected boolean canBeASourceForTimeSelectionEvents()canBeASourceForTimeSelectionEvents- Overrides:
canBeASourceForTimeSelectionEventsin classChartWrapper- Returns:
- true
-
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
-
toString
to string- Overrides:
toStringin classDisplayComponent- Returns:
- string
-