public abstract class DisplayControlImpl extends DisplayControlBase implements DisplayControl, java.awt.event.ActionListener, java.awt.event.ItemListener, DataChangeListener, javax.swing.event.HyperlinkListener, visad.DisplayListener, java.beans.PropertyChangeListener, visad.ControlListener, Prototypable
Modifier and Type | Class and Description |
---|---|
static class |
DisplayControlImpl.SideLegendLabel
Class SideLegendLabel Does the underline
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
categories
This is the list of DataCategory-s that were defined for this DisplayControl
by the idv/controls.properties and ControlDescriptor code.
|
protected ColorScaleInfo |
colorScaleInfo
Holds the color scale information
|
protected java.util.List |
colorScales
This is the color scale widget for a display
|
protected ContourInfo |
contourInfo
Used to hold contour information if this control is enabled for it.
|
protected java.lang.String |
contourInfoParams
Used by the isl to override selective parameters in the default contourInfo
|
protected ContourWidget |
contourWidget
This is the contour info gui widget for controls enabled for contours
|
protected ControlContext |
controlContext
This is the context in whcih this display control exists (typically
an instance of the IntegratedDataViewer but we use the ControlContext
interface to keep us honest and not sloppy).
|
protected ColorTableWidget |
ctw
This is the color table gui widget for controls enabled for color tables
|
protected DataSelection |
dataSelection
The
DataSelection that holds any
data subsetting specifications (e.g., time). |
protected java.lang.String |
defaultView
The name of the ViewManager that any displays should be added to
|
protected ViewManager |
defaultViewManager
This can be used to temporarily set a ViewManager that is to be used.
|
protected java.lang.String |
DISPLAY_LIST_NAME
The name for the text type for the display list.
|
protected java.util.Hashtable |
displayListTable
This is the table of the view manager display list displayables
|
protected boolean |
displayListUsesColor
A boolean to see if the display list got it's color from the display.
|
protected java.util.List |
displayMasters
Holds the
DisplayMaster -s that this control
wholly owns (e.g., profile display master). |
protected visad.Unit |
displayUnit
The Unit (may be null) that is used to display data.
|
protected java.lang.String |
helpUrl
The url to show help for this control.
|
protected java.lang.String |
initNoteText
This is the initial text note text.
|
protected boolean |
instantiatedWithNoData
This gets set to track when we have been re-instantiated from a
bundle without any data.
|
boolean |
isProgressiveResolution
Flag for progressive resolution.
|
boolean |
matchDisplayRegion
Flag for matching the display region
|
protected javax.swing.JTextArea |
noteTextArea
The text area widget used for the control text notes
|
protected javax.swing.JComponent |
noteWrapper
The Container that holds the noteTextArea.
|
protected java.lang.String |
paramName
The name of the parameter (if there is one)
|
boolean |
reloadFromBounds
Flag for reloading from bounds
|
protected java.util.Hashtable |
requestProperties
A hashtable that is used to hold extra properties that
are passed to the
DataChoice through
the getData called. |
protected java.lang.String |
resolutionReadout
The label to show the resolution readout in the side legend
|
protected SelectRangeWidget |
selectRangeWidget
This is the contour info gui widget for controls enabled for contours
|
protected boolean |
settingVisibility
A flag to check if this control is in the middle of toggling its
visibility checkboxes.
|
protected java.util.List |
sharables
Contains a list of all
Sharable
objects (e.g., AnimationWidget) that are created by this control. |
protected boolean |
showNoteText
Do we show the note text?
|
protected javax.swing.JSlider |
skipSlider
slider for setting skip values
|
protected double |
version
version
|
protected java.util.List |
viewManagers
Holds the
ViewManager -s that
this control has created. |
protected static double |
ZFUDGE
fudge factor for the Z position
|
APPEARANCE_DARK, APPEARANCE_IDV, APPEARANCE_LIGHT, 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, log_, MACRO_DATASOURCENAME, MACRO_DISPLAYNAME, MACRO_DISPLAYUNIT, MACRO_FHOUR, MACRO_FHOUR2, MACRO_LONGNAME, MACRO_POSITION, MACRO_RESOLUTION, 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
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 and Description |
---|
DisplayControlImpl()
Default constructor.
|
DisplayControlImpl(ControlContext controlContext)
Create a DisplayControlImple from a ControlContext
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Process the actions of any of the controls created with the
doMake...Control method calls.
|
protected void |
activateDisplays()
Activate each DisplayInfo
|
protected void |
addAttributedDisplayable(Displayable d)
Add the given
Displayable to the list of attribute
displayables. |
protected void |
addAttributedDisplayable(Displayable d,
int attributeFlags)
Add the given
Displayable to the list
of displayables. |
protected void |
addAttributedDisplayable(Displayable d,
int attributeFlags,
int notGlobalFlags)
Add the given Displayable into the list of attributed displayables
managed by this DisplayControl.
|
protected void |
addAttributeFlags(int f)
Add the given attribute flag (e.g., FLAG_COLORTABLE)
to the attrbiute flag map.
|
protected void |
addCheckBoxSettings(java.util.List comps,
java.util.Hashtable methodNameToSettingsMap)
Add checkbox type settings to the Properties panel
|
boolean |
addDataChoice(DataChoice c)
Add the given
DataChoice to the list of
data choices and return true if this is a new DataChoice. |
ViewManager |
addDisplayable(Displayable d)
Add the given
Displayable into a
ViewManager |
ViewManager |
addDisplayable(Displayable theDisplay,
int attributeFlag)
A wrapper around
addDisplayable (Displayable theDisplay, ViewDescriptor viewDescriptor),
passing in the default LASTACTIVE ViewDescriptor.
|
ViewManager |
addDisplayable(Displayable theDisplay,
ViewDescriptor viewDescriptor)
Find the
ViewManager defined
by the given ViewDescriptor . |
ViewManager |
addDisplayable(Displayable theDisplay,
ViewDescriptor viewDescriptor,
int flag)
|
DisplayInfo |
addDisplayable(Displayable theDisplay,
ViewManager viewManager)
Add the given
Displayable into the
given ViewManager |
ViewManager |
addDisplayable(Displayable theDisplay,
ViewManager viewManager,
int flag)
Add the given
Displayable into the given
ViewManager |
protected void |
addDisplayMaster(DisplayMaster s)
A sub-class can register any DisplayMaster-s created and managed by them.
|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add property values for this DisplaySettingsDialog
|
protected void |
addLabelMacros(java.lang.String template,
java.util.List patterns,
java.util.List values)
Add any macro name/value pairs.
|
protected void |
addNewData(java.util.List newChoices)
Called when the user chooses new data for this display
|
protected void |
addNoteText(javax.swing.JPanel mainPanel,
javax.swing.JComponent noteWrapper)
Insert the given noteWrapper (which holds the note text TextArea)
into the gui
|
protected void |
addPropertiesComponents(javax.swing.JTabbedPane jtp)
Add tabs to the properties dialog.
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener.
|
void |
addRemovable(Removable removable)
Add something to be removed on doRemove
|
void |
addSharable(SharableImpl s)
A sub-class can register any
SharableImpl -s
created and managed by them. |
protected void |
addTimeModeWidget(java.util.List controlWidgets)
Add in the time mode widget to the list of control widgets
|
protected void |
addToControlContext()
Add to the control context
|
void |
addToRangeMenu(ColorTableWidget cw,
java.util.List items)
Deprecated.
use #addToRangeMenu(RangeWidget)
|
void |
addToRangeMenu(RangeDialog selectRangeWidget,
java.util.List items)
Deprecated.
use #addToRangeMenu(RangeWidget)
|
void |
addToRangeMenu(RangeWidget rw,
java.util.List items)
A hook to add an entry into the range menu
|
protected void |
addViewManager(ViewManager s)
A sub-class can register any
ViewManager -s
created and managed by them. |
void |
appendDataChoices(java.util.List newDataChoices)
Append the given list of
DataChoice -s
to the myDataChoices list |
protected void |
applyAttributesToDisplayables()
Used to apply all of the display attributes taht are active
to the
Displayable -s |
protected void |
applyColor()
If the color is non-null then apply it to the
Displayable s in the displayables
list that are flagged with the FLAG_COLOR |
protected void |
applyColorScaleInfo()
If the colorScaleInfo is non-null then apply it to the
Displayable s in the displayables
list that are flagged with the FLAG_COLORTABLE |
protected void |
applyColorTable()
If the color table is non-null then apply it to the
Displayable s in the displayables
list that are flagged with the FLAG_COLORTABLE |
protected void |
applyColorUnit()
If the color unit (gotten from a call to getUnitForColor)
is non-null then apply it to the
Displayable s in the displayables
list that are flagged with the FLAG_COLORUNIT |
protected void |
applyContourInfo()
If the contourInfo is non-null then apply it to the
Displayable s in the displayables
list that are flagged with the FLAG_CONTOUR |
void |
applyDisplaySetting(DisplaySetting displaySetting)
Apply a display setting to this control
|
protected void |
applyDisplayUnit()
If the color unit (gotten from a call to getUnitForColor)
is non-null then apply it to the
Displayable s in the displayables
list that are flagged with the FLAG_DISPLAYUNIT |
protected java.lang.String |
applyForecastHourMacro(java.lang.String t,
visad.DateTime currentTime)
Apply the forecast hour macro
|
protected void |
applyLineWidth()
Apply the line width to the displayables with FLAG_LINEWIDTH set
|
void |
applyPreferences()
Apply preferences to this control.
|
boolean |
applyProperties()
Apply the properties from the dialog
|
void |
applyProperties(java.util.Hashtable properties) |
void |
applyPropertyValues(java.util.List props)
Apply the property values in the list
|
protected void |
applyRange()
Apply the range it to the
Displayable s in the displayables
list that are flagged with the FLAG_COLORTABLE |
protected void |
applySelectRange()
Apply the range it to the
Displayable s in the displayables
list that are flagged with the FLAG_SELECTRANGE |
protected void |
applySkipFactor()
Use the value of the skip factor to subset the data.
|
protected void |
applySmoothing()
Use the value of the smoothing properties to set the value on the display.
|
protected void |
applyTextureQuality()
Use the value of the texture quality to set the value on the display
|
void |
applyTimeRange()
Called when we have set the time range.
|
protected void |
applyZPosition()
Apply the z position to the displayables with FLAG_ZPOSITION set
|
protected boolean |
boundsClose(double a,
double b)
See if two values are close
|
boolean |
canBeDocked()
Can this be docked
|
protected boolean |
canDoProgressiveResolution()
Does this control support progressive resolution? Subclasses should
override.
|
boolean |
canExportData()
Can this display control write out data.
|
protected boolean |
canSaveDataInCache()
See if this can save data in cache.
|
void |
captureWindow()
Screen snapshot of window
|
protected void |
centerOnDisplay()
If this display has a dataprojection then center the view to it
|
void |
changeColorUnit()
Change the color unit.
|
void |
changeDisplayUnit()
Change the display unit.
|
protected void |
checkBoundsChange()
Check to see if the screen bounds have changed
|
protected boolean |
checkFlag(int f)
Test if the given flag is set in the attrbiuteFlags
|
protected boolean |
checkIfDataOk(DataInstance di)
Implements the default check if the new DataInstance/DataChoice
pair holds valid data.
|
protected void |
checkImageSize(visad.FieldImpl image)
If image is bigger than threshold then set the skip value
|
protected void |
clearDataInstance()
Clear the DataInstance
|
void |
clearPrototype()
Clear the prototype (default) for this display control
|
protected void |
clearViewManagers()
Runs through the list of ViewManager-s and tells each to destroy.
|
void |
close()
Close the window.
|
protected void |
colorUnitChanged(visad.Unit oldUnit,
visad.Unit newUnit)
A hook that is called when the color unit is changed.
|
void |
controlChanged(visad.ControlEvent event)
Noop for the ControlListener interface
|
Range |
convertColorRange(Range rawRange,
visad.Unit rawUnit)
Utility to convert the given raw data range into the display units
|
Range |
convertRange(Range rawRange,
visad.Unit rawUnit,
visad.Unit outUnit)
Utility to convert the given raw data range into the display units
|
protected DisplayableData |
createDisplayListDisplayable(ViewManager view)
Make the DisplayListDisplayable
|
protected IdvWindow |
createIdvWindow()
Create an IDV window
|
void |
dataChanged()
Implementation of
DataChangeListener . |
protected void |
deactivateDisplays()
DeActivate each DisplayInfo
|
void |
debug(java.lang.String msg)
Debug
|
void |
displayableToFront()
Move the displayable to the front
|
void |
displayChanged(visad.DisplayEvent event)
Noop for the DisplayListener interface
|
void |
displayControlFailed()
Method to do what needs to be done when the display control
failed.
|
protected void |
displayUnitChanged(visad.Unit oldUnit,
visad.Unit newUnit)
A hook that is called when the display unit is changed.
|
boolean |
doApplyProperties()
Apply the properties
|
void |
doExport(java.lang.String what,
java.lang.String filename)
Called by ISL.
|
protected void |
doInitialUpdateLegendAndList()
Do the initial update legend and list
|
protected javax.swing.JComponent |
doMakeBottomLegendComponent()
Create and return the gui component which is used to display
this DisplayControl in the "legend" area of its ViewManager.
|
protected javax.swing.JMenu |
doMakeChangeColorMenu()
Utility to make the menu item for changing the color.
|
protected javax.swing.JMenu |
doMakeChangeColorMenu(java.lang.String name)
Utility to make the menu item for changing the color.
|
protected javax.swing.JMenuItem |
doMakeChangeParameterMenuItem()
Utility to make the menu item for changing the data choice
|
java.awt.Component |
doMakeColorControl()
A wrapper around doMakeColorControl (Color color), passing
in null as the Color argument.
|
java.awt.Component |
doMakeColorControl(java.awt.Color color)
This creates a gui control for selecting a Color.
|
protected void |
doMakeColorScales()
Actually create the color scales
|
protected java.awt.Container |
doMakeContents()
Make Gui contents
|
protected DataInstance |
doMakeDataInstance(DataChoice dataChoice)
Creates and returns the
DataInstance
corresponding to a DataChoice . |
protected javax.swing.JMenuBar |
doMakeMenuBar()
Make the menu bar
|
protected java.util.List |
doMakeMenuBarMenus(java.util.List menus)
Make the menus to put in the menu bar
|
javax.swing.JComponent |
doMakePointSizeWidget()
Make the point size widget
|
javax.swing.JButton |
doMakeRemoveControl(java.lang.String tooltip)
Create the gui control (a JButton) that allows the user to
remove this DisplayControl.
|
protected javax.swing.JComponent |
doMakeSideLegendComponent()
Create and return the gui component which is used to display
this DisplayControl in the "legend" area of its ViewManager.
|
protected java.awt.Component |
doMakeSkipFactorSlider()
Make the skip factor slider.
|
protected javax.swing.JSlider |
doMakeTextureSlider()
Make a slider for the texture quality
|
javax.swing.JCheckBox |
doMakeVisibilityControl(java.lang.String label)
Get the toggle button JCheckBox that is source for item listener
events to toggle visibility of the display.
|
protected javax.swing.JComponent |
doMakeWidgetComponent()
A helper method for constructing the ui.
|
protected void |
doMakeWindow()
Called by the derived class init method to create the gui window.
|
protected javax.swing.JComponent |
doMakeZPositionSlider()
Create the z position slider panel
|
void |
doRemove()
Remove this DisplayControl.
|
void |
exportDisplayedData(java.lang.String type)
Export displayed data to file
|
protected DisplayInfo |
findDisplayInfo(Displayable displayable)
Find the DisplayInfo for a displayable
|
protected java.util.List |
findDisplays(java.lang.String key)
Find displays based on the key
|
protected java.util.List |
findDisplays(java.lang.String key,
java.util.List displays)
Find displays with the particular key in the list of displays
|
protected void |
firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
Fire a property change event.
|
void |
firstFrameDone()
This gets called by the view manager when it has rcvd its first frame_done event.
|
protected java.lang.String |
formatForCursorReadout(visad.Real r)
Format a real for the cursor readout
|
boolean |
getActive()
Is this control active, i.e., has this control not gotten removed yet
|
Animation |
getAnimation()
Get the animation
|
protected Animation |
getAnimation(boolean createOurOwn)
Get the Animation for this display.
|
protected Animation |
getAnimation(boolean createOurOwn,
visad.RealType timeType)
Get the Animation for this display.
|
protected Animation |
getAnimation(visad.RealType timeType)
Create, if needed, and return the Animation to use
|
AnimationInfo |
getAnimationInfo()
Get the AnimationInfo property.
|
AnimationWidget |
getAnimationWidget()
Create, if needed, and return the AnimationWidget
|
protected int |
getAttributeFlags()
Return the attribute flag map
|
java.util.Hashtable |
getCachedData()
Get the cache of data.
|
boolean |
getCanDoRemoveAll()
Used by the IDV to determine whether a control should be removed
when the user does a remove all.
|
java.util.List |
getCategories()
Returns the list of data categories.
|
protected java.lang.String |
getChangeParameterLabel()
A hook to allow derived classes to have their own label in the menu
for the change data call.
|
boolean |
getCollapseLegend()
Get the collapsed legend property.
|
java.awt.Color |
getColor()
Get the color for the selector.
|
float |
getColorDimness()
Get the ColorDimness property.
|
ColorScaleInfo |
getColorScaleInfo()
Get the contour information for any contours
|
ColorTable |
getColorTable()
Get the
ColorTable property. |
float[][] |
getColorTableForDisplayable(ColorTable ct)
The default is to use the alpha color table.
|
protected ColorTable |
getColorTableToApply()
Get the color table to use when applying to displayables
|
ColorTableWidget |
getColorTableWidget(Range r)
Get the ColorTableWidget using the specified range.
|
protected visad.Unit |
getColorUnit()
Return the colorUnit
The get and set methods here are protected so the XmlEncoder
will not try to encode them.
|
java.lang.String |
getColorUnitName()
This is used for xml persistence.
|
java.lang.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,
|
IdvComponentHolder |
getComponentHolder()
Get the ComponentHolder property.
|
protected java.awt.Container |
getContents()
Get the GUI contents
|
ContourInfo |
getContourInfo()
Get the contour information for any contours
|
protected long |
getControlChangeSleepTime()
This returns the time to sleep, in milliseconds, between checks for finally
handling control changed events.
|
ControlContext |
getControlContext()
This is the
IntegratedDataViewer |
java.util.List |
getControlMenus(javax.swing.JComponent comp)
Get the list of menus associated with this control.
|
void |
getControlWidgets(java.util.List<ControlWidget> controlWidgets)
Add into the given the widgets for the different attributes
|
java.util.List |
getCursorReadout(visad.georef.EarthLocation el,
visad.Real animationValue,
int animationStep,
java.util.List<ReadoutInfo> samples)
Get the list of items for the cursor readout
|
protected java.util.List |
getCursorReadoutInner(visad.georef.EarthLocation el,
visad.Real animationValue,
int animationStep)
The getCursorReadout method that really does the work
|
protected java.util.List |
getCursorReadoutInner(visad.georef.EarthLocation el,
visad.Real animationValue,
int animationStep,
java.util.List<ReadoutInfo> samples)
Get the list of items, subclasses should override
|
visad.Data |
getData(DataInstance dataInstance)
A wrapper around dataInstance.getData but this calls
updateDataInstance first
|
DataChoice |
getDataChoice()
Return the single
DataChoice |
java.util.List |
getDataChoices()
Return the list of current
DataChoice -s |
visad.Data |
getDataForDisplayList()
Get the data for the display list
|
DataInstance |
getDataInstance()
We have this here (in part) for xml persistence
|
DataInstance |
getDataInstance(boolean forceCreation)
We have this here (in part) for xml persistence
|
visad.georef.MapProjection |
getDataProjection()
get MapProjection of data to display
|
visad.georef.MapProjection |
getDataProjectionForMenu()
Get the MapProjection for this data; if have a single point data object
make synthetic map projection for location
|
protected java.lang.String |
getDataProjectionLabel()
Get the data projection label
|
DataSelection |
getDataSelection()
This is used for xml persistence.
|
java.util.List |
getDataSources()
Get the DataSources associated with this contol
|
DataTimeRange |
getDataTimeRange()
Get the DataTimeRange property.
|
DataTimeRange |
getDataTimeRange(boolean createIfNeeded)
Get the DataTimeRange property.
|
protected visad.Set |
getDataTimeSet()
Collect the time animation set from the displayables.
|
protected void |
getDebugDetails(java.lang.StringBuffer sb)
When we are iun debug mode this method gets called to add details html
|
protected ColorScaleInfo |
getDefaultColorScaleInfo()
Get the default color scale info
|
protected java.lang.String |
getDefaultDisplayListTemplate()
Get the default display list template for this control.
|
protected visad.Unit |
getDefaultDistanceUnit()
Get the default distance unit
|
protected boolean |
getDefaultFastRendering()
Get the default for fast rendering
|
java.lang.String |
getDefaultSamplingMode()
Get the perferred sampling mode.
|
int |
getDefaultSamplingModeValue()
Get the integer value of the default sampling mode
|
java.lang.String |
getDefaultView()
Return the name of the first
ViewManager found
in the list of DisplayInfo -s. |
ViewDescriptor |
getDefaultViewDescriptor()
Return the
ViewDescriptor to use. |
ViewManager |
getDefaultViewManager()
Return the name of the first
ViewManager found
in the list of DisplayInfo -s. |
protected java.lang.String |
getDetailsContents()
Get the contents of the details html
|
visad.DisplayRealType |
getDisplayAltitudeType()
Utility method to get the altitude type of the display
|
java.lang.String |
getDisplayCategory()
This is the category that is defined for this control.
|
visad.georef.LatLonPoint |
getDisplayCenter()
Get the center of the display
|
DisplayConventions |
getDisplayConventions()
Get the
DisplayConventions to use. |
protected visad.Data |
getDisplayedData()
Get the DisplayedData
|
java.lang.String |
getDisplayId()
The id of this control (from controls.xml)
We have this here for xml persistence
|
java.util.List |
getDisplayInfos()
Return the list of
DisplayInfo
objects held by this control. |
java.awt.Color |
getDisplayListColor()
Get the DisplayListColor property.
|
protected visad.Data |
getDisplayListData()
Add the data to the in display legend
|
DisplayableData |
getDisplayListDisplayable(ViewManager view)
Get the displayable for the Display List
|
java.lang.String |
getDisplayListTemplate()
Get the DisplayListTemplate property.
|
DisplayMaster |
getDisplayMaster(Displayable displayable)
A helper method for finding the
DisplayMaster
that displays the given Displayable |
java.lang.String |
getDisplayName()
Returns the name of this display.
|
float |
getDisplayScale()
Get the scaling factor for probes and such.
|
visad.Unit |
getDisplayUnit()
Return the display unit
|
protected visad.Unit |
getDisplayUnit(visad.Unit rawUnit)
Returns the default display unit to be used.
|
java.lang.String |
getDisplayUnitName()
Get the name of the display unit (if non-null)
This is used for xml persistence.
|
boolean |
getDisplayVisibility()
Get the visibility of the display
|
boolean |
getDoCursorReadout()
Get the DoCursorReadout property.
|
java.util.List |
getEditMenuItems(java.util.List items)
Add the relevant edit menu items into the list
|
protected void |
getEditMenuItems(java.util.List items,
boolean forMenuBar)
Add the relevant edit menu items into the list
|
boolean |
getExpandedInTabs()
Get the ExpandedInTabs property.
|
java.lang.String |
getExtraLabelTemplate()
Get the ExtraLabelTemplate property.
|
protected javax.swing.JComponent |
getExtraLegendComponent(int legendType)
Assume that any display controls that have a color table widget
will want the color table to show up in the legend.
|
protected void |
getExtraMenus(java.util.List menus,
boolean forMenuBar)
Get any extra menus for this control.
|
java.util.List |
getFileMenuItems(java.util.List items)
Add the relevant edit menu items into the list
|
protected void |
getFileMenuItems(java.util.List items,
boolean forMenuBar)
Add the relevant file menu items into the list
|
protected java.awt.GraphicsConfiguration |
getGraphicsConfiguration(boolean is3D,
boolean useStereo)
Get the graphics configuration
|
visad.FieldImpl |
getGrid(GridDataInstance dataInstance)
A wrapper around dataInstance.getGrid but this calls
updateDataInstance first
|
visad.FieldImpl |
getGrid(GridDataInstance dataInstance,
boolean copy)
A wrapper around dataInstance.getGrid but this calls
updateDataInstance first
|
boolean |
getHadDataChoices()
Get the HadDataChoices property.
|
boolean |
getHaveInitialized()
Has this control been initialized
|
java.util.List |
getHelpIds()
Return the list of (String) java help ids
|
protected void |
getHelpMenuItems(java.util.List items,
boolean forMenuBar)
Add the help menu items
|
java.lang.String |
getId()
Get the Id property.
|
IntegratedDataViewer |
getIdv()
Get the integraed data viewer that this is part of
|
java.awt.Image |
getImage()
Get the image
|
java.awt.Image |
getImage(java.lang.String what)
Get the image of "what"
|
java.util.List |
getInitDataChoices()
Used to publicize the list of data choices for the persitence mechanism.
|
protected ColorTable |
getInitialColorTable()
A hook so derived classes can return a colortable.
|
protected boolean |
getInitialFastRendering()
Get the initial fast rendering property
|
protected Range |
getInitialRange()
Hook method to allow derived classes to return a different
initial
Range |
protected double |
getInitialZPosition()
Get the initial Z position
|
protected Animation |
getInternalAnimation()
Create if needed and return an Animation
|
protected Animation |
getInternalAnimation(visad.RealType timeType)
Create if needed and return an Animation
|
boolean |
getIsProgressiveResolution()
_more_
|
boolean |
getIsRaster()
Is this a raster display?
|
boolean |
getIsTimeDriver()
Get the IsTimeDriver property.
|
java.lang.String |
getLabel()
Used by the idv classes
|
protected void |
getLastFileMenuItems(java.util.List items)
Get last file menu items.
|
ucar.unidata.geoloc.LatLonPoint[] |
getLatLonPoints(double[][] xyPoints)
_more_
|
javax.swing.JComponent |
getLegendButtons(int legendType)
Set the legend buttons
|
javax.swing.JComponent |
getLegendComponent(int legendType)
Return the gui component used to display this DisplayControl
within a ViewManager.
|
javax.swing.JComponent |
getLegendLabel(int legendType)
This is the main JLabel used in the legend.
|
protected void |
getLegendLabels(java.util.List labels,
int legendType)
This method is used to get all of the labels (String)
that are shown in the side legend.
|
java.lang.String |
getLegendLabelTemplate()
Get the LegendLabel property.
|
protected java.lang.String |
getLegendToolTip()
Return the tooltip text that is to be shown in the legend
This method constructs html that shows the display name, choices,
link to help, etc.
|
int |
getLineWidth()
Get the line width property.
|
ValueSliderWidget |
getLineWidthWidget()
Get the LineWidthWidget
|
java.lang.String |
getLineWidthWidgetLabel()
Return the label that is to be used for the line width widget
This allows derived classes to override this and provide their
own name,
|
boolean |
getLockVisibilityToggle()
Get the locking visibility of the display
|
protected java.lang.String |
getLongParamName()
Get the long parameter name
|
protected void |
getMacroNames(java.util.List names,
java.util.List labels)
Add any macro name/label pairs
|
javax.swing.JComponent |
getMainPanel()
Get the component for the main panel of this DisplayControlImpl's
contents.
|
java.awt.Dimension |
getMainPanelSize()
Get the main panel size
|
boolean |
getMakeWindow()
Should this control make its own window.
|
NavigatedDisplay |
getMapDisplay()
Just calls getNavigatedDisplay
|
MapViewManager |
getMapViewManager()
A helper method for finding the
MapViewManager
this control displays in. |
visad.georef.MapProjection |
getMapViewProjection()
Get the projection from the main display.
|
boolean |
getMatchDisplayRegion()
Should we match the display region for spatial bounds
|
java.lang.String |
getMenuLabel()
Return the label used for the menues in the IDV.
|
java.util.List |
getMyDataChoices()
Deprecated.
Use getDataChoices
|
NavigatedDisplay |
getNavigatedDisplay()
A helper method for finding the
NavigatedDisplay of this control's
MapViewManager . |
java.lang.String |
getNoteText()
This is the value (String) of the note text area.
|
XmlObjectStore |
getObjectStore()
Return the object store from the getControlContext
|
boolean |
getOkToFireEvents()
Get whether it's okay to fire events to listeners.
|
protected ColorTable |
getOldColorTableOrInitialColorTable()
Just a utility for bundles that were created with the old
code that saved off the color table name, not the color table.
|
java.lang.String |
getOriginalDataChoicesLabel()
Get the name of the data choice, if there is one, when we are saving off without data
|
java.awt.Component |
getOuterContents()
The outer contents is the outermost component of the gui (i.e.,
it holds the menu bar and the mainPanel)
|
float |
getPointSize()
Get the PointSize property.
|
boolean |
getProperty(java.lang.String name,
boolean dflt)
Wrapper around ControlContext.getProperty method
|
java.lang.String |
getProperty(java.lang.String name,
java.lang.String dflt)
Wrapper around ControlContext.getProperty method
|
java.lang.String |
getPropertyDisplayName()
I forgot why there was this getter (with the "Property") here
|
Range |
getRange()
Get the range for the parameter
|
Range |
getRangeForColorTable()
Get the range for the color table.
|
Range |
getRangeToApply()
Get the range to use to apply to displayables
|
visad.Unit |
getRawDataUnit()
Get the raw data unit.
|
protected java.util.Hashtable |
getRequestProperties()
Create (if null) and return the Hashtable that holds
the extra request properties used in a getData call
on the
DataChoice |
java.lang.String |
getSamplingModeName(int mode)
Get the name of the sampling mode
|
int |
getSamplingModeValue()
Get the sampling mode
|
int |
getSamplingModeValue(java.lang.String samplingMode)
Get the integer value for the sampling mode supplied
|
protected void |
getSaveMenuItems(java.util.List items,
boolean forMenuBar)
Add in the menu items for the save and export display template
|
Range |
getSelectRange()
Get the range for the data
|
boolean |
getSelectRangeEnabled()
Get the SelectRangeEnabled property.
|
SelectRangeWidget |
getSelectRangeWidget(Range r)
Get the SelectRangeWidget using the specified range.
|
protected javax.swing.JPanel |
getSettingsPanel()
Get the settings panel
|
protected java.lang.String |
getShortParamName()
Get the short parameter name
|
boolean |
getShoulDoProgressiveResolution()
Can we do progresive resolution from this display
|
boolean |
getShowInDisplayList()
Get the ShowInDisplayList property.
|
boolean |
getShowInLegend()
Get the ShowInLegend property.
|
boolean |
getShowInTabs()
Get the ShowInTabs property.
|
boolean |
getShowNoteText()
Is this control currently showing the embedded note text area.
|
int |
getSkipValue()
Get the skip value property
|
java.lang.String |
getSkipWidgetLabel()
Return the label that is to be used for the skip widget
This allows derived classes to override this and provide their
own name,
|
int |
getSmoothingFactor()
Get the smoothing factor
|
java.lang.String |
getSmoothingType()
Get the smoothing type
|
Animation |
getSomeAnimation()
Get some animation.
|
XmlObjectStore |
getStore()
Get the object store
|
java.lang.String |
getTemplateName()
Get the TemplateName property.
|
int |
getTextureQuality()
Get the texture quality
|
java.lang.String |
getTextureQualityLabel()
Return the label that is to be used for the texture quality widget
This allows derived classes to override this and provide their
own name,
|
visad.Set |
getTimeSet()
Get the time set
|
protected java.lang.String |
getTitle()
Returns the window title.
|
java.lang.Object |
getTransientProperty(java.lang.Object key)
Find a property on the display control.
|
protected visad.Unit |
getUnitForColor()
Get the unit used for coloring the displays.
|
boolean |
getUseFastRendering()
Get the UseFastRendering property.
|
boolean |
getUsesTimeDriver()
Get the UsesTimeDriver property.
|
boolean |
getUseTimesInAnimation()
Get the UseTimesInAnimation property.
|
double |
getVersion()
Get the Version property.
|
double |
getVerticalValue(double value)
Get the vertical position for a constant map from a
value in the range of -1.0 to 1.0.
|
Animation |
getViewAnimation()
Get the Animation that is from the view manager for this control
|
ViewContext |
getViewContext()
A hack for now.
|
ControlContext |
getViewer()
We have this here (in part) for xml persistence
This is usually the
IntegratedDataViewer |
ViewManager |
getViewManager()
Get, from the
ControlContext ,
the ViewManager identified by the
ViewDescriptor returned from
getDefaultViewDescriptor() |
ViewManager |
getViewManager(Displayable displayable)
A helper method for finding the common
ViewManager
which is displaying the given displayable. |
ViewManager |
getViewManager(ViewDescriptor viewDescriptor)
|
java.lang.String |
getViewManagerClassNames()
Get the ViewManagerClasses property.
|
ViewManager |
getViewManagerForCapture(java.lang.String what)
Allows a derived class to provide its own viewmanager wehn capturing an image of the display from isl
|
java.util.List |
getViewManagers()
Method to get a list of ViewManagers that are applicable to this
DisplayControl.
|
java.util.List |
getViewMenuItems(java.util.List items)
Add the relevant view menu items into the list
|
protected void |
getViewMenuItems(java.util.List items,
boolean forMenuBar)
Add the relevant view menu items into the list
|
int |
getVisbilityAnimationPause()
Get the VisbilityAnimationPause property.
|
protected boolean |
getWasUnPersisted()
See if we were unpersisted
|
javax.swing.JFrame |
getWindow()
Return the control's JFrame
|
java.awt.Dimension |
getWindowSize()
This method is here (mostly) for xml unpersistence
|
boolean |
getWindowVisible()
Is the window currently visible
|
int |
getWindowX()
This method is here (mostly) for xml unpersistence
|
int |
getWindowY()
This method is here (mostly) for xml unpersistence
|
double |
getZPosition()
Get the ZPosition property.
|
protected java.lang.String |
getZPositionSliderLabel()
Get the label for the Z position slider.
|
void |
guiExported()
This is called to inform this display control that its gui has been exported out
of some other component (ex: the MultiDisplayControl).
|
void |
guiImported()
This is called to inform this display control that its gui has been imported by some
other idv component and it no longer is in a window.
|
void |
handleDisplayChanged(visad.DisplayEvent event)
Allow sub-classes to get displayevents
|
protected void |
handleWindowClosing()
Handle the window closing.
|
protected boolean |
hasForecastHourMacro(java.lang.String t)
Check if the label string has a forecast hour macro in it.
|
boolean |
hasMapProjection()
Does this display have a map projection
|
protected boolean |
hasTimeMacro(java.lang.String t)
Does this have a time macro string?
|
protected boolean |
haveDataTimes()
Do any of our displayables have times
|
protected boolean |
haveParameterDefaults()
Check to see if we have any display properties.
|
void |
hide()
Hide the window
|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Implement the HyperLinkListener method to pass any link clicks
off to the
ControlContext |
boolean |
inGlobeDisplay()
Are we in a Globe display?
|
boolean |
init(DataChoice choice)
Initialize this instance according to a data choice.
|
boolean |
init(java.util.List choices)
Initialize this instance according to the first
DataChoice in a List . |
void |
init(java.lang.String displayId,
java.util.List categories,
java.util.List choices,
ControlContext controlContext,
java.util.Hashtable properties,
DataSelection dataSelection)
This init method is the one actually called by the IDV.
|
void |
init(java.lang.String displayId,
java.util.List categories,
java.util.List choices,
ControlContext controlContext,
java.lang.String properties,
DataSelection dataSelection)
Deprecated.
use init that takes a properties Hashtable
|
void |
initAfterUnPersistence(ControlContext vc,
java.util.Hashtable properties)
Called by the
IntegratedDataViewer to
initialize after this control has been unpersisted |
void |
initAfterUnPersistence(ControlContext vc,
java.util.Hashtable properties,
java.util.List preSelectedDataChoices)
Called by the
IntegratedDataViewer to
initialize after this control has been unpersisted |
void |
initAsPrototype()
Initialize as a prototype
|
void |
initAsTemplate()
Initialize as a template
|
void |
initBasic(java.lang.String displayId,
java.util.List categories,
java.util.Hashtable properties)
This init method is used to just initialize some basic properties
of this display control.
|
void |
initDone()
Called after all initialization has been done.
|
protected void |
initializeWithNewData()
This is called when this display is created from a template and does not have any data.
|
void |
initWindow(IdvWindow window)
A hook method to allow subclasses to initialize the dialog window,
set the size of the dialog window, etc.
|
boolean |
isDisplay3D()
Utility method to determine if we are displaying in a 3d viewmanager
|
protected boolean |
isDisplayUnitAlsoColorUnit()
Allows for derived classes to define that the display unit
is different then the color unit.
|
protected boolean |
isGuiShown()
Is the GUI being shown
|
boolean |
isInitDone()
Check if initialization is done
|
boolean |
isInTransectView()
Are we displayed in a transect view manager
|
boolean |
isInViewManager()
Does this control have displays in a view manager
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
A no-op method to implement the ItemListener interface.
|
protected void |
loadDataFromViewBounds()
Method to calculate screen bounds to load new data
|
protected java.util.List |
makeChangeColorMenuItems()
Add the list of menu items for changing the color to the
component (usually a menu or popup menu)
|
javax.swing.JLabel |
makeLegendLabel()
make the legend label
|
protected javax.swing.JButton |
makeLockButton()
Create a lock button for the given display control.
|
protected javax.swing.JButton |
makeRemoveButton()
Create an icon button for removing the given display control.
|
void |
moveTo(ViewManager newViewManager)
An implementation of the DisplayControl interface moveTo method.
|
protected void |
notifyViewManagersOfChange()
notify views of change
|
protected void |
parseProperties(java.lang.String properties)
The given properties String is a ";" delimited list of
name=value properties.
|
void |
popup(java.awt.Component src)
Show the dialog window for this control.
|
protected void |
popupDataDialog(java.lang.String dialogMessage,
java.awt.Component from)
Create and show the data choosing dialog
|
protected void |
popupDataDialog(java.lang.String dialogMessage,
java.awt.Component from,
boolean multiples)
Popup a DataTreeDialog
|
protected void |
popupDataDialog(java.lang.String dialogMessage,
java.awt.Component from,
boolean multiples,
java.util.List categories)
Popup a DataTreeDialog
|
protected void |
processRequestProperties()
Process request properties from a DataChoice
|
void |
projectionChanged()
Method to call if projection changes.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Handle animation change events
|
void |
putTransientProperty(java.lang.Object key,
java.lang.Object value)
Put a property on the display control.
|
protected void |
reallySetAttributeFlags(int f)
Set the attribute flag map to the given value.
|
void |
receiveShareData(Sharable from,
java.lang.Object dataId,
java.lang.Object[] data)
Method called by other classes that share the the state.
|
protected void |
redoGuiLayout()
Used to relayout the gui mainPanel
|
void |
reloadDataSource()
Reload the data sources
|
void |
reloadDataSourceInThread()
reload the data source in a thread.
|
void |
relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds,
ucar.unidata.geoloc.LatLonRect newBounds)
When we relocate a bundle this gets called to relocate the display
This method gets overwritten by the probe and cross section displays
so they can move their selection points to a new location
|
void |
relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds,
ucar.unidata.geoloc.LatLonRect newBounds,
boolean useDataProjection)
When we relocate a bundle this gets called to relocate the display
This method gets overwritten by the probe and cross section displays
so they can move their selection points to a new location
|
void |
removeDataChoice(DataChoice dataChoice)
Remove the given
DataChoice from the myDataChoices
list. |
void |
removeDisplayable(Displayable displayable)
Remove a
Displayable |
protected void |
removeDisplayables()
Iterates across the list of
DisplayInfo -s, telling them to
removeDisplayable. |
protected void |
removeDisplayables(boolean andDestroyThem)
Iterates across the list of
DisplayInfo -s, telling them to
removeDisplayable. |
protected boolean |
removeOnWindowClose()
Should the DisplayControl do a doRemove when the window closes.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove property change listener.
|
protected void |
resetData()
This gets called when the control has received notification of a
dataChange event.
|
void |
resetDimness()
Set the color table dimness to the default
|
void |
resetViewManager(java.lang.String oldViewId,
java.lang.String newViewId)
Reset the view manager
|
protected void |
revertToDefaultColorTable()
Reset the color table to the initial color table
|
protected void |
revertToDefaultColorTable(java.lang.String whichColorTable)
Revert to the default
|
protected void |
revertToDefaultRange()
Reset the range to the initial range
|
protected void |
revertToDefaultRange(java.lang.String whichColorTable)
Revert to the default
|
void |
saveAsFavorite()
Save this display control as a favorite display template.
|
void |
saveAsParameterDefaults()
Save the state as parameter defaults
|
void |
saveAsPrototype()
Save this display as a prototype (default)
|
void |
saveAsTemplate()
Save this display control as a display template.
|
void |
saveDataChoiceInCache()
Save the data choice into the cache data source
|
void |
saveImage(java.lang.String filename)
Find the first ViewManager in the list of DisplayInfo-s
and have the ViewManager write its image to to given
filename.
|
void |
saveProjection()
When relocate display through ISL or RBB it will be good to save the projection
otherwise, the home button will bring the view back to original view
|
protected java.util.List<DataChoice> |
selectDataChoices(java.lang.String dialogMessage,
java.awt.Component from,
boolean multiples,
java.util.List categories)
Popup a DataTreeDialog
|
void |
setAnimationInfo(AnimationInfo value)
Set the AnimationInfo property.
|
protected void |
setAnimationSet(java.util.List dateTimes)
A utility method to set the animation set from the given list of times
of the animation
|
protected void |
setAttributeFlags(int f)
Set the attribute flag map to the given value.
|
void |
setCachedData(java.util.Hashtable cache)
Set the data cache.
|
void |
setCanDoRemoveAll(boolean v)
Used by the IDV to determine whether a control should be removed
when the user does a remove all.
|
void |
setCategories(java.util.List c)
A set method so the categories list will get persisted.
|
void |
setCollapseLegend(boolean value)
Set the collapsed legend property.
|
void |
setColor(java.awt.Color c)
Set the color for the selector.
|
void |
setColorBrighter()
Set the color brighter
|
void |
setColorDimmer()
Set the color dimmer
|
void |
setColorDimness(float value)
Set the ColorDimness property.
|
void |
setColorScaleInfo(ColorScaleInfo newInfo)
Set the color scale parameters for any color scale
|
void |
setColorScaleVisible(boolean viz)
Set the visibility of the color scale.
|
void |
setColorTable(ColorTable newColorTable)
Set the
ColorTable property. |
void |
setColorTable(java.lang.String whichColorTable,
ColorTable newColorTable)
Set the color table from the colortablewidget
|
void |
setColorTableName(java.lang.String n)
This method is for legacy bundles that used to save off the
color table name instead of the color table.
|
protected void |
setColorUnit(visad.Unit unit)
Set the colorUnit
|
void |
setColorUnitName(java.lang.String name)
This is used for xml persistence.
|
void |
setComponentHolder(IdvComponentHolder value)
Set the ComponentHolder property.
|
protected void |
setContents(java.awt.Container c)
Set the gui contents
|
void |
setContourInfo(ContourInfo newInfo)
Set the contour parameters for any contours
|
void |
setContourInfoParams(java.lang.String s)
Used by the isl to override selective parameters in the default contourInfo
|
protected boolean |
setData(DataChoice dataChoice)
Sets the data associated with this instance.
|
protected boolean |
setData(java.util.List newChoices)
Gets called when the user has selected a new DataChoice.
|
void |
setDataChoices(java.util.List newList)
Set the list of data choices to be the given list
|
protected void |
setDataInstance(DataInstance dataInstance)
Set the data instance.
|
void |
setDataInstances(java.util.List l)
Sets the list of
DataInstances for this
DisplayControl. |
void |
setDataSelection(DataSelection newDataSelection)
This is used for xml persistence.
|
void |
setDataTimeRange(DataTimeRange value)
Set the DataTimeRange property.
|
void |
setDefaultSamplingMode(java.lang.String newMode)
Set sampling mode.
|
void |
setDefaultView(java.lang.String s)
Set the name of the default view manager that displays are put into.
|
protected void |
setDisplayableVisibility(Displayable d,
boolean visible)
Set the ultimate visibility of the particular
Displayable . |
protected void |
setDisplayableVisiblity(Displayable d,
boolean visible)
Deprecated.
|
void |
setDisplayActive()
If wasActive is true then set the display master to be active.
|
void |
setDisplayAreaSubset(java.lang.String n)
This api is called by ISL to set the spatial subset of the datasource to
the Match Display Region, so the user doesn't need to save all data
when saving the zidv bundle, if there is more than one view window it will
do nothing since it will be too much book keeping to find out the region to
subset
|
void |
setDisplayCategory(java.lang.String value)
This is the category that is defined for this control.
|
void |
setDisplayId(java.lang.String theId)
Set the id of this control (from controls.xml)
We have this here for xml persistence
|
void |
setDisplayInactive()
Set the display master to be inactive.
|
void |
setDisplayListColor(java.awt.Color newColor)
Set the display list color property.
|
protected void |
setDisplayListColor(java.awt.Color newColor,
boolean fromUser)
Set the display list color property.
|
protected void |
setDisplayListProperties(DisplayableData d,
ViewManager view)
Set the display list properties on the displayable
|
void |
setDisplayListTemplate(java.lang.String value)
Set the DisplayListTemplate property.
|
void |
setDisplayListTimeZone(java.lang.String timeZoneStr)
Set the Time Zone
|
void |
setDisplayName(java.lang.String displayName)
What is the name of this control (e.g., "Plan view")
|
protected void |
setDisplayUnit(visad.Unit newUnit)
Set the display unit.
|
void |
setDisplayUnitName(java.lang.String name)
Set the name of the display unit.
|
void |
setDisplayVisibility(boolean on)
Set the visibility of the display and set the state of
any visibility buttons we may have.
|
void |
setDoCursorReadout(boolean value)
Set the DoCursorReadout property.
|
void |
setExpandedInTabs(boolean value)
Set the ExpandedInTabs property.
|
void |
setExtraLabelTemplate(java.lang.String value)
Set the ExtraLabelTemplate property.
|
void |
setHadDataChoices(boolean value)
Set the HadDataChoices property.
|
void |
setHelpUrl(java.lang.String helpUrl)
Set the help URL for this DisplayControl
|
void |
setId(java.lang.String value)
Set the Name property.
|
void |
setInitDataChoices(java.util.List l)
Used to publicize the list of data choices for the persistence mechanism
|
void |
setInitialSettings(java.util.List settings)
Set the initial settings
|
void |
setInitialViewManager(ViewManager viewManager)
Set the view manager for this control to use.
|
void |
setIsProgressiveResolution(boolean isPG)
_more_
|
void |
setIsRaster(boolean isRaster)
Set IsRaster property
|
void |
setIsTimeDriver(boolean value)
Set the IsTimeDriver property.
|
void |
setLabelAsPreference(java.lang.Object[] obj)
Set the label as a preference
|
void |
setLegendBackground(java.awt.Color bg)
Set the color to be used for the background in the bottom legend
|
void |
setLegendForeground(java.awt.Color fg)
Set the color to be used for the foreground in the bottom legend
|
void |
setLegendLabel(java.lang.String label)
A no-op so unpersisting old bundles won't flag a warning.
|
void |
setLegendLabelTemplate(java.lang.String value)
Set the LegendLabel property.
|
void |
setLineWidth(int value)
Set the line width property.
|
void |
setLockVisibilityToggle(boolean lockVisibilityToggle)
Set the locking visibility of the display
|
protected void |
setMainPanelDimensions()
Set the main panel dimenstions
|
void |
setMainPanelSize(java.awt.Dimension s)
Set the main panel size
|
void |
setMakeWindow(boolean value)
Should this control make its own window.
|
void |
setMatchDisplayRegion(boolean useDR)
Set whether we should match the display region for spatial bounds
|
void |
setName(java.lang.String value)
Set the Name property.
|
void |
setNameFromUser(java.lang.String value)
Set the NameFromUser property.
|
protected boolean |
setNewColorUnit(visad.Unit newUnit,
boolean applyToDisplayable)
The user has chosen a new unit for color.
|
protected boolean |
setNewDisplayUnit(visad.Unit newUnit,
boolean applyToDisplayable)
The user has chosen a new unit for display.
|
void |
setNoteText(java.lang.String n)
Set the value of the note text area.
|
void |
setOkToFireEvents(boolean v)
Set whether it's okay to fire events to listeners.
|
void |
setOriginalDataChoicesLabel(java.lang.String s)
Set the name of the data choice
|
void |
setParamName(java.lang.String paramName)
The name of the parameter (initially from the DataChoice) displayed
by this control.
|
void |
setPersistedVisadData(java.util.List l)
Deprecated.
|
void |
setPointSize(float value)
Set the PointSize property.
|
protected void |
setProjectionInView(boolean useViewPreference)
Set the projection in the map view manager.
|
protected void |
setProjectionInView(boolean useViewPreference,
boolean maintainViewpoint)
Set the projection in the map view manager.
|
protected void |
setProjectionInView(MapViewManager mvm,
boolean useViewPreference,
boolean maintainViewpoint)
Set the projection in the map view manager.
|
protected void |
setProperty(java.lang.String name,
java.lang.Object value)
Wrapper around Misc.propertySet
|
void |
setRange(Range newRange)
Set the range for the color table.
|
void |
setRange(java.lang.String whichColortable,
Range newRange)
Set the range (from the colortablewidget)
|
void |
setSelectRange(Range newRange)
Set the range for the select data.
|
void |
setSelectRangeEnabled(boolean value)
Set the SelectRangeEnabled property.
|
void |
setSettingsDisplayUnit(visad.Unit newUnit)
Set the display unit from the settings
|
void |
setSharedColorScaleInfo(ColorScaleInfo newInfo)
Set the shared color scale info
|
void |
setShowInDisplayList(boolean value)
Set the ShowInDisplayList property.
|
void |
setShowInLegend(boolean value)
Set the ShowInLegend property.
|
void |
setShowInTabs(boolean value)
Set the ShowInTabs property.
|
void |
setShowNoteText(boolean n)
Used by the presistence/unpersistence to record
whether this control is showing its note text area
|
void |
setSkipValue(int value)
Set the skip value property
|
void |
setSmoothingFactor(int val)
Set the smoothing factor
|
void |
setSmoothingType(java.lang.String type)
Set the smoothing type
|
void |
setTemplateName(java.lang.String value)
Set the TemplateName property.
|
void |
setTextureQuality(int quality)
Set the texture quality
|
void |
setTitle(java.lang.String title)
Set the title of the window if it has been created.
|
protected void |
setUnitForColor(visad.Unit newUnit)
Set the unit to use for color.
|
void |
setUseFastRendering(boolean value)
Set the UseFastRendering property.
|
void |
setUsesTimeDriver(boolean value)
Set the UsesTimeDriver property.
|
void |
setUseTimesInAnimation(boolean value)
Set the UseTimesInAnimation property.
|
void |
setVersion(double value)
Set the Version property.
|
void |
setViewer(ControlContext controlContext)
We have this here (in part) for xml persistence
This is usually the
IntegratedDataViewer |
void |
setViewManagerClassNames(java.lang.String value)
Set the ViewManagerClasses property.
|
void |
setVisbilityAnimationPause(int value)
Set the VisbilityAnimationPause property.
|
void |
setWindowSize(java.awt.Dimension value)
This method is here (mostly) for xml unpersistence
|
void |
setWindowVisible(boolean v)
Set the local data memeber myWindowVisible.
|
void |
setWindowX(int x)
This method is here (mostly) for xml unpersistence
|
void |
setWindowY(int y)
This method is here (mostly) for xml unpersistence
|
void |
setZPosition(double value)
Set the ZPosition property.
|
void |
setZPosition(double value,
boolean fromSlider)
Set the Z position
|
protected boolean |
shouldAddAnimationListener()
A hook to allow derived classes to tell us to add this
as an animation listener
|
protected boolean |
shouldAddControlListener()
A hook to allow derived classes to tell us to add this
as a control listener
|
protected boolean |
shouldAddDisplayListener()
A hook to allow derived classes to tell us to add this
as a display listener
|
protected boolean |
shouldApplyFastRendering()
This method can be overwritten by the derived classes that do not want the
general application of the fast rendering flag.
|
boolean |
shouldBeDocked()
Should this be docked
|
boolean |
shouldWindowBeVisible()
Does this display control popup its window on creation
|
void |
show()
SHow the window
|
boolean |
showColorControlWidget()
Show the color control widget in the widgets if FLAG_COLOR is set.
|
void |
showColorDialog()
Show the color dialog
|
void |
showColorDialog(java.lang.String methodName)
Show the color dialog and invoke the named method
|
void |
showColorScaleDialog()
Popup the color scale properties dialog
|
protected boolean |
showColorScales(boolean show)
Method to show all
ColorScales associated with this
DisplayControl. |
protected void |
showColorSwatches(boolean on)
Change the visiblity of all color swatches
|
void |
showContourPropertiesDialog()
Popup the contour properties dialog
|
void |
showDetails()
Popup the details window
|
void |
showDisplaySettingsDialog()
Show the DisplaySettingsDialog
|
void |
showHelp()
This method will attempt to show the relevant javahelp for
this display.
|
protected void |
showLegendMenu(javax.swing.JComponent comp,
java.awt.event.MouseEvent event)
Create and show the popup menu for the user's right click on the
legend.
|
void |
showNormalCursor()
A helper method to show the normal cursor
|
void |
showProperties()
Show the properties dialog
|
void |
showTimeRangeDialog()
Popup the time range dialog
|
void |
showWaitCursor()
A helper method to show the wait cursor
|
protected void |
timeChanged(visad.Real time)
Respond to a timeChange event
|
void |
toFront()
Move the control's window to the front.
|
void |
toggleNoteTextArea()
Toggle the visibility of the noteTextArea.
|
void |
toggleVisibilityForVectorGraphicsRendering(int rasterMode)
Toggle the visibility for vector graphics rendering
|
void |
toggleWindow()
Hide or show the main window
|
java.lang.String |
toString()
The toString method.
|
void |
transectChanged()
Method called when a transect changes.
|
protected void |
updateAnimation()
Update the animation for the view manager
|
protected DataInstance |
updateDataInstance(DataInstance dataInstance)
update the datainstance in preparation for a getData call.
|
protected DataSelection |
updateDataSelection(DataSelection dataSelection)
update the dataselection in preparation for a getData call.
|
protected void |
updateDisplayList()
Update the display list data
|
protected GridDataInstance |
updateGridDataInstance(GridDataInstance dataInstance)
update the datainstance in preparation for a getData call
|
protected void |
updateLegendAndList()
Update the legend labels and the display list
|
protected void |
updateLegendLabel()
This method is called to update the legend labels when
some state has changed in this control that is reflected in the labels.
|
protected void |
updateLockButton(javax.swing.JButton lockBtn)
Change the icon in the lock button for the given display control.
|
boolean |
useSmoothingFactor()
Should we use the smoothing factor?
|
protected boolean |
useZPosition()
See if the display supports Z positioning.
|
void |
viewManagerChanged(java.lang.String property)
Method called when a transect changes.
|
void |
viewManagerDestroyed(ViewManager viewManager)
Called when a ViewManager which holds the display is destoryed
|
void |
viewpointChanged()
This gets called when we have received a controlChanged event
and have not received another one in some time delta
|
void |
writeTestArchive(java.lang.String archiveName)
Write out all screen images
|
void |
xxxsetDisplayActive(boolean active)
Set the display master to be active/inactive.
|
void |
zSliderChanged(double value)
The z slider postion changed
|
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
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTmpProperty, putTmpProperty, removeTmpProperty
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime
protected double version
protected static final double ZFUDGE
protected boolean settingVisibility
protected final java.lang.String DISPLAY_LIST_NAME
protected visad.Unit displayUnit
protected java.lang.String initNoteText
protected javax.swing.JTextArea noteTextArea
protected javax.swing.JComponent noteWrapper
protected boolean showNoteText
protected java.lang.String resolutionReadout
protected DataSelection dataSelection
DataSelection
that holds any
data subsetting specifications (e.g., time). This is typically
created by the IDV and passed into this DisplayControl.protected java.util.Hashtable requestProperties
DataChoice
through
the getData called.protected java.util.List sharables
Sharable
objects (e.g., AnimationWidget) that are created by this control.
We keep this around so when the display is removed we can tell
each Sharable to remove itself.protected java.util.List displayMasters
DisplayMaster
-s that this control
wholly owns (e.g., profile display master).protected ViewManager defaultViewManager
protected java.util.List viewManagers
ViewManager
-s that
this control has created.protected java.lang.String defaultView
protected ContourInfo contourInfo
protected java.lang.String contourInfoParams
protected boolean displayListUsesColor
protected ColorTableWidget ctw
protected java.util.List colorScales
protected java.util.Hashtable displayListTable
protected ContourWidget contourWidget
protected SelectRangeWidget selectRangeWidget
protected java.lang.String helpUrl
protected java.lang.String paramName
protected boolean instantiatedWithNoData
protected java.util.List categories
protected ColorScaleInfo colorScaleInfo
protected ControlContext controlContext
protected javax.swing.JSlider skipSlider
public boolean isProgressiveResolution
public boolean reloadFromBounds
public boolean matchDisplayRegion
public DisplayControlImpl()
XmlEncoder
mechanism.public DisplayControlImpl(ControlContext controlContext)
controlContext
- context to usepublic final void initBasic(java.lang.String displayId, java.util.List categories, java.util.Hashtable properties)
initBasic
in interface DisplayControl
displayId
- The identifier of this control. Taken from controls.xmlcategories
- The list of DataCategory
ies for this controlproperties
- Any properties (usually defined in controls.xml)public final void init(java.lang.String displayId, java.util.List categories, java.util.List choices, ControlContext controlContext, java.lang.String properties, DataSelection dataSelection) throws visad.VisADException, java.rmi.RemoteException
init
in interface DisplayControl
displayId
- The identifier of this control. Taken from controls.xmlcategories
- The list of DataCategory
ies for this controlchoices
- The list of DataChoice
-s (usually only one) for this controlcontrolContext
- The context in which this control is in (usually a reference to the
IntegratedDataViewer
properties
- Any properties (usually defined in controls.xml)dataSelection
- Holds any specifications of subsets of the data (e.g., times)visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic final void init(java.lang.String displayId, java.util.List categories, java.util.List choices, ControlContext controlContext, java.util.Hashtable properties, DataSelection dataSelection) throws visad.VisADException, java.rmi.RemoteException
init
in interface DisplayControl
displayId
- The identifier of this control. Taken from controls.xmlcategories
- The list of DataCategory
ies for this controlchoices
- The list of DataChoice
-s (usually only one) for this controlcontrolContext
- The context in which this control is in (usually a reference to the
IntegratedDataViewer
properties
- Any properties (usually defined in controls.xml)dataSelection
- Holds any specifications of subsets of the data (e.g., times)visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void doInitialUpdateLegendAndList()
protected void addToControlContext()
public void initAsTemplate()
initAsTemplate
in interface DisplayControl
public void initAsPrototype()
initAsPrototype
in interface Prototypable
public void initAfterUnPersistence(ControlContext vc, java.util.Hashtable properties)
IntegratedDataViewer
to
initialize after this control has been unpersistedinitAfterUnPersistence
in interface DisplayControl
vc
- The context in which this control existsproperties
- Properties that may hold thingspublic void initAfterUnPersistence(ControlContext vc, java.util.Hashtable properties, java.util.List preSelectedDataChoices)
IntegratedDataViewer
to
initialize after this control has been unpersistedinitAfterUnPersistence
in interface DisplayControl
vc
- The context in which this control existsproperties
- Properties that may hold thingspreSelectedDataChoices
- set of preselected data choicespublic boolean init(java.util.List choices) throws visad.VisADException, java.rmi.RemoteException
DataChoice
in a List
.
This implementation invokes init(DataChoice)
to
perform the initialization. If the list is null
or empty,
then the argument to init(DataChoice)
is null
.choices
- A list of data choices or null
.true
if and only if this instance
was correctly initialized by the data choice.visad.VisADException
- if a VisAD Failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public boolean init(DataChoice choice) throws visad.VisADException, java.rmi.RemoteException
Initialize this instance according to a data choice. Subclasses should
override this method. Overridding methods should probably invoke setData(DataChoice)
as part of their initialization procedure --
although it is unclear when this is actually necessary.
This implementation simply returns true
.
choice
- A data choice or null
.true
if and only if this instance
was correctly initialized by the data choice.visad.VisADException
- if a VisAD Failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void initDone()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener to addpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- listener to removeprotected void firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
event
- event to propagateprotected boolean hasTimeMacro(java.lang.String t)
t
- the string to checkprotected boolean shouldAddAnimationListener()
protected boolean shouldAddDisplayListener()
protected boolean shouldAddControlListener()
public boolean getHaveInitialized()
protected java.awt.GraphicsConfiguration getGraphicsConfiguration(boolean is3D, boolean useStereo)
is3D
- use Java 3DuseStereo
- use stereo (id3D must be true)protected void applyAttributesToDisplayables() throws visad.VisADException, java.rmi.RemoteException
Displayable
-svisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void addAttributeFlags(int f)
f
- The flag (e.g., FLAG_COLORTABLE)protected void setAttributeFlags(int f)
f
- The value of the attribute flag mapprotected void reallySetAttributeFlags(int f)
f
- THe value of the attribute flag mapprotected boolean checkFlag(int f)
f
- The flag to checkprotected int getAttributeFlags()
protected void addAttributedDisplayable(Displayable d)
Displayable
to the list of attribute
displayables. Use this object's attributeFlags data member as the attribute
attributeFlags to use.d
- The Displayable
to addprotected void addAttributedDisplayable(Displayable d, int attributeFlags)
Displayable
to the list
of displayables. This is simply a
wrapper that passes in notGlobalFlags="0"d
- The Displayable
to addattributeFlags
- The set of attributes for this displayableprotected void addAttributedDisplayable(Displayable d, int attributeFlags, int notGlobalFlags)
d
- The Displayable
to addattributeFlags
- The set of attributes for this displayablenotGlobalFlags
- Attribute flags for this displayable but don't let
them effect the gui.protected void applyContourInfo() throws visad.VisADException, java.rmi.RemoteException
Displayable
s in the displayables
list that are flagged with the FLAG_CONTOURvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void applyColorScaleInfo() throws visad.VisADException, java.rmi.RemoteException
Displayable
s in the displayables
list that are flagged with the FLAG_COLORTABLEjava.rmi.RemoteException
- problem with remote displayvisad.VisADException
- problem with local displayprotected void colorUnitChanged(visad.Unit oldUnit, visad.Unit newUnit)
oldUnit
- The old color unitnewUnit
- The new color unitprotected void applyColorUnit() throws visad.VisADException, java.rmi.RemoteException
Displayable
s in the displayables
list that are flagged with the FLAG_COLORUNITvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void displayUnitChanged(visad.Unit oldUnit, visad.Unit newUnit)
oldUnit
- The old color unitnewUnit
- The new color unitpublic visad.Unit getRawDataUnit()
protected void applyDisplayUnit() throws visad.VisADException, java.rmi.RemoteException
Displayable
s in the displayables
list that are flagged with the FLAG_DISPLAYUNITvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected ColorTable getColorTableToApply()
protected void applyColorTable() throws visad.VisADException, java.rmi.RemoteException
Displayable
s in the displayables
list that are flagged with the FLAG_COLORTABLEvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic void resetDimness()
public void setColorDimmer() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setColorBrighter() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void applyColor() throws visad.VisADException, java.rmi.RemoteException
Displayable
s in the displayables
list that are flagged with the FLAG_COLORvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void applyRange() throws visad.VisADException, java.rmi.RemoteException
Displayable
s in the displayables
list that are flagged with the FLAG_COLORTABLEvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void applySelectRange() throws visad.VisADException, java.rmi.RemoteException
Displayable
s in the displayables
list that are flagged with the FLAG_SELECTRANGEvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void applyZPosition() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected void applyLineWidth() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic float[][] getColorTableForDisplayable(ColorTable ct)
ct
- The original color tablepublic void addToRangeMenu(RangeWidget rw, java.util.List items)
rw
- Range widgetitems
- List of menu itemspublic void addToRangeMenu(ColorTableWidget cw, java.util.List items)
cw
- the color table widgetitems
- List of menu itemspublic void addToRangeMenu(RangeDialog selectRangeWidget, java.util.List items)
selectRangeWidget
- the range dialog that has the itemsitems
- List of menu itemsprotected void parseProperties(java.lang.String properties)
properties
- Specification of the name=value properties.public void setInitialSettings(java.util.List settings)
settings
- the display settingspublic void applyProperties(java.util.Hashtable properties)
properties
- Specification of the name=value properties.public void applyDisplaySetting(DisplaySetting displaySetting) throws java.lang.Exception
displaySetting
- the settings to applyjava.lang.Exception
- problem setting settingspublic void applyPropertyValues(java.util.List props) throws java.lang.Exception
props
- list of property valuesjava.lang.Exception
- problem setting property valuespublic boolean getCanDoRemoveAll()
getCanDoRemoveAll
in interface DisplayControl
public void setCanDoRemoveAll(boolean v)
v
- The valuepublic boolean getShowNoteText()
public void setShowNoteText(boolean n)
n
- The value for the show note text flagpublic java.lang.String getNoteText()
public void setNoteText(java.lang.String n)
n
- The note textpublic void toggleNoteTextArea()
protected void redoGuiLayout()
public boolean isInTransectView()
protected void addNoteText(javax.swing.JPanel mainPanel, javax.swing.JComponent noteWrapper)
mainPanel
- Where to add the noteWrappernoteWrapper
- Holds the note text TextAreaprotected void setProperty(java.lang.String name, java.lang.Object value)
name
- Property namevalue
- Property valueprotected void addDisplayMaster(DisplayMaster s)
DisplayMaster
-s and calls destroy on them.s
- The DisplayMaster
to addprotected void addViewManager(ViewManager s)
ViewManager
-s
created and managed by them. When this DisplayControl is removed it runs
through all of the ViewManager-s and calls destroy on them.s
- The ViewManager
to addprotected void clearViewManagers()
public void addSharable(SharableImpl s)
SharableImpl
-s
created and managed by them.
When this DisplayControl is removed it runs through all of the
SharableImpl-s and calls removeSharable on them.s
- The SharableImpl
to addprotected void initializeWithNewData()
public final void displayChanged(visad.DisplayEvent event)
displayChanged
in interface visad.DisplayListener
event
- The eventpublic void handleDisplayChanged(visad.DisplayEvent event)
event
- The eventprotected boolean boundsClose(double a, double b)
a
- first valueb
- second valuepublic void controlChanged(visad.ControlEvent event)
controlChanged
in interface visad.ControlListener
event
- The eventprotected void checkBoundsChange()
protected long getControlChangeSleepTime()
public void viewpointChanged()
protected void loadDataFromViewBounds()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- The eventpublic void firstFrameDone()
firstFrameDone
in interface DisplayControl
public java.util.List getDataChoices()
DataChoice
-sgetDataChoices
in interface DisplayControl
public java.util.List getMyDataChoices()
DataChoice
-spublic java.util.List getInitDataChoices()
DataChoice
-s that this control
was originally create withpublic void setInitDataChoices(java.util.List l)
l
- List of original data choicespublic void setPersistedVisadData(java.util.List l)
l
- List of datapublic boolean addDataChoice(DataChoice c)
DataChoice
to the list of
data choices and return true if this is a new DataChoice.c
- The data choice to addpublic void removeDataChoice(DataChoice dataChoice)
DataChoice
from the myDataChoices
list. Tell the DataChoice to remove this object as a DataChangeListener
dataChoice
- The data choice to removepublic void setDataChoices(java.util.List newList)
newList
- New list of data choices.public void appendDataChoices(java.util.List newDataChoices)
DataChoice
-s
to the myDataChoices listnewDataChoices
- List to appendpublic DataChoice getDataChoice()
DataChoice
getDataChoice
in interface DisplayControl
public void dataChanged()
DataChangeListener
.dataChanged
in interface DataChangeListener
public void receiveShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data)
receiveShareData
in interface Sharable
receiveShareData
in class SharableImpl
from
- other class.dataId
- type of sharingdata
- Array of data being shared. In this case, the first
(and only?) object in the array is the levelprotected void resetData() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected void addNewData(java.util.List newChoices) throws visad.VisADException, java.rmi.RemoteException
newChoices
- List of new DataChoice
-sjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected boolean setData(java.util.List newChoices) throws visad.VisADException, java.rmi.RemoteException
This returns whether the data setting was successfull or not.
newChoices
- List of new DataChoice
-sjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- problem creating VisAD objectprotected boolean checkIfDataOk(DataInstance di) throws visad.VisADException, java.rmi.RemoteException
di
- The DataInstance
to checkvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected boolean setData(DataChoice dataChoice) throws visad.VisADException, java.rmi.RemoteException
Sets the data associated with this instance. This method gets called
at initialization or when the user has selected a new
DataChoice
through the data selector
control.
In order to implement subclasses of this class that behave correctly, you should know that this implementation uses overridable methods of this class in the following way:
DataInstance
object by invoking
doMakeDataInstance(DataChoice)
with the given data choice
argument. If the object is null
, then this implementation
immediately returns false
.
setDataInstance(DataInstance)
with the DataInstance
object from the previous step.setTitle(String)
with the return
value from getTitle()
.checkFlag(int)
with DisplayControlBase.FLAG_CONTOUR
returns
true
, then setContourInfo(ContourInfo)
is
invoked with the return value from getContourInfo()
.checkFlag(int)
with DisplayControlBase.FLAG_COLORTABLE
returns
true
, then
getRange()
returns null
or getHaveInitialized()
returns true
, then
setRange(Range)
is invoked with the return value from
getInitialRange()
if it is non-null
.
getHaveInitialized()
returns true
and
the private field colorTable
is
non-null
, then setColorTable(ColorTable)
is invoked with the private field (there doesn't appear to be
any way to obtain the private field); otherwise,
invokes setColorTable(ColorTable)
on the return value
from getInitialColorTable()
when given paramName
.
dataChoice
- The DataChoice
to use.visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected Range getInitialRange() throws java.rmi.RemoteException, visad.VisADException
Range
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected ColorTable getInitialColorTable()
DisplayConventions
to get the color table based on the paramNameprotected void revertToDefaultColorTable()
protected void revertToDefaultRange()
protected final ColorTable getOldColorTableOrInitialColorTable()
public void setCategories(java.util.List c)
c
- The list of DataCategory
spublic java.util.List getCategories()
getCategories
in interface DisplayControl
DataCategory
spublic void showWaitCursor()
public void showNormalCursor()
public void setDisplayName(java.lang.String displayName)
displayName
- The name to use for display purposespublic java.lang.String getPropertyDisplayName()
public java.lang.String getDisplayName()
setDisplayName(String)
method.public java.lang.String getDisplayId()
getDisplayId
in interface DisplayControl
public void setDisplayId(java.lang.String theId)
theId
- The idprotected void clearDataInstance()
protected void setDataInstance(DataInstance dataInstance)
dataInstance
- The data instance used by this controlpublic DataInstance getDataInstance()
public DataInstance getDataInstance(boolean forceCreation)
forceCreation
- if true, force it.public visad.Data getData(DataInstance dataInstance) throws visad.VisADException, java.rmi.RemoteException
dataInstance
- the dataInstancejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic visad.FieldImpl getGrid(GridDataInstance dataInstance) throws visad.VisADException, java.rmi.RemoteException
dataInstance
- the dataInstancejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic visad.FieldImpl getGrid(GridDataInstance dataInstance, boolean copy) throws visad.VisADException, java.rmi.RemoteException
dataInstance
- the dataInstancecopy
- make a copy of the fieldjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected GridDataInstance updateGridDataInstance(GridDataInstance dataInstance) throws visad.VisADException, java.rmi.RemoteException
dataInstance
- the grid data instancejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected DataInstance updateDataInstance(DataInstance dataInstance) throws visad.VisADException, java.rmi.RemoteException
dataInstance
- the dataInstance to updatejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected DataSelection updateDataSelection(DataSelection dataSelection) throws visad.VisADException, java.rmi.RemoteException
dataSelection
- the dataSelection to updatejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic void setDisplayAreaSubset(java.lang.String n)
n
- _more_public void setParamName(java.lang.String paramName)
paramName
- The parameter namepublic ControlContext getViewer()
IntegratedDataViewer
public void setViewer(ControlContext controlContext)
IntegratedDataViewer
controlContext
- The control contextpublic ViewContext getViewContext()
public ControlContext getControlContext()
IntegratedDataViewer
public IntegratedDataViewer getIdv()
IntegratedDataViewer
public DisplayConventions getDisplayConventions()
DisplayConventions
to use.public java.lang.String getLabel()
getLabel
in interface DisplayControl
public java.lang.String toString()
toString
in class java.lang.Object
public javax.swing.JFrame getWindow()
getWindow
in interface DisplayControl
protected java.lang.String getTitle()
getDisplayName()
method.public void setTitle(java.lang.String title)
title
- The titleprotected void updateLegendLabel()
protected void updateLegendAndList()
protected void updateDisplayList()
public visad.Data getDataForDisplayList()
getDataForDisplayList
in interface DisplayControl
protected visad.Data getDisplayListData()
public DisplayableData getDisplayListDisplayable(ViewManager view)
getDisplayListDisplayable
in interface DisplayControl
view
- the view that it will go intoprotected void setDisplayListProperties(DisplayableData d, ViewManager view) throws visad.VisADException, java.rmi.RemoteException
d
- the displayableview
- the view managerjava.rmi.RemoteException
- a Java RMI Exception occuredvisad.VisADException
- unable to set propertiespublic javax.swing.JComponent getLegendButtons(int legendType)
getLegendButtons
in interface DisplayControl
legendType
- type of legendprotected java.lang.String getShortParamName()
protected java.lang.String getLongParamName()
public java.util.List getDataSources()
protected void addLabelMacros(java.lang.String template, java.util.List patterns, java.util.List values)
template
- template for the labelpatterns
- The macro namesvalues
- The macro valuesprotected void getLegendLabels(java.util.List labels, int legendType)
labels
- A list that the labels are inserted intolegendType
- The type of legend, BOTTOM_LEGEND or SIDE_LEGENDprotected java.lang.String applyForecastHourMacro(java.lang.String t, visad.DateTime currentTime)
t
- label stringcurrentTime
- first timeprotected boolean hasForecastHourMacro(java.lang.String t)
t
- the string to checkpublic java.lang.String getMenuLabel()
DisplayControl
interfacegetMenuLabel
in interface DisplayControl
public void toFront()
toFront
in interface DisplayControl
protected boolean removeOnWindowClose()
public void guiImported()
public void guiExported()
protected IdvWindow createIdvWindow()
protected DisplayableData createDisplayListDisplayable(ViewManager view) throws visad.VisADException, java.rmi.RemoteException
view
- the view that this will be injava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- VisAD problemprotected void doMakeWindow() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected boolean isGuiShown()
protected javax.swing.JMenuBar doMakeMenuBar()
public void captureWindow()
protected void setMainPanelDimensions() throws java.lang.Exception
java.lang.Exception
- problem setting the dimensionspublic java.awt.Image getImage() throws java.lang.Exception
java.lang.Exception
- problem getting imagepublic ViewManager getViewManagerForCapture(java.lang.String what) throws java.lang.Exception
what
- The specification of the viewmanager (from the isl)java.lang.Exception
- on badnesspublic java.awt.Image getImage(java.lang.String what) throws java.lang.Exception
what
- description of what to getjava.lang.Exception
- problem getting imageprotected java.util.List doMakeMenuBarMenus(java.util.List menus)
menus
- List to add topublic XmlObjectStore getStore()
protected void handleWindowClosing()
public java.awt.Component getOuterContents()
public javax.swing.JComponent getMainPanel()
public void setMakeWindow(boolean value)
value
- The make window flagpublic boolean getMakeWindow()
public void setWindowSize(java.awt.Dimension value)
value
- The size of the windowpublic java.awt.Dimension getWindowSize()
public java.awt.Dimension getMainPanelSize()
public void setMainPanelSize(java.awt.Dimension s)
s
- the dimensions of the panelpublic void setWindowX(int x)
x
- The x location of the windowpublic int getWindowX()
public void setWindowY(int y)
y
- The y location of the windowpublic int getWindowY()
public void show()
show
in interface DisplayControl
public void toggleWindow()
toggleWindow
in interface DisplayControl
public void hide()
public void initWindow(IdvWindow window)
window
- The control's windowpublic boolean getWindowVisible()
public boolean shouldWindowBeVisible()
public void setWindowVisible(boolean v)
v
- Window visibilityprotected java.lang.String getChangeParameterLabel()
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
ControlContext
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
e
- The eventpublic boolean hasMapProjection()
public void reloadDataSource() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic void reloadDataSourceInThread() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected void getLastFileMenuItems(java.util.List items)
items
- the last items in the file menu.protected void getSaveMenuItems(java.util.List items, boolean forMenuBar)
items
- List of menu items to add intoforMenuBar
- if this is for the menubarpublic java.util.List getEditMenuItems(java.util.List items)
items
- List of menu itemspublic java.util.List getFileMenuItems(java.util.List items)
items
- List of menu itemspublic java.util.List getViewMenuItems(java.util.List items)
items
- List of menu itemsprotected void getEditMenuItems(java.util.List items, boolean forMenuBar)
items
- List of menu itemsforMenuBar
- Is this for the menu in the window's menu bar or
for a popup menu in the legendprotected boolean haveParameterDefaults()
public visad.Set getTimeSet() throws java.rmi.RemoteException, visad.VisADException
getTimeSet
in interface DisplayControl
java.rmi.RemoteException
- RMI exceptionvisad.VisADException
- Couldn't create time setprotected visad.Set getDataTimeSet() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected boolean haveDataTimes()
protected java.util.List findDisplays(java.lang.String key)
key
- the keyprotected java.util.List findDisplays(java.lang.String key, java.util.List displays)
key
- key to look fordisplays
- list of displayspublic void showProperties()
protected void addPropertiesComponents(javax.swing.JTabbedPane jtp)
jtp
- the JTabbedPane to add topublic void setDisplayListTimeZone(java.lang.String timeZoneStr)
timeZoneStr
- the new time zone nameprotected void addDisplaySettings(DisplaySettingsDialog dsd)
dsd
- the display settings dialogpublic void setLabelAsPreference(java.lang.Object[] obj)
obj
- list of objects defining the labelpublic void showDisplaySettingsDialog()
protected javax.swing.JPanel getSettingsPanel()
protected void addCheckBoxSettings(java.util.List comps, java.util.Hashtable methodNameToSettingsMap)
comps
- list of checkbox componentsmethodNameToSettingsMap
- hashtable of methods to checkboxpublic final boolean applyProperties()
public boolean doApplyProperties()
public void showContourPropertiesDialog()
public void showColorScaleDialog()
protected void getMacroNames(java.util.List names, java.util.List labels)
names
- List of macro nameslabels
- List of macro labelspublic void doExport(java.lang.String what, java.lang.String filename) throws java.lang.Exception
what
- What is to be written outfilename
- To what filejava.lang.Exception
- problem exportingpublic void saveAsParameterDefaults()
public void saveAsFavorite()
public void saveAsTemplate()
public void saveAsPrototype()
public void clearPrototype()
public void displayableToFront()
protected void getViewMenuItems(java.util.List items, boolean forMenuBar)
items
- List of menu itemsforMenuBar
- Is this for the menu in the window's menu bar or
for a popup menu in the legendprotected java.lang.String getDataProjectionLabel()
protected void getFileMenuItems(java.util.List items, boolean forMenuBar)
items
- List of menu itemsforMenuBar
- Is this for the menu in the window's menu bar or
for a popup menu in the legendpublic void saveDataChoiceInCache()
protected void getExtraMenus(java.util.List menus, boolean forMenuBar)
menus
- list of menus to populateforMenuBar
- Is this for the menu in the window's menu bar or
for a popup menu in the legendprotected void getHelpMenuItems(java.util.List items, boolean forMenuBar)
items
- List of menu itemsforMenuBar
- Is this for the menu in the window's menu bar or
for a popup menu in the legendpublic void showDetails()
public java.util.List getHelpIds()
public void showHelp()
If there is no help available it will popup a message to the user.
showHelp
in interface DisplayControl
public boolean isInViewManager()
public void saveImage(java.lang.String filename)
saveImage
in interface DisplayControl
filename
- The file to write the image topublic void writeTestArchive(java.lang.String archiveName)
writeTestArchive
in interface DisplayControl
archiveName
- The name of the archive we are writing topublic void projectionChanged()
projectionChanged
in interface DisplayControl
public void transectChanged()
transectChanged
in interface DisplayControl
public void viewManagerChanged(java.lang.String property)
viewManagerChanged
in interface DisplayControl
property
- The property that changedpublic visad.georef.MapProjection getDataProjectionForMenu()
public visad.georef.MapProjection getDataProjection()
getDataProjection
in interface DisplayControl
public visad.georef.LatLonPoint getDisplayCenter() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void setProjectionInView(boolean useViewPreference)
useViewPreference
- if true, will let the view decide if
preference to reset data is used or notprotected void setProjectionInView(boolean useViewPreference, boolean maintainViewpoint)
useViewPreference
- if true, will let the view decide if
preference to reset data is used or notmaintainViewpoint
- keep the same viewpointprotected void setProjectionInView(MapViewManager mvm, boolean useViewPreference, boolean maintainViewpoint)
useViewPreference
- if true, will let the view decide if
preference to reset data is used or notmaintainViewpoint
- keep the same viewpointprotected void centerOnDisplay()
public visad.georef.MapProjection getMapViewProjection()
protected void activateDisplays() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void deactivateDisplays() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected DisplayInfo findDisplayInfo(Displayable displayable)
displayable
- the displayable to search forDisplayInfo
public void removeDisplayable(Displayable displayable) throws java.rmi.RemoteException, visad.VisADException
Displayable
displayable
- displayable to removejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Problem in VisADprotected void removeDisplayables() throws java.rmi.RemoteException, visad.VisADException
DisplayInfo
-s, telling them to
removeDisplayable.visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void removeDisplayables(boolean andDestroyThem) throws java.rmi.RemoteException, visad.VisADException
DisplayInfo
-s, telling them to
removeDisplayable.andDestroyThem
- true to destroy themvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic void viewManagerDestroyed(ViewManager viewManager) throws visad.VisADException, java.rmi.RemoteException
viewManagerDestroyed
in interface DisplayControl
viewManager
- The view manager that was destroyedjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic void addRemovable(Removable removable)
removable
- the removeablepublic void doRemove() throws java.rmi.RemoteException, visad.VisADException
ControlContext
to removeDisplayControl.
Removes all Displayable-s from
their ViewManager-s, remove this object from its Sharable
group, and sets the visibility of the dialog window to false.doRemove
in interface DisplayControl
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic boolean getActive()
getActive
in interface DisplayControl
protected java.awt.Container doMakeContents() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void setContents(java.awt.Container c)
c
- The user interface contentsprotected java.awt.Container getContents()
public void resetViewManager(java.lang.String oldViewId, java.lang.String newViewId)
oldViewId
- old view idnewViewId
- new view idpublic void setDefaultView(java.lang.String s)
s
- The default viewpublic final java.util.List getCursorReadout(visad.georef.EarthLocation el, visad.Real animationValue, int animationStep, java.util.List<ReadoutInfo> samples) throws java.lang.Exception
getCursorReadout
in interface DisplayControl
el
- location of cursoranimationValue
- animation valueanimationStep
- animation stepsamples
- The list of samples returnedjava.lang.Exception
- problem getting at the dataprotected java.util.List getCursorReadoutInner(visad.georef.EarthLocation el, visad.Real animationValue, int animationStep, java.util.List<ReadoutInfo> samples) throws java.lang.Exception
el
- location of cursoranimationValue
- animation valueanimationStep
- animation stepsamples
- The list of samples returnedjava.lang.Exception
- problem getting at the dataprotected final java.util.List getCursorReadoutInner(visad.georef.EarthLocation el, visad.Real animationValue, int animationStep)
el
- the locationanimationValue
- the animation valueanimationStep
- the animation stepprotected java.lang.String formatForCursorReadout(visad.Real r) throws visad.VisADException, java.rmi.RemoteException
r
- the realjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic void setInitialViewManager(ViewManager viewManager)
viewManager
- The viewmanager to usepublic java.lang.String getDefaultView()
ViewManager
found
in the list of DisplayInfo
-s.public ViewManager getDefaultViewManager()
ViewManager
found
in the list of DisplayInfo
-s.getDefaultViewManager
in interface DisplayControl
public ViewDescriptor getDefaultViewDescriptor()
ViewDescriptor
to use.
This allows the IDV to find a ViewManager identified by this descriptorpublic ViewManager addDisplayable(Displayable d)
Displayable
into a
ViewManager
d
- The displayable to addViewManager
this Displayable
is added intopublic ViewManager addDisplayable(Displayable theDisplay, int attributeFlag)
theDisplay
- The Displayable
to addattributeFlag
- The attribute flag (e.g, FLAG_COLOR|FLAG_COLORTABLE)ViewManager
this Displayable
is added intopublic ViewManager addDisplayable(Displayable theDisplay, ViewManager viewManager, int flag)
Displayable
into the given
ViewManager
theDisplay
- The displayable to addviewManager
- The ViewManagerflag
- The attribute flag (e.g., FLAG_COLORTABLE) for this DisplayableViewManager
this Displayable is
added intopublic ViewManager addDisplayable(Displayable theDisplay, ViewDescriptor viewDescriptor, int flag)
theDisplay
- The displayable to addviewDescriptor
- The descriptorflag
- The attribute flag (e.g., FLAG_COLORTABLE) for this DisplayableViewManager
this Displayable is added intopublic ViewManager addDisplayable(Displayable theDisplay, ViewDescriptor viewDescriptor)
ViewManager
defined
by the given ViewDescriptor
.
Create a new DisplayInfo
that holds this DisplayControl, the given
Displayable
and the
looked up ViewManager. Add the DisplayInfo
to the list of DisplayInfo-stheDisplay
- The displayable to addviewDescriptor
- Describes the ViewManager in which to add the Displayablepublic DisplayInfo addDisplayable(Displayable theDisplay, ViewManager viewManager)
Displayable
into the
given ViewManager
theDisplay
- The Displayable to addviewManager
- The ViewManager in which the display is addedpublic java.util.List getDisplayInfos()
DisplayInfo
objects held by this control.protected javax.swing.JComponent doMakeWidgetComponent()
ControlWidget
(e.g., ColorTableWidget) and creates a gridded
ui with them.public void zSliderChanged(double value)
value
- slider valueprotected javax.swing.JSlider doMakeTextureSlider()
protected javax.swing.JComponent doMakeZPositionSlider()
protected java.lang.String getZPositionSliderLabel()
public void getControlWidgets(java.util.List<ControlWidget> controlWidgets) throws visad.VisADException, java.rmi.RemoteException
controlWidgets
- List of ControlWidget
s to add intovisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void addTimeModeWidget(java.util.List controlWidgets)
controlWidgets
- List to add topublic java.lang.String getColorWidgetLabel()
public java.lang.String getLineWidthWidgetLabel()
public java.lang.String getSkipWidgetLabel()
protected boolean isDisplayUnitAlsoColorUnit()
protected boolean setNewDisplayUnit(visad.Unit newUnit, boolean applyToDisplayable)
newUnit
- The new display unitapplyToDisplayable
- Should we call applyDisplayUnit();protected boolean setNewColorUnit(visad.Unit newUnit, boolean applyToDisplayable)
newUnit
- The new color unitapplyToDisplayable
- Apply this to the Displayables?protected visad.Unit getDisplayUnit(visad.Unit rawUnit)
DisplayConventions
class
is used to fidn out what unit to use.rawUnit
- The raw data unitpublic visad.Unit getDisplayUnit()
public void setSettingsDisplayUnit(visad.Unit newUnit)
newUnit
- the new unitprotected void setDisplayUnit(visad.Unit newUnit)
newUnit
- The new display unitpublic java.lang.String getDisplayUnitName()
public void setDisplayUnitName(java.lang.String name)
name
- The name to useprotected visad.Unit getDefaultDistanceUnit()
protected void setUnitForColor(visad.Unit newUnit)
newUnit
- The new color unitprotected visad.Unit getUnitForColor()
protected visad.Unit getColorUnit()
protected void setColorUnit(visad.Unit unit)
unit
- The color unitpublic java.lang.String getColorUnitName()
public void setColorUnitName(java.lang.String name)
name
- The name of the colorUnit. Try to create the unit.public void showTimeRangeDialog()
public void applyTimeRange()
protected void popupDataDialog(java.lang.String dialogMessage, java.awt.Component from)
dialogMessage
- The message to displayfrom
- What component clickedprotected void popupDataDialog(java.lang.String dialogMessage, java.awt.Component from, boolean multiples)
dialogMessage
- message for the dialogfrom
- the component that it is onmultiples
- can handle multiple selectionsprotected void popupDataDialog(java.lang.String dialogMessage, java.awt.Component from, boolean multiples, java.util.List categories)
dialogMessage
- message for the dialogfrom
- the component that it is onmultiples
- can handle multiple selectionscategories
- List of data categories. Ifprotected java.util.List<DataChoice> selectDataChoices(java.lang.String dialogMessage, java.awt.Component from, boolean multiples, java.util.List categories)
dialogMessage
- message for the dialogfrom
- the component that it is onmultiples
- can handle multiple selectionscategories
- List of data categories. Ifpublic DataSelection getDataSelection()
public void setDataSelection(DataSelection newDataSelection)
newDataSelection
- The new dataSelection memberprotected DataInstance doMakeDataInstance(DataChoice dataChoice) throws java.rmi.RemoteException, visad.VisADException
Creates and returns the DataInstance
corresponding to a DataChoice
.
Returns null
if the DataInstance
was somehow invalid.
This method is invoked by the overridable method setData(DataChoice)
.
dataChoice
- The DataChoice
from
which to create a
DataInstance
.DataInstance
or
null
.visad.VisADException
- if a VisAD Failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.protected java.util.Hashtable getRequestProperties()
DataChoice
protected void processRequestProperties()
protected void timeChanged(visad.Real time)
time
- new timepublic javax.swing.JComponent getLegendLabel(int legendType)
getLegendLabel
in interface DisplayControl
legendType
- type of legendpublic javax.swing.JComponent getLegendComponent(int legendType)
getLegendComponent
in interface DisplayControl
legendType
- type of legendprotected javax.swing.JComponent doMakeSideLegendComponent()
public javax.swing.JLabel makeLegendLabel()
makeLegendLabel
in interface DisplayControl
protected java.util.List makeChangeColorMenuItems()
protected void showLegendMenu(javax.swing.JComponent comp, java.awt.event.MouseEvent event)
comp
- The component the user clicked onevent
- The mouse eventpublic java.util.List getControlMenus(javax.swing.JComponent comp)
getControlMenus
in interface DisplayControl
comp
- the component to place the menus nearpublic void changeDisplayUnit()
public void changeColorUnit()
protected javax.swing.JMenu doMakeChangeColorMenu()
protected javax.swing.JMenu doMakeChangeColorMenu(java.lang.String name)
name
- name for the menuprotected javax.swing.JMenuItem doMakeChangeParameterMenuItem()
protected java.lang.String getLegendToolTip()
protected java.lang.String getDetailsContents()
public void debug(java.lang.String msg)
msg
- the messageprotected void getDebugDetails(java.lang.StringBuffer sb)
sb
- Buffer to append to.protected javax.swing.JComponent doMakeBottomLegendComponent()
protected boolean showColorScales(boolean show)
ColorScales
associated with this
DisplayControl.show
- true to show.protected void doMakeColorScales() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected ColorScaleInfo getDefaultColorScaleInfo()
public void moveTo(ViewManager newViewManager)
moveTo
in interface DisplayControl
newViewManager
- new ViewManager
to move topublic void setLegendForeground(java.awt.Color fg)
setLegendForeground
in interface DisplayControl
fg
- The new colorpublic void setLegendBackground(java.awt.Color bg)
setLegendBackground
in interface DisplayControl
bg
- The new colorprotected void showColorSwatches(boolean on)
on
- Visibility on or offprotected void notifyViewManagersOfChange()
public void setShowInDisplayList(boolean value)
value
- The new value for ShowInDisplayListpublic boolean getShowInDisplayList()
getShowInDisplayList
in interface DisplayControl
public boolean getLockVisibilityToggle()
getLockVisibilityToggle
in interface DisplayControl
public void setLockVisibilityToggle(boolean lockVisibilityToggle)
setLockVisibilityToggle
in interface DisplayControl
lockVisibilityToggle
- true to set locking visibility onpublic boolean getDisplayVisibility()
getDisplayVisibility
in interface DisplayControl
public void toggleVisibilityForVectorGraphicsRendering(int rasterMode) throws java.lang.Exception
toggleVisibilityForVectorGraphicsRendering
in interface DisplayControl
rasterMode
- the toggle modejava.lang.Exception
- problem togglingpublic boolean getIsRaster()
public void setIsRaster(boolean isRaster)
isRaster
- the valuepublic void setDisplayVisibility(boolean on)
setDisplayVisibility
in interface DisplayControl
on
- true to set visibility onprotected void setDisplayableVisiblity(Displayable d, boolean visible) throws java.rmi.RemoteException, visad.VisADException
d
- dvisible
- visiblevisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected boolean canSaveDataInCache()
protected void setDisplayableVisibility(Displayable d, boolean visible) throws java.rmi.RemoteException, visad.VisADException
Displayable
.
Used for maintaining the visibility of individual displayables
if there are multiple.d
- Displayable
in questionvisible
- true if it should be visible when the visibility
of the entire control is true.java.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the visibility in VisADpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
event
- The eventpublic void displayControlFailed()
public void close()
public void popup(java.awt.Component src)
src
- Component that we popup the window near. May be null.public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The action eventpublic boolean inGlobeDisplay()
public NavigatedDisplay getMapDisplay()
public boolean isDisplay3D()
public visad.DisplayRealType getDisplayAltitudeType()
public NavigatedDisplay getNavigatedDisplay()
NavigatedDisplay
of this control's
MapViewManager
.
This iterates through the list of DisplayInfo-s, finding the first one
that holds an instance of a MapViewManager. If not found this uses the
default MapViewManagergetNavigatedDisplay
in class DisplayControlBase
public void setDisplayInactive()
public void setDisplayActive()
public void xxxsetDisplayActive(boolean active) throws java.rmi.RemoteException, visad.VisADException
active
- Active or inactivejava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the visibility in VisADpublic MapViewManager getMapViewManager()
MapViewManager
this control displays in. This method
iterates through the list of DisplayInfo-s, finding the first one
that holds an instance of a MapViewManager. If not found this
returns the default MapViewManagerpublic DisplayMaster getDisplayMaster(Displayable displayable)
DisplayMaster
that displays the given Displayable
displayable
- The displayable to look forpublic ViewManager getViewManager(Displayable displayable)
ViewManager
which is displaying the given displayable.displayable
- The displayable to look forpublic ViewManager getViewManager()
ControlContext
,
the ViewManager
identified by the
ViewDescriptor
returned from
getDefaultViewDescriptor()
getViewManager
in interface DisplayControl
public ViewManager getViewManager(ViewDescriptor viewDescriptor)
viewDescriptor
- The view descriptor that identifies the view manager we wantpublic javax.swing.JCheckBox doMakeVisibilityControl(java.lang.String label)
doMakeVisibilityControl
in interface DisplayControl
label
- The label to use when creating the JCheckBoxpublic javax.swing.JButton doMakeRemoveControl(java.lang.String tooltip)
tooltip
- tooltip for the buttonpublic void showColorDialog()
public void showColorDialog(java.lang.String methodName)
methodName
- the method name to invokepublic void setColor(java.awt.Color c) throws java.rmi.RemoteException, visad.VisADException
c
- color to usejava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the color in VisADpublic java.awt.Color getColor()
public Range getRangeToApply() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic Range getRange() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error getting the range in VisADpublic Range getSelectRange() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error getting the range in VisADpublic Range getRangeForColorTable() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error getting the range in VisADpublic void setRange(java.lang.String whichColortable, Range newRange) throws java.rmi.RemoteException, visad.VisADException
whichColortable
- Defines which color table to use. Default is the main one.newRange
- The valuejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setColorTable(java.lang.String whichColorTable, ColorTable newColorTable) throws java.rmi.RemoteException, visad.VisADException
whichColorTable
- Defines which color table to use. Default is the main one.newColorTable
- The new colortablejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void revertToDefaultColorTable(java.lang.String whichColorTable)
whichColorTable
- Which one. Default is the main one.protected void revertToDefaultRange(java.lang.String whichColorTable)
whichColorTable
- Which one. Default is the main one.public void setRange(Range newRange) throws java.rmi.RemoteException, visad.VisADException
newRange
- range to usejava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the range in VisADpublic void setSelectRange(Range newRange) throws java.rmi.RemoteException, visad.VisADException
newRange
- range to usejava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the range in VisADpublic void setColorTableName(java.lang.String n)
n
- The name of the color tablepublic void setColorTable(ColorTable newColorTable) throws java.rmi.RemoteException, visad.VisADException
ColorTable
property.newColorTable
- The new value for ColorTablejava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the color table in VisADpublic ColorTable getColorTable()
ColorTable
property.public void setDisplayListColor(java.awt.Color newColor) throws java.rmi.RemoteException, visad.VisADException
newColor
- The new colorjava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the color in VisADprotected void setDisplayListColor(java.awt.Color newColor, boolean fromUser) throws java.rmi.RemoteException, visad.VisADException
newColor
- The new colorfromUser
- true if this is from the userjava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the color in VisADpublic java.awt.Color getDisplayListColor()
protected javax.swing.JComponent getExtraLegendComponent(int legendType)
legendType
- type of legendpublic ColorTableWidget getColorTableWidget(Range r) throws visad.VisADException, java.rmi.RemoteException
r
- range for the color tablejava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the color table range in VisADpublic SelectRangeWidget getSelectRangeWidget(Range r) throws visad.VisADException, java.rmi.RemoteException
r
- range for the color tablejava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the color table range in VisADpublic ValueSliderWidget getLineWidthWidget() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the color table range in VisADpublic java.awt.Component doMakeColorControl()
doMakeColorControl(Color)
public java.awt.Component doMakeColorControl(java.awt.Color color)
color
- defaultpublic double getVerticalValue(double value)
value
- value to scale to vertical coordinatespublic void setHelpUrl(java.lang.String helpUrl)
helpUrl
- URL for the help.public boolean getProperty(java.lang.String name, boolean dflt)
name
- property namedflt
- default valuepublic java.lang.String getProperty(java.lang.String name, java.lang.String dflt)
name
- property namedflt
- default valuepublic XmlObjectStore getObjectStore()
public void setOkToFireEvents(boolean v)
v
- true if okay.public boolean getOkToFireEvents()
public void setContourInfoParams(java.lang.String s)
s
- The param string.public void setContourInfo(ContourInfo newInfo) throws visad.VisADException, java.rmi.RemoteException
newInfo
- the new contour informationjava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the contour info in VisADpublic ContourInfo getContourInfo()
public void setSharedColorScaleInfo(ColorScaleInfo newInfo) throws visad.VisADException, java.rmi.RemoteException
newInfo
- the new informationjava.rmi.RemoteException
- remote problemvisad.VisADException
- VisAD problempublic void setColorScaleInfo(ColorScaleInfo newInfo) throws visad.VisADException, java.rmi.RemoteException
newInfo
- the new contour informationjava.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error setting the contour info in VisADpublic ColorScaleInfo getColorScaleInfo()
public java.util.Hashtable getCachedData()
public void setCachedData(java.util.Hashtable cache)
cache
- Data cachepublic void setDataInstances(java.util.List l)
DataInstances
for this
DisplayControl. May be null.l
- List
of DataInstances
public float getDisplayScale() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- problem determining scalejava.rmi.RemoteException
- problem determining scale for remote displaypublic java.lang.String getDefaultSamplingMode()
public void setDefaultSamplingMode(java.lang.String newMode)
newMode
- String name of sampling modepublic int getSamplingModeValue()
public int getSamplingModeValue(java.lang.String samplingMode)
samplingMode
- String name of sampling modepublic java.lang.String getSamplingModeName(int mode)
mode
- String name of sampling modepublic int getDefaultSamplingModeValue()
public void setDisplayCategory(java.lang.String value)
setDisplayCategory
in interface DisplayControl
value
- The new value for the display category.public java.lang.String getDisplayCategory()
getDisplayCategory
in interface DisplayControl
public java.util.List getViewManagers()
List
of view managers associated with this
DisplayControl's Displayables.public void setColorScaleVisible(boolean viz) throws visad.VisADException, java.rmi.RemoteException
viz
- true for color scales to be visiblejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setHadDataChoices(boolean value)
value
- The new value for HadDataChoicespublic boolean getHadDataChoices()
public void setOriginalDataChoicesLabel(java.lang.String s)
s
- the namepublic java.lang.String getOriginalDataChoicesLabel()
public void setTemplateName(java.lang.String value)
value
- The new value for TemplateNamepublic java.lang.String getTemplateName()
public void setNameFromUser(java.lang.String value)
value
- The new value for NameFromUserpublic void setName(java.lang.String value)
value
- The new value for Namepublic void setId(java.lang.String value)
value
- The new value for Namepublic java.lang.String getId()
public void setCollapseLegend(boolean value)
setCollapseLegend
in interface DisplayControl
value
- The new value for collapsedLegendpublic boolean getCollapseLegend()
getCollapseLegend
in interface DisplayControl
public java.lang.Object getTransientProperty(java.lang.Object key)
getTransientProperty
in interface DisplayControl
key
- The keypublic void putTransientProperty(java.lang.Object key, java.lang.Object value)
putTransientProperty
in interface DisplayControl
key
- The keyvalue
- The valuepublic void applyPreferences()
applyPreferences
in interface DisplayControl
public void setZPosition(double value) throws java.rmi.RemoteException, visad.VisADException
value
- The new value for ZPositionjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic void setZPosition(double value, boolean fromSlider) throws java.rmi.RemoteException, visad.VisADException
value
- the valuefromSlider
- true if from sliderjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic void setLineWidth(int value) throws java.rmi.RemoteException, visad.VisADException
value
- The new value for line widthjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic int getLineWidth()
protected double getInitialZPosition()
public double getZPosition()
protected void updateAnimation()
public Animation getSomeAnimation() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnesspublic Animation getAnimation() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnessprotected Animation getAnimation(boolean createOurOwn) throws visad.VisADException, java.rmi.RemoteException
createOurOwn
- If true then we create our own. Else we
get it from the ViewManager we are displayed in.java.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnessprotected Animation getAnimation(visad.RealType timeType) throws visad.VisADException, java.rmi.RemoteException
timeType
- The time typejava.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnessprotected Animation getAnimation(boolean createOurOwn, visad.RealType timeType) throws visad.VisADException, java.rmi.RemoteException
createOurOwn
- If true then we create our own. Else we
get it from the ViewManager we are displayed in.timeType
- Time typejava.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnesspublic Animation getViewAnimation() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnessprotected Animation getInternalAnimation() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnessprotected Animation getInternalAnimation(visad.RealType timeType) throws visad.VisADException, java.rmi.RemoteException
timeType
- The realtype of the time setjava.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnesspublic AnimationWidget getAnimationWidget() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On Badnessvisad.VisADException
- On Badnesspublic boolean isInitDone()
isInitDone
in interface DisplayControl
public void setShowInLegend(boolean value)
value
- The new value for ShowInLegendpublic boolean getShowInLegend()
getShowInLegend
in interface DisplayControl
protected boolean shouldApplyFastRendering()
protected boolean getDefaultFastRendering()
protected boolean getInitialFastRendering()
public void setUseFastRendering(boolean value)
value
- The new value for UseFastRenderingpublic boolean getUseFastRendering()
protected void setAnimationSet(java.util.List dateTimes) throws visad.VisADException, java.rmi.RemoteException
dateTimes
- List of DateTime objectsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setAnimationInfo(AnimationInfo value)
value
- The new value for AnimationInfopublic AnimationInfo getAnimationInfo()
protected javax.swing.JButton makeLockButton()
protected void updateLockButton(javax.swing.JButton lockBtn)
lockBtn
- The button.protected javax.swing.JButton makeRemoveButton()
public void setViewManagerClassNames(java.lang.String value)
value
- The new value for ViewManagerClassespublic java.lang.String getViewManagerClassNames()
public void setColorDimness(float value)
value
- The new value for ColorDimnesspublic float getColorDimness()
public void setDataTimeRange(DataTimeRange value)
value
- The new value for DataTimeRangepublic DataTimeRange getDataTimeRange()
public DataTimeRange getDataTimeRange(boolean createIfNeeded)
createIfNeeded
- If true then create itpublic void setUseTimesInAnimation(boolean value)
value
- The new value for UseTimesInAnimationpublic boolean getUseTimesInAnimation()
public Range convertColorRange(Range rawRange, visad.Unit rawUnit)
rawRange
- Raw data rangerawUnit
- the raw unit for the rangepublic Range convertRange(Range rawRange, visad.Unit rawUnit, visad.Unit outUnit)
rawRange
- Raw data rangerawUnit
- the raw unit for the rangeoutUnit
- the converted unitpublic void setExpandedInTabs(boolean value)
setExpandedInTabs
in interface DisplayControl
value
- The new value for ExpandedInTabspublic boolean getExpandedInTabs()
getExpandedInTabs
in interface DisplayControl
public void setShowInTabs(boolean value)
setShowInTabs
in interface DisplayControl
value
- The new value for ShowInTabspublic boolean getShowInTabs()
getShowInTabs
in interface DisplayControl
public boolean shouldBeDocked()
shouldBeDocked
in interface DisplayControl
public boolean canBeDocked()
canBeDocked
in interface DisplayControl
public void setVersion(double value)
value
- The new value for Versionpublic double getVersion()
protected boolean getWasUnPersisted()
public void setDisplayListTemplate(java.lang.String value)
value
- The new value for DisplayListTemplatepublic java.lang.String getDisplayListTemplate()
protected java.lang.String getDefaultDisplayListTemplate()
public void setLegendLabelTemplate(java.lang.String value)
value
- The new value for LegendLabelpublic java.lang.String getLegendLabelTemplate()
public void setLegendLabel(java.lang.String label)
label
- The labelpublic void setExtraLabelTemplate(java.lang.String value)
value
- The new value for ExtraLabelTemplatepublic java.lang.String getExtraLabelTemplate()
public void setSelectRangeEnabled(boolean value)
value
- The new value for SelectRangeEnabledpublic boolean getSelectRangeEnabled()
public boolean canExportData()
protected visad.Data getDisplayedData() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- problem getting remote datavisad.VisADException
- problem getting local datapublic void exportDisplayedData(java.lang.String type)
type
- type of dataprotected boolean useZPosition()
protected void applySkipFactor()
public void setSkipValue(int value)
value
- new skip valuepublic int getSkipValue()
protected java.awt.Component doMakeSkipFactorSlider()
protected void checkImageSize(visad.FieldImpl image)
image
- The imagepublic void setComponentHolder(IdvComponentHolder value)
value
- The new value for ComponentHolderpublic IdvComponentHolder getComponentHolder()
public boolean showColorControlWidget()
public void setDoCursorReadout(boolean value)
value
- The new value for DoCursorReadoutpublic boolean getDoCursorReadout()
public void setTextureQuality(int quality)
quality
- 1=high, > 1 lowerpublic int getTextureQuality()
public java.lang.String getTextureQualityLabel()
protected void applyTextureQuality() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorprotected void applySmoothing() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic boolean useSmoothingFactor()
public int getSmoothingFactor()
public java.lang.String getSmoothingType()
public void setSmoothingFactor(int val)
val
- the new smoothing factorpublic void setSmoothingType(java.lang.String type)
type
- the new smoothing typepublic void setPointSize(float value)
value
- The new value for PointSizepublic float getPointSize()
public javax.swing.JComponent doMakePointSizeWidget()
public void setVisbilityAnimationPause(int value)
value
- The new value for VisbilityAnimationPausepublic int getVisbilityAnimationPause()
getVisbilityAnimationPause
in interface DisplayControl
public void setIsTimeDriver(boolean value)
value
- The new value for IsTimeDriverpublic boolean getIsTimeDriver()
getIsTimeDriver
in interface DisplayControl
public void setUsesTimeDriver(boolean value)
value
- The new value for UsesTimeDriverpublic boolean getUsesTimeDriver()
public void relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds, ucar.unidata.geoloc.LatLonRect newBounds)
originalBounds
- The original bounds of the datasourcenewBounds
- The relocated bounds of the datasourcepublic void relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds, ucar.unidata.geoloc.LatLonRect newBounds, boolean useDataProjection)
originalBounds
- The original bounds of the datasourcenewBounds
- The relocated bounds of the datasourcepublic ucar.unidata.geoloc.LatLonPoint[] getLatLonPoints(double[][] xyPoints)
xyPoints
- _more_public boolean getShoulDoProgressiveResolution()
protected boolean canDoProgressiveResolution()
public boolean getIsProgressiveResolution()
public void setIsProgressiveResolution(boolean isPG)
isPG
- _more_public boolean getMatchDisplayRegion()
public void setMatchDisplayRegion(boolean useDR)
useDR
- true if match display regionpublic void saveProjection()