|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
public abstract class DisplayControlImpl
This is the main base class for all DisplayControls.
| Nested Class Summary | |
|---|---|
static class |
DisplayControlImpl.SideLegendLabel
Class SideLegendLabel Does the underline |
| Field Summary | |
|---|---|
protected 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 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 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 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 String |
DISPLAY_LIST_NAME
The name for the text type for the display list. |
protected 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 List |
displayMasters
Holds the DisplayMaster-s that this control
wholly owns (e.g., profile display master). |
protected Unit |
displayUnit
The Unit (may be null) that is used to display data. |
protected String |
helpUrl
The url to show help for this control. |
protected 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. |
protected JTextArea |
noteTextArea
The text area widget used for the control text notes |
protected JComponent |
noteWrapper
The Container that holds the noteTextArea. |
protected String |
paramName
The name of the parameter (if there is one) |
protected Hashtable |
requestProperties
A hashtable that is used to hold extra properties that are passed to the DataChoice through
the getData called. |
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 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 JSlider |
skipSlider
slider for setting skip values |
protected double |
version
version |
protected List |
viewManagers
Holds the ViewManager-s that
this control has created. |
protected static double |
ZFUDGE
fudge factor for the Z position |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
DisplayControlImpl()
Default constructor. |
|
DisplayControlImpl(ControlContext controlContext)
Create a DisplayControlImple from a ControlContext |
|
| Method Summary | |
|---|---|
void |
actionPerformed(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(List comps,
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)
Add the given Displayable into the
ViewManager identified by
the given ViewDescriptor |
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(String template,
List patterns,
List values)
Add any macro name/value pairs. |
protected void |
addNewData(List newChoices)
Called when the user chooses new data for this display |
protected void |
addNoteText(JPanel mainPanel,
JComponent noteWrapper)
Insert the given noteWrapper (which holds the note text TextArea) into the gui |
protected void |
addPropertiesComponents(JTabbedPane jtp)
Add tabs to the properties dialog. |
void |
addPropertyChangeListener(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(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,
List items)
Deprecated. use #addToRangeMenu(RangeWidget) |
void |
addToRangeMenu(RangeDialog selectRangeWidget,
List items)
Deprecated. use #addToRangeMenu(RangeWidget) |
void |
addToRangeMenu(RangeWidget rw,
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(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 Displayables 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 Displayables 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 Displayables 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 Displayables 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 Displayables 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 Displayables in the displayables
list that are flagged with the FLAG_DISPLAYUNIT |
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(Hashtable properties)
|
void |
applyPropertyValues(List props)
Apply the property values in the list |
protected void |
applyRange()
Apply the range it to the Displayables in the displayables
list that are flagged with the FLAG_COLORTABLE |
protected void |
applySelectRange()
Apply the range it to the Displayables 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 |
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 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(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(Unit oldUnit,
Unit newUnit)
A hook that is called when the color unit is changed. |
void |
controlChanged(ControlEvent event)
Noop for the ControlListener interface |
Range |
convertColorRange(Range rawRange,
Unit rawUnit)
Utility to convert the given raw data range into the display units |
Range |
convertRange(Range rawRange,
Unit rawUnit,
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(String msg)
Debug |
void |
displayableToFront()
Move the displayable to the front |
void |
displayChanged(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(Unit oldUnit,
Unit newUnit)
A hook that is called when the display unit is changed. |
boolean |
doApplyProperties()
Apply the properties |
void |
doExport(String what,
String filename)
Called by ISL. |
protected void |
doInitialUpdateLegendAndList()
Do the initial update legend and list |
protected JComponent |
doMakeBottomLegendComponent()
Create and return the gui component which is used to display this DisplayControl in the "legend" area of its ViewManager. |
protected JMenu |
doMakeChangeColorMenu()
Utility to make the menu item for changing the color. |
protected JMenu |
doMakeChangeColorMenu(String name)
Utility to make the menu item for changing the color. |
protected JMenuItem |
doMakeChangeParameterMenuItem()
Utility to make the menu item for changing the data choice |
Component |
doMakeColorControl()
A wrapper around doMakeColorControl (Color color), passing in null as the Color argument. |
Component |
doMakeColorControl(Color color)
This creates a gui control for selecting a Color. |
protected void |
doMakeColorScales()
Actually create the color scales |
protected Container |
doMakeContents()
Make Gui contents |
protected DataInstance |
doMakeDataInstance(DataChoice dataChoice)
Creates and returns the DataInstance
corresponding to a DataChoice. |
protected JMenuBar |
doMakeMenuBar()
Make the menu bar |
protected List |
doMakeMenuBarMenus(List menus)
Make the menus to put in the menu bar |
JComponent |
doMakePointSizeWidget()
Make the point size widget |
JButton |
doMakeRemoveControl(String tooltip)
Create the gui control (a JButton) that allows the user to remove this DisplayControl. |
protected JComponent |
doMakeSideLegendComponent()
Create and return the gui component which is used to display this DisplayControl in the "legend" area of its ViewManager. |
protected Component |
doMakeSkipFactorSlider()
Make the skip factor slider. |
protected JSlider |
doMakeTextureSlider()
Make a slider for the texture quality |
JCheckBox |
doMakeVisibilityControl(String label)
Get the toggle button JCheckBox that is source for item listener events to toggle visibility of the display. |
protected 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 JComponent |
doMakeZPositionSlider()
Create the z position slider panel |
void |
doRemove()
Remove this DisplayControl. |
void |
exportDisplayedData(String type)
Export displayed data to file |
protected DisplayInfo |
findDisplayInfo(Displayable displayable)
Find the DisplayInfo for a displayable |
protected List |
findDisplays(String key)
Find displays based on the key |
protected List |
findDisplays(String key,
List displays)
Find displays with the particular key in the list of displays |
protected void |
firePropertyChangeEvent(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 String |
formatForCursorReadout(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,
RealType timeType)
Get the Animation for this display. |
protected Animation |
getAnimation(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 |
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. |
List |
getCategories()
Returns the list of data categories. |
protected 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. |
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 Unit |
getColorUnit()
Return the colorUnit The get and set methods here are protected so the XmlEncoder will not try to encode them. |
String |
getColorUnitName()
This is used for xml persistence. |
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 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 |
List |
getControlMenus(JComponent comp)
Get the list of menus associated with this control. |
void |
getControlWidgets(List<ControlWidget> controlWidgets)
Add into the given the widgets for the different attributes |
List |
getCursorReadout(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
Get the list of items for the cursor readout |
protected List |
getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep)
The getCursorReadout method that really does the work |
protected List |
getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
Get the list of items, subclasses should override |
Data |
getData(DataInstance dataInstance)
A wrapper around dataInstance.getData but this calls updateDataInstance first |
DataChoice |
getDataChoice()
Return the single DataChoice |
List |
getDataChoices()
Return the list of current DataChoice-s |
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 |
MapProjection |
getDataProjection()
get MapProjection of data to display |
MapProjection |
getDataProjectionForMenu()
Get the MapProjection for this data; if have a single point data object make synthetic map projection for location |
protected String |
getDataProjectionLabel()
Get the data projection label |
DataSelection |
getDataSelection()
This is used for xml persistence. |
protected List |
getDataSources()
Get the DataSources associated with this contol |
DataTimeRange |
getDataTimeRange()
Get the DataTimeRange property. |
DataTimeRange |
getDataTimeRange(boolean createIfNeeded)
Get the DataTimeRange property. |
protected Set |
getDataTimeSet()
Collect the time animation set from the displayables. |
protected void |
getDebugDetails(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 String |
getDefaultDisplayListTemplate()
Get the default display list template for this control. |
protected Unit |
getDefaultDistanceUnit()
Get the default distance unit |
protected boolean |
getDefaultFastRendering()
Get the default for fast rendering |
String |
getDefaultSamplingMode()
Get the perferred sampling mode. |
int |
getDefaultSamplingModeValue()
Get the integer value of the default sampling mode |
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 String |
getDetailsContents()
Get the contents of the details html |
DisplayRealType |
getDisplayAltitudeType()
Utility method to get the altitude type of the display |
String |
getDisplayCategory()
This is the category that is defined for this control. |
LatLonPoint |
getDisplayCenter()
Get the center of the display |
DisplayConventions |
getDisplayConventions()
Get the DisplayConventions to use. |
protected Data |
getDisplayedData()
Get the DisplayedData |
String |
getDisplayId()
The id of this control (from controls.xml) We have this here for xml persistence |
List |
getDisplayInfos()
Return the list of DisplayInfo
objects held by this control. |
Color |
getDisplayListColor()
Get the DisplayListColor property. |
protected Data |
getDisplayListData()
Add the data to the in display legend |
DisplayableData |
getDisplayListDisplayable(ViewManager view)
Get the displayable for the Display List |
String |
getDisplayListTemplate()
Get the DisplayListTemplate property. |
DisplayMaster |
getDisplayMaster(Displayable displayable)
A helper method for finding the DisplayMaster
that displays the given Displayable |
String |
getDisplayName()
Returns the name of this display. |
float |
getDisplayScale()
Get the scaling factor for probes and such. |
Unit |
getDisplayUnit()
Return the display unit |
protected Unit |
getDisplayUnit(Unit rawUnit)
Returns the default display unit to be used. |
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. |
List |
getEditMenuItems(List items)
Add the relevant edit menu items into the list |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
Add the relevant edit menu items into the list |
boolean |
getExpandedInTabs()
Get the ExpandedInTabs property. |
String |
getExtraLabelTemplate()
Get the ExtraLabelTemplate property. |
protected 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(List menus,
boolean forMenuBar)
Get any extra menus for this control. |
List |
getFileMenuItems(List items)
Add the relevant edit menu items into the list |
protected void |
getFileMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
protected GraphicsConfiguration |
getGraphicsConfiguration(boolean is3D,
boolean useStereo)
Get the graphics configuration |
FieldImpl |
getGrid(GridDataInstance dataInstance)
A wrapper around dataInstance.getGrid but this calls updateDataInstance first |
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 |
List |
getHelpIds()
Return the list of (String) java help ids |
protected void |
getHelpMenuItems(List items,
boolean forMenuBar)
Add the help menu items |
String |
getId()
Get the Id property. |
IntegratedDataViewer |
getIdv()
Get the integraed data viewer that this is part of |
Image |
getImage()
Get the image |
Image |
getImage(String what)
Get the image of "what" |
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(RealType timeType)
Create if needed and return an Animation |
boolean |
getIsRaster()
Is this a raster display? |
boolean |
getIsTimeDriver()
Get the IsTimeDriver property. |
String |
getLabel()
Used by the idv classes |
protected void |
getLastFileMenuItems(List items)
Get last file menu items. |
JComponent |
getLegendButtons(int legendType)
Set the legend buttons |
JComponent |
getLegendComponent(int legendType)
Return the gui component used to display this DisplayControl within a ViewManager. |
JComponent |
getLegendLabel(int legendType)
This is the main JLabel used in the legend. |
protected void |
getLegendLabels(List labels,
int legendType)
This method is used to get all of the labels (String) that are shown in the side legend. |
String |
getLegendLabelTemplate()
Get the LegendLabel property. |
protected 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 |
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 String |
getLongParamName()
Get the long parameter name |
protected void |
getMacroNames(List names,
List labels)
Add any macro name/label pairs |
JComponent |
getMainPanel()
Get the component for the main panel of this DisplayControlImpl's contents. |
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. |
MapProjection |
getMapViewProjection()
Get the projection from the main display. |
String |
getMenuLabel()
Return the label used for the menues in the IDV. |
List |
getMyDataChoices()
Deprecated. Use getDataChoices |
NavigatedDisplay |
getNavigatedDisplay()
A helper method for finding the NavigatedDisplay of this control's
MapViewManager. |
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. |
String |
getOriginalDataChoicesLabel()
Get the name of the data choice, if there is one, when we are saving off without data |
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(String name,
boolean dflt)
Wrapper around ControlContext.getProperty method |
String |
getProperty(String name,
String dflt)
Wrapper around ControlContext.getProperty method |
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 |
Unit |
getRawDataUnit()
Get the raw data unit. |
protected Hashtable |
getRequestProperties()
Create (if null) and return the Hashtable that holds the extra request properties used in a getData call on the DataChoice |
String |
getSamplingModeName(int mode)
Get the name of the sampling mode |
int |
getSamplingModeValue()
Get the sampling mode |
int |
getSamplingModeValue(String samplingMode)
Get the integer value for the sampling mode supplied |
protected void |
getSaveMenuItems(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 JPanel |
getSettingsPanel()
Get the settings panel |
protected String |
getShortParamName()
Get the short parameter name |
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 |
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 |
String |
getSmoothingType()
Get the smoothing type |
Animation |
getSomeAnimation()
Get some animation. |
XmlObjectStore |
getStore()
Get the object store |
String |
getTemplateName()
Get the TemplateName property. |
int |
getTextureQuality()
Get the texture quality |
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, |
Set |
getTimeSet()
Get the time set |
protected String |
getTitle()
Returns the window title. |
Object |
getTransientProperty(Object key)
Find a property on the display control. |
protected 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)
Get, from the ControlContext,
the ViewManager identified by the
given ViewDescriptor |
String |
getViewManagerClassNames()
Get the ViewManagerClasses property. |
ViewManager |
getViewManagerForCapture(String what)
Allows a derived class to provide its own viewmanager wehn capturing an image of the display from isl |
List |
getViewManagers()
Method to get a list of ViewManagers that are applicable to this DisplayControl. |
List |
getViewMenuItems(List items)
Add the relevant view menu items into the list |
protected void |
getViewMenuItems(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 |
JFrame |
getWindow()
Return the control's JFrame |
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 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(DisplayEvent event)
Allow sub-classes to get displayevents |
protected void |
handleWindowClosing()
Handle the window closing. |
boolean |
hasMapProjection()
Does this display have a map projection |
protected boolean |
hasTimeMacro(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(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(List choices)
Initialize this instance according to the first DataChoice in a List. |
void |
init(String displayId,
List categories,
List choices,
ControlContext controlContext,
Hashtable properties,
DataSelection dataSelection)
This init method is the one actually called by the IDV. |
void |
init(String displayId,
List categories,
List choices,
ControlContext controlContext,
String properties,
DataSelection dataSelection)
Deprecated. use init that takes a properties Hashtable |
void |
initAfterUnPersistence(ControlContext vc,
Hashtable properties)
Called by the IntegratedDataViewer to
initialize after this control has been unpersisted |
void |
initAfterUnPersistence(ControlContext vc,
Hashtable properties,
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(String displayId,
List categories,
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(ItemEvent event)
A no-op method to implement the ItemListener interface. |
protected List |
makeChangeColorMenuItems()
Add the list of menu items for changing the color to the component (usually a menu or popup menu) |
JLabel |
makeLegendLabel()
make the legend label |
protected JButton |
makeLockButton()
Create a lock button for the given display control. |
protected 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(String properties)
The given properties String is a ";" delimited list of name=value properties. |
void |
popup(Component src)
Show the dialog window for this control. |
protected void |
popupDataDialog(String dialogMessage,
Component from)
Create and show the data choosing dialog |
protected void |
popupDataDialog(String dialogMessage,
Component from,
boolean multiples)
Popup a DataTreeDialog |
protected void |
popupDataDialog(String dialogMessage,
Component from,
boolean multiples,
List categories)
Popup a DataTreeDialog |
protected void |
processRequestProperties()
Process request properties from a DataChoice |
void |
projectionChanged()
Method to call if projection changes. |
void |
propertyChange(PropertyChangeEvent evt)
Handle animation change events |
void |
putTransientProperty(Object key,
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,
Object dataId,
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 |
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(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(String oldViewId,
String newViewId)
Reset the view manager |
protected void |
revertToDefaultColorTable()
Reset the color table to the initial color table |
protected void |
revertToDefaultColorTable(String whichColorTable)
Revert to the default |
protected void |
revertToDefaultRange()
Reset the range to the initial range |
protected void |
revertToDefaultRange(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(String filename)
Find the first ViewManager in the list of DisplayInfo-s and have the ViewManager write its image to to given filename. |
protected List<DataChoice> |
selectDataChoices(String dialogMessage,
Component from,
boolean multiples,
List categories)
Popup a DataTreeDialog |
void |
setAnimationInfo(AnimationInfo value)
Set the AnimationInfo property. |
protected void |
setAnimationSet(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(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(List c)
A set method so the categories list will get persisted. |
void |
setCollapseLegend(boolean value)
Set the collapsed legend property. |
void |
setColor(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(String whichColorTable,
ColorTable newColorTable)
Set the color table from the colortablewidget |
void |
setColorTableName(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(Unit unit)
Set the colorUnit |
void |
setColorUnitName(String name)
This is used for xml persistence. |
void |
setComponentHolder(IdvComponentHolder value)
Set the ComponentHolder property. |
protected void |
setContents(Container c)
Set the gui contents |
void |
setContourInfo(ContourInfo newInfo)
Set the contour parameters for any contours |
void |
setContourInfoParams(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(List newChoices)
Gets called when the user has selected a new DataChoice. |
void |
setDataChoices(List newList)
Set the list of data choices to be the given list |
protected void |
setDataInstance(DataInstance dataInstance)
Set the data instance. |
void |
setDataInstances(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(String newMode)
Set sampling mode. |
void |
setDefaultView(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 |
setDisplayCategory(String value)
This is the category that is defined for this control. |
void |
setDisplayId(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(Color newColor)
Set the display list color property. |
protected void |
setDisplayListColor(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(String value)
Set the DisplayListTemplate property. |
void |
setDisplayName(String displayName)
What is the name of this control (e.g., "Plan view") |
protected void |
setDisplayUnit(Unit newUnit)
Set the display unit. |
void |
setDisplayUnitName(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(String value)
Set the ExtraLabelTemplate property. |
void |
setHadDataChoices(boolean value)
Set the HadDataChoices property. |
void |
setHelpUrl(String helpUrl)
Set the help URL for this DisplayControl |
void |
setId(String value)
Set the Name property. |
void |
setInitDataChoices(List l)
Used to publicize the list of data choices for the persistence mechanism |
void |
setInitialSettings(List settings)
Set the initial settings |
void |
setInitialViewManager(ViewManager viewManager)
Set the view manager for this control to use. |
void |
setIsRaster(boolean v)
Set IsRaster property |
void |
setIsTimeDriver(boolean value)
Set the IsTimeDriver property. |
void |
setLabelAsPreference(Object[] obj)
Set the label as a preference |
void |
setLegendBackground(Color bg)
Set the color to be used for the background in the bottom legend |
void |
setLegendForeground(Color fg)
Set the color to be used for the foreground in the bottom legend |
void |
setLegendLabel(String label)
A no-op so unpersisting old bundles won't flag a warning. |
void |
setLegendLabelTemplate(String value)
Set the LegendLabel property. |
void |
setLineWidth(int value)
Set the line width property. |
void |
setLockVisibilityToggle(boolean v)
Set the locking visibility of the display |
protected void |
setMainPanelDimensions()
Set the main panel dimenstions |
void |
setMainPanelSize(Dimension s)
Set the main panel size |
void |
setMakeWindow(boolean value)
Should this control make its own window. |
void |
setName(String value)
Set the Name property. |
void |
setNameFromUser(String value)
Set the NameFromUser property. |
protected boolean |
setNewColorUnit(Unit newUnit,
boolean applyToDisplayable)
The user has chosen a new unit for color. |
protected boolean |
setNewDisplayUnit(Unit newUnit,
boolean applyToDisplayable)
The user has chosen a new unit for display. |
void |
setNoteText(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(String s)
Set the name of the data choice |
void |
setParamName(String paramName)
The name of the parameter (initially from the DataChoice) displayed by this control. |
void |
setPersistedVisadData(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 |
setProperty(String name,
Object value)
Wrapper around Misc.propertySet |
void |
setRange(Range newRange)
Set the range for the color table. |
void |
setRange(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(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(String type)
Set the smoothing type |
void |
setTemplateName(String value)
Set the TemplateName property. |
void |
setTextureQuality(int quality)
Set the texture quality |
void |
setTitle(String title)
Set the title of the window if it has been created. |
protected void |
setUnitForColor(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(String value)
Set the ViewManagerClasses property. |
void |
setVisbilityAnimationPause(int value)
Set the VisbilityAnimationPause property. |
void |
setWindowSize(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(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(JComponent comp,
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(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 |
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(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(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(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 |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.idv.DisplayControl |
|---|
getTmpProperty, putTmpProperty, removeTmpProperty |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime |
| Field Detail |
|---|
protected double version
protected static final double ZFUDGE
protected boolean settingVisibility
protected final String DISPLAY_LIST_NAME
protected Unit displayUnit
protected String initNoteText
protected JTextArea noteTextArea
protected JComponent noteWrapper
protected boolean showNoteText
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 Hashtable requestProperties
DataChoice through
the getData called.
protected 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 List displayMasters
DisplayMaster-s that this control
wholly owns (e.g., profile display master).
protected ViewManager defaultViewManager
protected List viewManagers
ViewManager-s that
this control has created.
protected String defaultView
protected ContourInfo contourInfo
protected String contourInfoParams
protected boolean displayListUsesColor
protected ColorTableWidget ctw
protected List colorScales
protected Hashtable displayListTable
protected ContourWidget contourWidget
protected SelectRangeWidget selectRangeWidget
protected String helpUrl
protected String paramName
protected boolean instantiatedWithNoData
protected List categories
protected ColorScaleInfo colorScaleInfo
protected ControlContext controlContext
protected JSlider skipSlider
| Constructor Detail |
|---|
public DisplayControlImpl()
XmlEncoder
mechanism.
public DisplayControlImpl(ControlContext controlContext)
controlContext - context to use| Method Detail |
|---|
public final void initBasic(String displayId,
List categories,
Hashtable properties)
initBasic in interface DisplayControldisplayId - The identifier of this control. Taken from controls.xmlcategories - The list of DataCategoryies for this controlproperties - Any properties (usually defined in controls.xml)
public final void init(String displayId,
List categories,
List choices,
ControlContext controlContext,
String properties,
DataSelection dataSelection)
throws VisADException,
RemoteException
init in interface DisplayControldisplayId - The identifier of this control. Taken from controls.xmlcategories - The list of DataCategoryies 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
IntegratedDataViewerproperties - Any properties (usually defined in controls.xml)dataSelection - Holds any specifications of subsets of the data (e.g., times)
RemoteException
VisADException
public final void init(String displayId,
List categories,
List choices,
ControlContext controlContext,
Hashtable properties,
DataSelection dataSelection)
throws VisADException,
RemoteException
init in interface DisplayControldisplayId - The identifier of this control. Taken from controls.xmlcategories - The list of DataCategoryies 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
IntegratedDataViewerproperties - Any properties (usually defined in controls.xml)dataSelection - Holds any specifications of subsets of the data (e.g., times)
RemoteException
VisADExceptionprotected void doInitialUpdateLegendAndList()
protected void addToControlContext()
public void initAsTemplate()
initAsTemplate in interface DisplayControlpublic void initAsPrototype()
initAsPrototype in interface Prototypable
public void initAfterUnPersistence(ControlContext vc,
Hashtable properties)
IntegratedDataViewer to
initialize after this control has been unpersisted
initAfterUnPersistence in interface DisplayControlvc - The context in which this control existsproperties - Properties that may hold things
public void initAfterUnPersistence(ControlContext vc,
Hashtable properties,
List preSelectedDataChoices)
IntegratedDataViewer to
initialize after this control has been unpersisted
initAfterUnPersistence in interface DisplayControlvc - The context in which this control existsproperties - Properties that may hold thingspreSelectedDataChoices - set of preselected data choices
public boolean init(List choices)
throws VisADException,
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.
VisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.
public boolean init(DataChoice choice)
throws VisADException,
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.
VisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.public void initDone()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - the listener to addpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - listener to removeprotected void firePropertyChangeEvent(PropertyChangeEvent event)
event - event to propagateprotected boolean hasTimeMacro(String t)
t - the string to check
protected boolean shouldAddAnimationListener()
protected boolean shouldAddDisplayListener()
protected boolean shouldAddControlListener()
public boolean getHaveInitialized()
protected GraphicsConfiguration getGraphicsConfiguration(boolean is3D,
boolean useStereo)
is3D - use Java 3DuseStereo - use stereo (id3D must be true)
protected void applyAttributesToDisplayables()
throws VisADException,
RemoteException
Displayable-s
RemoteException
VisADExceptionprotected 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 check
protected 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 add
protected 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 displayable
protected 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 VisADException,
RemoteException
Displayables in the displayables
list that are flagged with the FLAG_CONTOUR
RemoteException
VisADException
protected void applyColorScaleInfo()
throws VisADException,
RemoteException
Displayables in the displayables
list that are flagged with the FLAG_COLORTABLE
RemoteException - problem with remote display
VisADException - problem with local display
protected void colorUnitChanged(Unit oldUnit,
Unit newUnit)
oldUnit - The old color unitnewUnit - The new color unit
protected void applyColorUnit()
throws VisADException,
RemoteException
Displayables in the displayables
list that are flagged with the FLAG_COLORUNIT
RemoteException
VisADException
protected void displayUnitChanged(Unit oldUnit,
Unit newUnit)
oldUnit - The old color unitnewUnit - The new color unitpublic Unit getRawDataUnit()
protected void applyDisplayUnit()
throws VisADException,
RemoteException
Displayables in the displayables
list that are flagged with the FLAG_DISPLAYUNIT
RemoteException
VisADExceptionprotected ColorTable getColorTableToApply()
protected void applyColorTable()
throws VisADException,
RemoteException
Displayables in the displayables
list that are flagged with the FLAG_COLORTABLE
RemoteException
VisADExceptionpublic void resetDimness()
public void setColorDimmer()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public void setColorBrighter()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
protected void applyColor()
throws VisADException,
RemoteException
Displayables in the displayables
list that are flagged with the FLAG_COLOR
RemoteException
VisADException
protected void applyRange()
throws VisADException,
RemoteException
Displayables in the displayables
list that are flagged with the FLAG_COLORTABLE
RemoteException
VisADException
protected void applySelectRange()
throws VisADException,
RemoteException
Displayables in the displayables
list that are flagged with the FLAG_SELECTRANGE
RemoteException
VisADException
protected void applyZPosition()
throws VisADException,
RemoteException
RemoteException - When bad things happen
VisADException - When bad things happen
protected void applyLineWidth()
throws VisADException,
RemoteException
RemoteException - When bad things happen
VisADException - When bad things happenpublic float[][] getColorTableForDisplayable(ColorTable ct)
ct - The original color table
public void addToRangeMenu(RangeWidget rw,
List items)
rw - Range widgetitems - List of menu items
public void addToRangeMenu(ColorTableWidget cw,
List items)
cw - the color table widgetitems - List of menu items
public void addToRangeMenu(RangeDialog selectRangeWidget,
List items)
selectRangeWidget - the range dialog that has the itemsitems - List of menu itemsprotected void parseProperties(String properties)
properties - Specification of the name=value properties.public void setInitialSettings(List settings)
settings - the display settingspublic void applyProperties(Hashtable properties)
properties - Specification of the name=value properties.
public void applyDisplaySetting(DisplaySetting displaySetting)
throws Exception
displaySetting - the settings to apply
Exception - problem setting settings
public void applyPropertyValues(List props)
throws Exception
props - list of property values
Exception - problem setting property valuespublic boolean getCanDoRemoveAll()
getCanDoRemoveAll in interface DisplayControlpublic void setCanDoRemoveAll(boolean v)
v - The valuepublic boolean getShowNoteText()
public void setShowNoteText(boolean n)
n - The value for the show note text flagpublic String getNoteText()
public void setNoteText(String n)
n - The note textpublic void toggleNoteTextArea()
protected void redoGuiLayout()
public boolean isInTransectView()
protected void addNoteText(JPanel mainPanel,
JComponent noteWrapper)
mainPanel - Where to add the noteWrappernoteWrapper - Holds the note text TextArea
protected void setProperty(String name,
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(DisplayEvent event)
displayChanged in interface DisplayListenerevent - The eventpublic void handleDisplayChanged(DisplayEvent event)
event - The event
protected boolean boundsClose(double a,
double b)
a - first valueb - second value
public void controlChanged(ControlEvent event)
controlChanged in interface ControlListenerevent - The eventprotected long getControlChangeSleepTime()
public void viewpointChanged()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - The eventpublic void firstFrameDone()
firstFrameDone in interface DisplayControlpublic List getDataChoices()
DataChoice-s
getDataChoices in interface DisplayControlpublic List getMyDataChoices()
DataChoice-s
public List getInitDataChoices()
DataChoice-s that this control
was originally create with
public void setInitDataChoices(List l)
l - List of original data choicespublic void setPersistedVisadData(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 add
public 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(List newList)
newList - New list of data choices.public void appendDataChoices(List newDataChoices)
DataChoice-s
to the myDataChoices list
newDataChoices - List to appendpublic DataChoice getDataChoice()
DataChoice
getDataChoice in interface DisplayControlpublic void dataChanged()
DataChangeListener.
dataChanged in interface DataChangeListener
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class SharableImplfrom - other class.dataId - type of sharingdata - Array of data being shared. In this case, the first
(and only?) object in the array is the level
protected void resetData()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problem
protected void addNewData(List newChoices)
throws VisADException,
RemoteException
newChoices - List of new DataChoice-s
RemoteException - Java RMI problem
VisADException - VisAD problem
protected boolean setData(List newChoices)
throws VisADException,
RemoteException
This returns whether the data setting was successfull or not.
newChoices - List of new DataChoice-s
RemoteException - Java RMI problem
VisADException - problem creating VisAD object
protected boolean checkIfDataOk(DataInstance di)
throws VisADException,
RemoteException
di - The DataInstance to check
RemoteException
VisADException
protected boolean setData(DataChoice dataChoice)
throws VisADException,
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.
RemoteException
VisADException
protected Range getInitialRange()
throws RemoteException,
VisADException
Range
RemoteException - Java RMI problem
VisADException - VisAD problemprotected ColorTable getInitialColorTable()
DisplayConventions
to get the color table based on the paramName
protected void revertToDefaultColorTable()
protected void revertToDefaultRange()
protected final ColorTable getOldColorTableOrInitialColorTable()
public void setCategories(List c)
c - The list of DataCategoryspublic List getCategories()
getCategories in interface DisplayControlDataCategoryspublic void showWaitCursor()
public void showNormalCursor()
public void setDisplayName(String displayName)
displayName - The name to use for display purposespublic String getPropertyDisplayName()
public String getDisplayName()
setDisplayName(String)
method.
public String getDisplayId()
getDisplayId in interface DisplayControlpublic void setDisplayId(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 Data getData(DataInstance dataInstance)
throws VisADException,
RemoteException
dataInstance - the dataInstance
RemoteException - Java RMI problem
VisADException - VisAD problem
public FieldImpl getGrid(GridDataInstance dataInstance)
throws VisADException,
RemoteException
dataInstance - the dataInstance
RemoteException - Java RMI problem
VisADException - VisAD problem
public FieldImpl getGrid(GridDataInstance dataInstance,
boolean copy)
throws VisADException,
RemoteException
dataInstance - the dataInstancecopy - make a copy of the field
RemoteException - Java RMI problem
VisADException - VisAD problem
protected GridDataInstance updateGridDataInstance(GridDataInstance dataInstance)
throws VisADException,
RemoteException
dataInstance - the grid data instance
RemoteException - Java RMI problem
VisADException - VisAD problem
protected DataInstance updateDataInstance(DataInstance dataInstance)
throws VisADException,
RemoteException
dataInstance - the dataInstance to update
RemoteException - Java RMI problem
VisADException - VisAD problem
protected DataSelection updateDataSelection(DataSelection dataSelection)
throws VisADException,
RemoteException
dataSelection - the dataSelection to update
RemoteException - Java RMI problem
VisADException - VisAD problempublic void setParamName(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()
IntegratedDataViewerpublic DisplayConventions getDisplayConventions()
DisplayConventions to use.
public String getLabel()
getLabel in interface DisplayControlpublic String toString()
toString in class Objectpublic JFrame getWindow()
getWindow in interface DisplayControlprotected String getTitle()
getDisplayName() method.
public void setTitle(String title)
title - The titleprotected void updateLegendLabel()
protected void updateLegendAndList()
protected void updateDisplayList()
public Data getDataForDisplayList()
getDataForDisplayList in interface DisplayControlprotected Data getDisplayListData()
public DisplayableData getDisplayListDisplayable(ViewManager view)
getDisplayListDisplayable in interface DisplayControlview - the view that it will go into
protected void setDisplayListProperties(DisplayableData d,
ViewManager view)
throws VisADException,
RemoteException
d - the displayableview - the view manager
RemoteException - a Java RMI Exception occured
VisADException - unable to set propertiespublic JComponent getLegendButtons(int legendType)
getLegendButtons in interface DisplayControllegendType - type of legend
protected String getShortParamName()
protected String getLongParamName()
protected List getDataSources()
protected void addLabelMacros(String template,
List patterns,
List values)
template - template for the labelpatterns - The macro namesvalues - The macro values
protected void getLegendLabels(List labels,
int legendType)
labels - A list that the labels are inserted intolegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDpublic String getMenuLabel()
DisplayControl interface
getMenuLabel in interface DisplayControlpublic void toFront()
toFront in interface DisplayControlprotected boolean removeOnWindowClose()
public void guiImported()
public void guiExported()
protected IdvWindow createIdvWindow()
protected DisplayableData createDisplayListDisplayable(ViewManager view)
throws VisADException,
RemoteException
view - the view that this will be in
RemoteException - Java RMI Exception
VisADException - VisAD problem
protected void doMakeWindow()
throws VisADException,
RemoteException
RemoteException
VisADExceptionprotected boolean isGuiShown()
protected JMenuBar doMakeMenuBar()
public void captureWindow()
protected void setMainPanelDimensions()
throws Exception
Exception - problem setting the dimensions
public Image getImage()
throws Exception
Exception - problem getting image
public ViewManager getViewManagerForCapture(String what)
throws Exception
what - The specification of the viewmanager (from the isl)
Exception - on badness
public Image getImage(String what)
throws Exception
what - description of what to get
Exception - problem getting imageprotected List doMakeMenuBarMenus(List menus)
menus - List to add to
public XmlObjectStore getStore()
protected void handleWindowClosing()
public Component getOuterContents()
public JComponent getMainPanel()
public void setMakeWindow(boolean value)
value - The make window flagpublic boolean getMakeWindow()
public void setWindowSize(Dimension value)
value - The size of the windowpublic Dimension getWindowSize()
public Dimension getMainPanelSize()
public void setMainPanelSize(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 DisplayControlpublic void toggleWindow()
toggleWindow in interface DisplayControlpublic 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 String getChangeParameterLabel()
public void hyperlinkUpdate(HyperlinkEvent e)
ControlContext
hyperlinkUpdate in interface HyperlinkListenere - The eventpublic boolean hasMapProjection()
public void reloadDataSource()
throws RemoteException,
VisADException
RemoteException - Java RMI problem
VisADException - VisAD problem
public void reloadDataSourceInThread()
throws RemoteException,
VisADException
RemoteException - Java RMI problem
VisADException - VisAD problemprotected void getLastFileMenuItems(List items)
items - the last items in the file menu.
protected void getSaveMenuItems(List items,
boolean forMenuBar)
items - List of menu items to add intoforMenuBar - if this is for the menubarpublic List getEditMenuItems(List items)
items - List of menu items
public List getFileMenuItems(List items)
items - List of menu items
public List getViewMenuItems(List items)
items - List of menu items
protected void getEditMenuItems(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 Set getTimeSet()
throws RemoteException,
VisADException
getTimeSet in interface DisplayControlRemoteException - RMI exception
VisADException - Couldn't create time set
protected Set getDataTimeSet()
throws RemoteException,
VisADException
RemoteException - On badness
VisADException - On badnessprotected boolean haveDataTimes()
protected List findDisplays(String key)
key - the key
protected List findDisplays(String key,
List displays)
key - key to look fordisplays - list of displays
public void showProperties()
protected void addPropertiesComponents(JTabbedPane jtp)
jtp - the JTabbedPane to add toprotected void addDisplaySettings(DisplaySettingsDialog dsd)
dsd - the display settings dialogpublic void setLabelAsPreference(Object[] obj)
obj - list of objects defining the labelpublic void showDisplaySettingsDialog()
protected JPanel getSettingsPanel()
protected void addCheckBoxSettings(List comps,
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(List names,
List labels)
names - List of macro nameslabels - List of macro labels
public void doExport(String what,
String filename)
throws Exception
what - What is to be written outfilename - To what file
Exceptionpublic void saveAsParameterDefaults()
public void saveAsFavorite()
public void saveAsTemplate()
public void saveAsPrototype()
public void clearPrototype()
public void displayableToFront()
protected void getViewMenuItems(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 String getDataProjectionLabel()
protected void getFileMenuItems(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(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 legend
protected void getHelpMenuItems(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 List getHelpIds()
public void showHelp()
If there is no help available it will popup a message to the user.
showHelp in interface DisplayControlpublic boolean isInViewManager()
public void saveImage(String filename)
saveImage in interface DisplayControlfilename - The file to write the image topublic void writeTestArchive(String archiveName)
writeTestArchive in interface DisplayControlarchiveName - The name of the archive we are writing topublic void projectionChanged()
projectionChanged in interface DisplayControlpublic void transectChanged()
transectChanged in interface DisplayControlpublic void viewManagerChanged(String property)
viewManagerChanged in interface DisplayControlproperty - The property that changedpublic MapProjection getDataProjectionForMenu()
public MapProjection getDataProjection()
getDataProjection in interface DisplayControl
public LatLonPoint getDisplayCenter()
throws RemoteException,
VisADException
RemoteException - On badness
VisADException - On badnessprotected void setProjectionInView(boolean useViewPreference)
useViewPreference - if true, will let the view decide if
preference to reset data is used or not
protected 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 centerOnDisplay()
public MapProjection getMapViewProjection()
protected void activateDisplays()
throws RemoteException,
VisADException
RemoteException
VisADException
protected void deactivateDisplays()
throws RemoteException,
VisADException
RemoteException
VisADExceptionprotected DisplayInfo findDisplayInfo(Displayable displayable)
displayable - the displayable to search for
DisplayInfo
public void removeDisplayable(Displayable displayable)
throws RemoteException,
VisADException
Displayable
displayable - displayable to remove
RemoteException - Java RMI problem
VisADException - Problem in VisAD
protected void removeDisplayables()
throws RemoteException,
VisADException
DisplayInfo-s, telling them to
removeDisplayable.
RemoteException
VisADException
protected void removeDisplayables(boolean andDestroyThem)
throws RemoteException,
VisADException
DisplayInfo-s, telling them to
removeDisplayable.
andDestroyThem - true to destroy them
RemoteException
VisADException
public void viewManagerDestroyed(ViewManager viewManager)
throws VisADException,
RemoteException
viewManagerDestroyed in interface DisplayControlviewManager - The view manager that was destroyed
RemoteException - Java RMI error
VisADException - VisAD errorpublic void addRemovable(Removable removable)
removable - the removeablepublic void