ucar.unidata.idv.control.chart
Class ScatterPlotChartWrapper

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.collab.PropertiedThing
          extended by ucar.unidata.idv.control.multi.DisplayComponent
              extended by ucar.unidata.idv.control.chart.ChartWrapper
                  extended by ucar.unidata.idv.control.chart.PlotWrapper
                      extended by ucar.unidata.idv.control.chart.ScatterPlotChartWrapper
All Implemented Interfaces:
KeyListener, PropertyChangeListener, EventListener, Sharable

public class ScatterPlotChartWrapper
extends PlotWrapper

Provides a scatter plot

Version:
$Revision: 1.41 $
Author:
IDV Development Team

Nested Class Summary
static class ScatterPlotChartWrapper.MyRenderer
          Just 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.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
ScatterPlotChartWrapper()
          Default ctor
ScatterPlotChartWrapper(String name, List dataChoices)
          Ctor
 
Method Summary
protected  boolean applyProperties()
          Apply properties
protected  boolean canBeASourceForTimeSelectionEvents()
          canBeASourceForTimeSelectionEvents
protected  boolean canDoColors()
          Can we do chart colors
 boolean canDoParameters()
          Don't add parameters
 boolean canDoWrapperColor()
          Can we have colors on the data chocie wrappers in the properties dialog
 String chartPanelGetToolTipText(MouseEvent event)
          Hook to intercept these calls on the chart
 boolean chartPanelMouseClicked(MouseEvent event)
          Handle the event
protected  JComponent doMakeContents()
          Create the gui
protected  JComponent doMakeWrapperDisplayComponent(int idx, ChartWrapper.FieldProperties fieldProperty)
          Utility to make the gui widget for the wrapper in the properties list
 boolean doMultipleAddFields()
          When selecting data does the data tree support multiple selections
 List getCategories()
          Get the data categories for choosing new data
 List getFieldSelectionLabels()
          Returns the list of labels used for selecting data choices.
 String getTypeName()
          Return the human readable name of this chart
 void loadData()
          Create the charts
 String toString()
          to string
 
Methods 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, signalChartChanged
 
Methods 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, 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
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScatterPlotChartWrapper

public ScatterPlotChartWrapper()
Default ctor


ScatterPlotChartWrapper

public ScatterPlotChartWrapper(String name,
                               List dataChoices)
Ctor

Parameters:
name - The name
dataChoices - List of data choices
Method Detail

getTypeName

public String getTypeName()
Return the human readable name of this chart

Specified by:
getTypeName in class ChartWrapper
Returns:
Chart type name

chartPanelMouseClicked

public boolean chartPanelMouseClicked(MouseEvent event)
Handle the event

Overrides:
chartPanelMouseClicked in class PlotWrapper
Parameters:
event - the event
Returns:
Should we pass on this event

getCategories

public List getCategories()
Get the data categories for choosing new data

Overrides:
getCategories in class ChartWrapper
Returns:
data categories

doMakeContents

protected JComponent doMakeContents()
Create the gui

Specified by:
doMakeContents in class DisplayComponent
Returns:
The gui

chartPanelGetToolTipText

public String chartPanelGetToolTipText(MouseEvent event)
Hook to intercept these calls on the chart

Overrides:
chartPanelGetToolTipText in class PlotWrapper
Parameters:
event - The event
Returns:
Was this event handled by the ChartWrapper

applyProperties

protected boolean applyProperties()
Apply properties

Overrides:
applyProperties in class PlotWrapper
Returns:
Successful

loadData

public void loadData()
              throws VisADException,
                     RemoteException
Create the charts

Overrides:
loadData in class ChartWrapper
Throws:
RemoteException - On badness
VisADException - 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:
doMakeWrapperDisplayComponent in class ChartWrapper
Parameters:
idx - Which one
fieldProperty - Holder of stuff
Returns:
The gui

getFieldSelectionLabels

public List getFieldSelectionLabels()
Returns the list of labels used for selecting data choices.

Overrides:
getFieldSelectionLabels in class ChartWrapper
Returns:
List of field labels

doMultipleAddFields

public boolean doMultipleAddFields()
When selecting data does the data tree support multiple selections

Overrides:
doMultipleAddFields in class ChartWrapper
Returns:
Do multiples

canDoParameters

public boolean canDoParameters()
Don't add parameters

Overrides:
canDoParameters in class ChartWrapper
Returns:
Don't add parameters

canBeASourceForTimeSelectionEvents

protected boolean canBeASourceForTimeSelectionEvents()
canBeASourceForTimeSelectionEvents

Overrides:
canBeASourceForTimeSelectionEvents in class ChartWrapper
Returns:
true

canDoColors

protected boolean canDoColors()
Can we do chart colors

Overrides:
canDoColors in class PlotWrapper
Returns:
can do colors

canDoWrapperColor

public boolean canDoWrapperColor()
Can we have colors on the data chocie wrappers in the properties dialog

Overrides:
canDoWrapperColor in class ChartWrapper
Returns:
can do wrapper color

toString

public String toString()
to string

Overrides:
toString in class DisplayComponent
Returns:
string