ucar.unidata.idv.control
Class TrackControl

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.idv.control.DisplayControlBase
          extended by ucar.unidata.idv.control.DisplayControlImpl
              extended by ucar.unidata.idv.control.GridDisplayControl
                  extended by ucar.unidata.idv.control.TrackControl
All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, DisplayControl, Prototypable, ControlListener, DisplayListener
Direct Known Subclasses:
GridTrajectoryControl.MyTrackControl

public class TrackControl
extends GridDisplayControl

A MetApps Display Control with Displayable and controls for displaying a track (balloon sounding or aircraft track)

Version:
$Revision: 1.69 $
Author:
Unidata Development Team

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl
DisplayControlImpl.SideLegendLabel
 
Field Summary
protected  StationModelDisplayable indicator
          selector point
protected  LayoutModelWidget layoutModelWidget
          the widget for the layout model
protected static String[] TIMES_TO_USE
          Time strings
protected  DisplayableData timesHolder
          the displayable that holdss the times
 
Fields inherited from class ucar.unidata.idv.control.GridDisplayControl
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel
 
Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE
 
Fields inherited from class ucar.unidata.idv.control.DisplayControlBase
CMD_BARBSIZE, CMD_COLORS, CMD_COLORTABLE, CMD_INTERVAL, CMD_LEVEL, CMD_LINEWIDTH, CMD_POPUP, CMD_REMOVE, DEFAULT_POINT_SIZE, DEFAULT_SAMPLING_MODE, FIND_ALL, FIND_CATEGORY, FIND_CLASS, FIND_SPECIAL, FIND_THIS, FIND_WITHDATA, FIND_WITHTHISDATA, FIND_WITHTHISFIELD, FIND_WITHTHISVIEW, FLAG_COLOR, FLAG_COLORTABLE, FLAG_COLORUNIT, FLAG_CONTOUR, FLAG_DATACONTROL, FLAG_DISPLAYUNIT, FLAG_GRIDTRAJECTORY, FLAG_LINEWIDTH, FLAG_NONE, FLAG_SELECTRANGE, FLAG_SKIPFACTOR, FLAG_SMOOTHING, FLAG_TEXTUREQUALITY, FLAG_TIMERANGE, FLAG_ZPOSITION, GRID_INSETS, ICON_LOCK, ICON_REMOVE, ICON_UNLOCK, LABEL_NONE, MACRO_DATASOURCENAME, MACRO_DISPLAYNAME, MACRO_DISPLAYUNIT, MACRO_FHOUR, MACRO_LONGNAME, MACRO_POSITION, MACRO_SHORTNAME, MACRO_STATION, MACRO_TIMESTAMP, MACRO_VALUE, NEAREST_NEIGHBOR, PREF_DISPLAYLIST_TEMPLATE, PREF_EXTRALABEL_TEMPLATE, PREF_LEGENDLABEL_TEMPLATE, PROP_REMOVED, SETTINGS_GROUP_DISPLAY, SETTINGS_GROUP_FLAGS, SHARE_CHOICES, SHARE_COLOR, SHARE_COLORSCALE, SHARE_COLORTABLE, SHARE_DISPLAYUNIT, SHARE_POSITION, SHARE_SELECTRANGE, SHARE_SKIPVALUE, SHARE_TRANSECT, SHARE_VISIBILITY, WEIGHTED_AVERAGE
 
Fields inherited from interface ucar.unidata.idv.DisplayControl
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND
 
Constructor Summary
TrackControl()
          Create a new Track Control; set the attribute flags
 
Method Summary
protected  void addDisplaySettings(DisplaySettingsDialog dsd)
          Add display settings paricular to this control
protected  void addTimeModeWidget(List controlWidgets)
          the control widgets to add to
 void applyTimeRange()
          Handle some sort of time change.
protected  Container doMakeContents()
          Make the gui
protected  Component doMakeTimeOptionWidget()
          Make the time option widget
 void editLayoutModel()
          Popup the station model editor
 boolean getAskedUserToDeclutterTime()
          Get the AskedUserToDeclutterTime property.
protected  int getColorRangeIndex()
          Returns the index to use in the GridDataInstance array of ranges for color ranges.
 String getColorWidgetLabel()
          Return the label that is to be used for the color widget This allows derived classes to override this and provide their own name,
 void getControlWidgets(List controlWidgets)
          Add control widgets specific to this control to the list
protected  Set getDataTimeSet()
          Collect the time animation set from the displayables.
 LatLonPoint getDisplayCenter()
          Get the display center
 int getLineWidth()
          Get the line width property.
 StationModel getMarkerLayout()
          Get the current layout model view.
 float getMarkerScale()
          Get the scale the user can enter
 boolean getMarkerVisible()
          Get whether the marker is visible
protected  Hashtable getRequestProperties()
          Override the base class method that creates request properties and add in the appropriate 2d/3d request parameter.
protected  JComponent[] getTimeDeclutterComps()
          Make the gui panel for the time decluttering
 boolean getTimeDeclutterEnabled()
          Get the TimeDeclutterEnabled property.
 double getTimeDeclutterMinutes()
          Get the TimeDeclutterMinutes property.
 String getTrackType()
          Get the track type for this control.
protected  int getTrackWidth()
          Get the track width property.
protected  FieldImpl getTrjGridDataInstance()
          _more_
 boolean getUseTrackTimes()
          Deprecated.  
protected  void getViewMenuItems(List items, boolean forMenuBar)
          Add in the flythrough menu
protected  boolean haveMultipleFields()
          Return whether the Data held by this display control contains multiple fields (e.g., for the isosurface colored by another parameter
 boolean init(DataChoice dataChoice)
          Call to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far).
 void initAfterUnPersistence(ControlContext vc, Hashtable properties, List preSelectedDataChoices)
          Called by the IntegratedDataViewer to initialize after this control has been unpersisted
protected  JPanel makeLayoutModelWidget()
          Make the gui widget for setting the layout model
protected  FieldImpl mergeGrid(FieldImpl fi)
          merge tracks into one
 void receiveShareData(Sharable from, Object dataId, Object[] data)
          Method called by other classes that share the selector.
 void setAskedUserToDeclutterTime(boolean value)
          Set the AskedUserToDeclutterTime property.
protected  boolean setData(DataChoice choice)
          Set the data in this control
protected  void setDataInstance(DataInstance dataInstance)
          Set the dataInstance and its paramName in the superclass member data.
 void setDataTimeRange(DataTimeRange range)
          Set the DataTimeRange
 void setLineWidth(int width)
          Deprecated. use #setLineWidth(int)
 void setMarkerLayout(StationModel model)
          Set the current station model view.
 void setMarkerScale(float f)
          Set the scale the user can enter
 void setMarkerSymbol(String value)
          Deprecated. now use #setMarkerLayout(StationModel)
 void setMarkerText(String value)
          Deprecated. now use #setMarkerLayout(StationModel)
 void setMarkerVisible(boolean value)
          Set the marker visible
 void setStationModelFromWidget(StationModel sm)
          set the station model
 void setTimeDeclutterEnabled(boolean value)
          Set the TimeDeclutterEnabled property.
 void setTimeDeclutterMinutes(double value)
          Set the TimeDeclutterMinutes property.
 void setTimeSubsetEnabled(boolean value)
          Deprecated.  
 void setTimeSubsetMinutes(double value)
          Deprecated.  
protected  void setTrackTimes()
          Set the times on the track
 void setTrackType(String type)
          Set the track type for this control.
 void setTrackWidth(int width)
          Deprecated. use #setLineWidth(int)
 void setUseTrackTime(boolean value)
          Deprecated.  
 void setUseTrackTimes(boolean value)
          Deprecated.  
 void showFlythrough()
          Show the flythrough
protected  void timeChanged(Real time)
          Respond to a timeChange event
protected  void timeDeclutterChanged()
          Handle when the time declutering state has changed
protected  void updateIndicator()
          Update the indicator with new shapes
protected  void updateTimeSelectRange()
          Update the select range for the widget with the data's range
 
Methods inherited from class ucar.unidata.idv.control.GridDisplayControl
actionPerformed, addTopographyMap, convertColorRange, doMakeContourLevelControl, doMakeDataInstance, doMakeLevelControl, doMakeLevelControl, exportDisplayedData, getColorParamName, getColorRangeFromData, getColorUnit, getContourInfo, getCursorReadoutData, getCursorReadoutInner, getDataProjection, getDataRangeInColorUnits, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getInitialColorTable, getInitialRange, getRawDataUnit, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, setLevel, setLevel, setLevelFromUser
 
Methods inherited from class ucar.unidata.idv.control.DisplayControlImpl
activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addLabelMacros, addNewData, addNoteText, addPropertiesComponents, addPropertyChangeListener, addRemovable, addSharable, addToControlContext, addToRangeMenu, addToRangeMenu, addToRangeMenu, addViewManager, appendDataChoices, applyAttributesToDisplayables, applyColor, applyColorScaleInfo, applyColorTable, applyColorUnit, applyContourInfo, applyDisplaySetting, applyDisplayUnit, applyLineWidth, applyPreferences, applyProperties, applyProperties, applyPropertyValues, applyRange, applySelectRange, applySkipFactor, applySmoothing, applyTextureQuality, applyZPosition, boundsClose, canBeDocked, canExportData, canSaveDataInCache, captureWindow, centerOnDisplay, changeColorUnit, changeDisplayUnit, checkFlag, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, close, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, createIdvWindow, dataChanged, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, displayUnitChanged, doApplyProperties, doExport, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, doRemove, findDisplayInfo, findDisplays, findDisplays, firePropertyChangeEvent, firstFrameDone, formatForCursorReadout, getActive, getAnimation, getAnimation, getAnimation, getAnimation, getAnimationInfo, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, getChangeParameterLabel, getCollapseLegend, getColor, getColorDimness, getColorScaleInfo, getColorTable, getColorTableForDisplayable, getColorTableToApply, getColorTableWidget, getColorUnitName, getComponentHolder, getContents, getControlChangeSleepTime, getControlContext, getControlMenus, getCursorReadout, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjectionForMenu, getDataProjectionLabel, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayConventions, getDisplayedData, getDisplayId, getDisplayInfos, getDisplayListColor, getDisplayListData, getDisplayListDisplayable, getDisplayListTemplate, getDisplayMaster, getDisplayName, getDisplayScale, getDisplayUnit, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraLegendComponent, getExtraMenus, getFileMenuItems, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getImage, getInitDataChoices, getInitialFastRendering, getInitialZPosition, getInternalAnimation, getInternalAnimation, getIsRaster, getIsTimeDriver, getLabel, getLastFileMenuItems, getLegendButtons, getLegendComponent, getLegendLabel, getLegendLabels, getLegendLabelTemplate, getLegendToolTip, getLineWidthWidget, getLineWidthWidgetLabel, getLockVisibilityToggle, getLongParamName, getMacroNames, getMainPanel, getMainPanelSize, getMakeWindow, getMapDisplay, getMapViewManager, getMapViewProjection, getMenuLabel, getMyDataChoices, getNavigatedDisplay, getNoteText, getObjectStore, getOkToFireEvents, getOldColorTableOrInitialColorTable, getOriginalDataChoicesLabel, getOuterContents, getPointSize, getProperty, getProperty, getPropertyDisplayName, getRange, getRangeForColorTable, getRangeToApply, getSamplingModeName, getSamplingModeValue, getSamplingModeValue, getSaveMenuItems, getSelectRange, getSelectRangeEnabled, getSelectRangeWidget, getSettingsPanel, getShortParamName, getShowInDisplayList, getShowInLegend, getShowInTabs, getShowNoteText, getSkipValue, getSkipWidgetLabel, getSmoothingFactor, getSmoothingType, getSomeAnimation, getStore, getTemplateName, getTextureQuality, getTextureQualityLabel, getTimeSet, getTitle, getTransientProperty, getUnitForColor, getUseFastRendering, getUsesTimeDriver, getUseTimesInAnimation, getVersion, getVerticalValue, getViewAnimation, getViewContext, getViewer, getViewManager, getViewManager, getViewManager, getViewManagerClassNames, getViewManagerForCapture, getViewManagers, getViewMenuItems, getVisbilityAnimationPause, getWasUnPersisted, getWindow, getWindowSize, getWindowVisible, getWindowX, getWindowY, getZPosition, getZPositionSliderLabel, guiExported, guiImported, handleDisplayChanged, handleWindowClosing, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initDone, initializeWithNewData, initWindow, isDisplay3D, isGuiShown, isInitDone, isInTransectView, isInViewManager, itemStateChanged, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, projectionChanged, propertyChange, putTransientProperty, reallySetAttributeFlags, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetData, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, saveDataChoiceInCache, saveImage, selectDataChoices, setAnimationInfo, setAnimationSet, setAttributeFlags, setCachedData, setCanDoRemoveAll, setCategories, setCollapseLegend, setColor, setColorBrighter, setColorDimmer, setColorDimness, setColorScaleInfo, setColorScaleVisible, setColorTable, setColorTable, setColorTableName, setColorUnit, setColorUnitName, setComponentHolder, setContents, setContourInfo, setContourInfoParams, setData, setDataChoices, setDataInstances, setDataSelection, setDefaultSamplingMode, setDefaultView, setDisplayableVisibility, setDisplayableVisiblity, setDisplayActive, setDisplayCategory, setDisplayId, setDisplayInactive, setDisplayListColor, setDisplayListColor, setDisplayListProperties, setDisplayListTemplate, setDisplayName, setDisplayUnit, setDisplayUnitName, setDisplayVisibility, setDoCursorReadout, setExpandedInTabs, setExtraLabelTemplate, setHadDataChoices, setHelpUrl, setId, setInitDataChoices, setInitialSettings, setInitialViewManager, setIsRaster, setIsTimeDriver, setLabelAsPreference, setLegendBackground, setLegendForeground, setLegendLabel, setLegendLabelTemplate, setLockVisibilityToggle, setMainPanelDimensions, setMainPanelSize, setMakeWindow, setName, setNameFromUser, setNewColorUnit, setNewDisplayUnit, setNoteText, setOkToFireEvents, setOriginalDataChoicesLabel, setParamName, setPersistedVisadData, setPointSize, setProjectionInView, setProjectionInView, setProperty, setRange, setRange, setSelectRange, setSelectRangeEnabled, setSettingsDisplayUnit, setSharedColorScaleInfo, setShowInDisplayList, setShowInLegend, setShowInTabs, setShowNoteText, setSkipValue, setSmoothingFactor, setSmoothingType, setTemplateName, setTextureQuality, setTitle, setUnitForColor, setUseFastRendering, setUsesTimeDriver, setUseTimesInAnimation, setVersion, setViewer, setViewManagerClassNames, setVisbilityAnimationPause, setWindowSize, setWindowVisible, setWindowX, setWindowY, setZPosition, setZPosition, shouldAddAnimationListener, shouldAddControlListener, shouldAddDisplayListener, shouldApplyFastRendering, shouldBeDocked, shouldWindowBeVisible, show, showColorControlWidget, showColorDialog, showColorDialog, showColorScaleDialog, showColorScales, showColorSwatches, showContourPropertiesDialog, showDetails, showDisplaySettingsDialog, showHelp, showLegendMenu, showNormalCursor, showProperties, showTimeRangeDialog, showWaitCursor, toFront, toggleNoteTextArea, toggleVisibilityForVectorGraphicsRendering, toggleWindow, toString, transectChanged, updateAnimation, updateDataInstance, updateDataSelection, updateDisplayList, updateGridDataInstance, updateLegendAndList, updateLegendLabel, updateLockButton, useSmoothingFactor, useZPosition, viewManagerChanged, viewManagerDestroyed, viewpointChanged, writeTestArchive, xxxsetDisplayActive, zSliderChanged
 
Methods inherited from class ucar.unidata.idv.control.DisplayControlBase
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.idv.DisplayControl
getTmpProperty, putTmpProperty, removeTmpProperty
 
Methods inherited from interface ucar.unidata.collab.Sharable
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime
 

Field Detail

layoutModelWidget

protected LayoutModelWidget layoutModelWidget
the widget for the layout model


indicator

protected StationModelDisplayable indicator
selector point


timesHolder

protected DisplayableData timesHolder
the displayable that holdss the times


TIMES_TO_USE

protected static final String[] TIMES_TO_USE
Time strings

Constructor Detail

TrackControl

public TrackControl()
Create a new Track Control; set the attribute flags

Method Detail

getViewMenuItems

protected void getViewMenuItems(List items,
                                boolean forMenuBar)
Add in the flythrough menu

Overrides:
getViewMenuItems in class DisplayControlImpl
Parameters:
items - the menu items
forMenuBar - true for the menu bar

showFlythrough

public void showFlythrough()
                    throws Exception
Show the flythrough

Throws:
Exception - problem showing the flythrough

init

public boolean init(DataChoice dataChoice)
             throws VisADException,
                    RemoteException
Call to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far). This method is called from inside DisplayControlImpl.init(several args).

Overrides:
init in class DisplayControlImpl
Parameters:
dataChoice - the DataChoice of the moment.
Returns:
true if successful
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

updateIndicator

protected void updateIndicator()
Update the indicator with new shapes


getColorWidgetLabel

public String getColorWidgetLabel()
Return the label that is to be used for the color widget This allows derived classes to override this and provide their own name,

Overrides:
getColorWidgetLabel in class DisplayControlImpl
Returns:
Label used for the color widget

setDataInstance

protected void setDataInstance(DataInstance dataInstance)
Set the dataInstance and its paramName in the superclass member data. Set the dataInstance in this class member getGridDataInstance(). Get appropritate contour information for the data.

Overrides:
setDataInstance in class DisplayControlImpl
Parameters:
dataInstance - the data instance to use

getDisplayCenter

public LatLonPoint getDisplayCenter()
                             throws RemoteException,
                                    VisADException
Get the display center

Overrides:
getDisplayCenter in class DisplayControlImpl
Returns:
the center point of the display
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

timeChanged

protected void timeChanged(Real time)
Respond to a timeChange event

Overrides:
timeChanged in class DisplayControlImpl
Parameters:
time - new time

setData

protected boolean setData(DataChoice choice)
                   throws VisADException,
                          RemoteException
Set the data in this control

Overrides:
setData in class DisplayControlImpl
Parameters:
choice - data choice
Returns:
true if successful
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

mergeGrid

protected FieldImpl mergeGrid(FieldImpl fi)
                       throws VisADException,
                              RemoteException
merge tracks into one

Parameters:
fi - input fieldimpl contains one or more tracks
Returns:
one track fieldimpl
Throws:
RemoteException - _more_
VisADException - _more_

setTrackTimes

protected void setTrackTimes()
                      throws VisADException,
                             RemoteException
Set the times on the track

Throws:
RemoteException - Java RMI problem
VisADException - VisAD problem

doMakeContents

protected Container doMakeContents()
                            throws VisADException,
                                   RemoteException
Make the gui

Overrides:
doMakeContents in class DisplayControlImpl
Returns:
The gui
Throws:
RemoteException - On Badness
VisADException - On Badness

timeDeclutterChanged

protected void timeDeclutterChanged()
Handle when the time declutering state has changed


getTimeDeclutterComps

protected JComponent[] getTimeDeclutterComps()
Make the gui panel for the time decluttering

Returns:
The time declutter panel

getControlWidgets

public void getControlWidgets(List controlWidgets)
                       throws VisADException,
                              RemoteException
Add control widgets specific to this control to the list

Overrides:
getControlWidgets in class DisplayControlImpl
Parameters:
controlWidgets - list of control widgets
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

addTimeModeWidget

protected void addTimeModeWidget(List controlWidgets)
the control widgets to add to

Overrides:
addTimeModeWidget in class DisplayControlImpl
Parameters:
controlWidgets - the control widgets to add to

doMakeTimeOptionWidget

protected Component doMakeTimeOptionWidget()
Make the time option widget

Returns:
the time option widget

getTrjGridDataInstance

protected FieldImpl getTrjGridDataInstance()
_more_

Returns:
_more_

initAfterUnPersistence

public void initAfterUnPersistence(ControlContext vc,
                                   Hashtable properties,
                                   List preSelectedDataChoices)
Called by the IntegratedDataViewer to initialize after this control has been unpersisted

Specified by:
initAfterUnPersistence in interface DisplayControl
Overrides:
initAfterUnPersistence in class DisplayControlImpl
Parameters:
vc - The context in which this control exists
properties - Properties that may hold things
preSelectedDataChoices - set of preselected data choices

addDisplaySettings

protected void addDisplaySettings(DisplaySettingsDialog dsd)
Add display settings paricular to this control

Overrides:
addDisplaySettings in class DisplayControlImpl
Parameters:
dsd - the DisplaySettingsDialog

setDataTimeRange

public void setDataTimeRange(DataTimeRange range)
Set the DataTimeRange

Overrides:
setDataTimeRange in class DisplayControlImpl
Parameters:
range - the DataTimeRange

applyTimeRange

public void applyTimeRange()
Handle some sort of time change. Either the subsetting interval changes or there is a new timestep.

Overrides:
applyTimeRange in class DisplayControlImpl

getRequestProperties

protected Hashtable getRequestProperties()
Override the base class method that creates request properties and add in the appropriate 2d/3d request parameter.

Overrides:
getRequestProperties in class DisplayControlImpl
Returns:
table of properties

updateTimeSelectRange

protected void updateTimeSelectRange()
Update the select range for the widget with the data's range


haveMultipleFields

protected boolean haveMultipleFields()
Return whether the Data held by this display control contains multiple fields (e.g., for the isosurface colored by another parameter

Overrides:
haveMultipleFields in class GridDisplayControl
Returns:
true if there are multiple fields

getColorRangeIndex

protected int getColorRangeIndex()
Returns the index to use in the GridDataInstance array of ranges for color ranges. The default is 1 though if there is not more than one field in the range then we end up with the 0th value.

Overrides:
getColorRangeIndex in class GridDisplayControl
Returns:
0

receiveShareData

public void receiveShareData(Sharable from,
                             Object dataId,
                             Object[] data)
Method called by other classes that share the selector.

Specified by:
receiveShareData in interface Sharable
Overrides:
receiveShareData in class DisplayControlImpl
Parameters:
from - other class.
dataId - type of sharing
data - Array of data being shared. In this case, the first (and only?) object in the array is the level

setTrackWidth

public void setTrackWidth(int width)
Deprecated. use #setLineWidth(int)

Set the track width property. Used by persistence

Parameters:
width - width for track (pixels)

setLineWidth

public void setLineWidth(int width)
Deprecated. use #setLineWidth(int)

Set the track width property. Used by persistence

Overrides:
setLineWidth in class DisplayControlImpl
Parameters:
width - width for track (pixels)

getLineWidth

public int getLineWidth()
Get the line width property.

Overrides:
getLineWidth in class DisplayControlImpl
Returns:
The line width

getDataTimeSet

protected Set getDataTimeSet()
                      throws RemoteException,
                             VisADException
Collect the time animation set from the displayables. If none found then return null.

Overrides:
getDataTimeSet in class DisplayControlImpl
Returns:
Animation set
Throws:
RemoteException - On badness
VisADException - On badness

getTrackWidth

protected int getTrackWidth()
Get the track width property. Used by persistence

Returns:
width

setTrackType

public void setTrackType(String type)
Set the track type for this control. Used by persistence

Parameters:
type - track type

getTrackType

public String getTrackType()
Get the track type for this control. Used by persistence

Returns:
the track type

setTimeSubsetMinutes

public void setTimeSubsetMinutes(double value)
Deprecated. 

Set the TimeSubsetMinutes property.

Parameters:
value - The new value for TimeSubsetMinutes

setTimeSubsetEnabled

public void setTimeSubsetEnabled(boolean value)
Deprecated. 

Set the TimeSubsetEnabled property.

Parameters:
value - The new value for TimeSubsetEnabled

setUseTrackTime

public void setUseTrackTime(boolean value)
Deprecated. 

Set the useTrackTime property.

Parameters:
value - The new value for useTrackTime

setUseTrackTimes

public void setUseTrackTimes(boolean value)
Deprecated. 

Set the useTrackTimes property.

Parameters:
value - The new value for useTrackTime

getUseTrackTimes

public boolean getUseTrackTimes()
Deprecated. 

Get the useTrackTime property.

Returns:
The new value for useTrackTime

setTimeDeclutterMinutes

public void setTimeDeclutterMinutes(double value)
Set the TimeDeclutterMinutes property.

Parameters:
value - The new value for TimeDeclutterMinutes

getTimeDeclutterMinutes

public double getTimeDeclutterMinutes()
Get the TimeDeclutterMinutes property.

Returns:
The TimeDeclutterMinutes

setTimeDeclutterEnabled

public void setTimeDeclutterEnabled(boolean value)
Set the TimeDeclutterEnabled property.

Parameters:
value - The new value for TimeDeclutterEnabled

getTimeDeclutterEnabled

public boolean getTimeDeclutterEnabled()
Get the TimeDeclutterEnabled property.

Returns:
The TimeDeclutterEnabled

setAskedUserToDeclutterTime

public void setAskedUserToDeclutterTime(boolean value)
Set the AskedUserToDeclutterTime property.

Parameters:
value - The new value for AskedUserToDeclutterTime

getAskedUserToDeclutterTime

public boolean getAskedUserToDeclutterTime()
Get the AskedUserToDeclutterTime property.

Returns:
The AskedUserToDeclutterTime

setMarkerText

public void setMarkerText(String value)
Deprecated. now use #setMarkerLayout(StationModel)

Set the MarkerText property.

Parameters:
value - The new value for MarkerText

setMarkerSymbol

public void setMarkerSymbol(String value)
Deprecated. now use #setMarkerLayout(StationModel)

Set the MarkerSymbol property.

Parameters:
value - The new value for MarkerSymbol

setMarkerLayout

public void setMarkerLayout(StationModel model)
Set the current station model view.

Parameters:
model - station model layout

getMarkerLayout

public StationModel getMarkerLayout()
Get the current layout model view.

Returns:
station model layout

getMarkerScale

public float getMarkerScale()
Get the scale the user can enter

Returns:
The scale

setMarkerScale

public void setMarkerScale(float f)
Set the scale the user can enter

Parameters:
f - The scale

editLayoutModel

public void editLayoutModel()
Popup the station model editor


setMarkerVisible

public void setMarkerVisible(boolean value)
Set the marker visible

Parameters:
value - true to be visible

getMarkerVisible

public boolean getMarkerVisible()
Get whether the marker is visible

Returns:
true if visible

setStationModelFromWidget

public void setStationModelFromWidget(StationModel sm)
set the station model

Parameters:
sm - the station model

makeLayoutModelWidget

protected JPanel makeLayoutModelWidget()
Make the gui widget for setting the layout model

Returns:
the widget