Package ucar.unidata.idv.control.multi
Class DisplayComponent
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.idv.control.multi.DisplayComponent
- All Implemented Interfaces:
PropertyChangeListener,EventListener,Sharable
- Direct Known Subclasses:
ChartWrapper,DisplayControlWrapper,DisplayGroup,FieldSelectorWrapper,ViewWrapper
Base class of things that are shown in the MultiDisplayHolder
- Version:
- $Revision: 1.11 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAction command to save an image_static final StringAction command to save an moveieprotected MultiDisplayHolderThe displaycontrol I'm inprotected JLabelThe labelprotected booleanHas this component been initializedbooleanHas this component been removedstatic final StringProperty change idFields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ListaddGroupMenuItems(List items) Add the parent group's menu itemsvoidanimationTimeChanged(Real time) Set animation time on componentsprotected booleanApply propertiesprotected booleanApply the propertiesprotected abstract JComponentMake the guiprotected JLabelCreate, if needed, and return the component labelvoiddoRemove()Been removed, do any cleanupvoidWrite the imagevoidCreate a movieGet the BackgroundColor property.Create, if needed, and return the gui contentsGet the list of displayablesprotected MultiDisplayHolderGet the display control I'm inGet the DisplayGroup property.protected JLabelCreate, if needed, and return the component labelbooleanGet the IsRemoved property.booleanGet the LabelShown property.getName()Get the Name property.protected ListgetPopupMenuItems(List items) Get the menu items for the popup menuprotected voidgetPropertiesComponents(List comps, int tabIdx) Create the properties contentsReturn the human readable name of this componentvoidinitAfterUnPersistence(MultiDisplayHolder displayControl, ControlContext vc, Hashtable properties) Called by theIntegratedDataViewerto initialize after this control has been unpersistedvoidinitDone()Finish with initializationvoidloadData()Tell components to loadbooleanRemove mevoidsetBackgroundColor(Color value) Set the BackgroundColor property.voidsetDisplayControl(MultiDisplayHolder displayControl) Set the display control I'm invoidsetDisplayGroup(DisplayGroup value) Set the DisplayGroup property.voidsetIsRemoved(boolean value) Set the IsRemoved property.voidsetLabelShown(boolean value) Set the LabelShown property.voidSet the Name property.voidshowPopup(JComponent where, int x, int y) SHow the popup menubooleanShow the properties dialogtoString()to stringMethods inherited from class ucar.unidata.collab.PropertiedThing
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, propertyChange, removePropertyChangeListener, showPropertiesMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.beans.PropertyChangeListener
propertyChange
-
Field Details
-
PROP_REMOVED
Property change id- See Also:
-
isRemoved
public boolean isRemovedHas this component been removed -
hasBeenInitialized
protected boolean hasBeenInitializedHas this component been initialized -
CMD_SAVEIMAGE
Action command to save an image_- See Also:
-
CMD_SAVEMOVIE
Action command to save an moveie- See Also:
-
displayLabel
The label -
displayControl
The displaycontrol I'm in
-
-
Constructor Details
-
DisplayComponent
public DisplayComponent()default ctor -
DisplayComponent
ctor- Parameters:
name- name
-
-
Method Details
-
initDone
public void initDone()Finish with initialization -
initAfterUnPersistence
public void initAfterUnPersistence(MultiDisplayHolder displayControl, ControlContext vc, Hashtable properties) Called by theIntegratedDataViewerto initialize after this control has been unpersisted- Parameters:
displayControl- The display control I am part ofvc- The context in which this control existsproperties- Properties that may hold things
-
doMakeContents
Make the gui- Returns:
- The gui
-
getContents
Create, if needed, and return the gui contents- Returns:
- gui contents
-
setDisplayControl
Set the display control I'm in- Parameters:
displayControl- The display control
-
getDisplayControl
Get the display control I'm in- Returns:
- The display control
-
animationTimeChanged
Set animation time on components- Parameters:
time- time
-
loadData
Tell components to load- Throws:
RemoteException- On badnessVisADException- On badness
-
doSaveMovie
public void doSaveMovie()Create a movie -
doSaveImage
public void doSaveImage()Write the image -
addGroupMenuItems
Add the parent group's menu items- Parameters:
items- menu items- Returns:
- the items
-
getDisplayables
Get the list of displayables- Returns:
- empty list
-
removeDisplayComponent
public boolean removeDisplayComponent()Remove me- Returns:
- was removed
-
doApplyProperties
protected boolean doApplyProperties()Apply the properties- Overrides:
doApplyPropertiesin classPropertiedThing- Returns:
- Success
-
doRemove
public void doRemove()Been removed, do any cleanup -
setName
Set the Name property.- Parameters:
value- The new value for Name
-
getName
Get the Name property.- Returns:
- The Name
-
setDisplayGroup
Set the DisplayGroup property.- Parameters:
value- The new value for DisplayGroup
-
getDisplayGroup
Get the DisplayGroup property.- Returns:
- The DisplayGroup
-
toString
to string -
setBackgroundColor
Set the BackgroundColor property.- Parameters:
value- The new value for BackgroundColor
-
getBackgroundColor
Get the BackgroundColor property.- Returns:
- The BackgroundColor
-
getTypeName
Return the human readable name of this component- Returns:
- component type name
-
getPropertiesComponents
Create the properties contents- Overrides:
getPropertiesComponentsin classPropertiedThing- Parameters:
comps- List of componentstabIdx- Which tab
-
applyProperties
protected boolean applyProperties()Apply properties- Overrides:
applyPropertiesin classPropertiedThing- Returns:
- Was successful
-
getPopupMenuItems
Get the menu items for the popup menu- Parameters:
items- List of items to add to- Returns:
- The items list
-
showProperties
public boolean showProperties()Show the properties dialog- Overrides:
showPropertiesin classPropertiedThing- Returns:
- Was it ok
-
showPopup
SHow the popup menu- Parameters:
where- component to show near tox- xy- y
-
getDisplayLabel
Create, if needed, and return the component label- Returns:
- component label
-
doMakeDisplayLabel
Create, if needed, and return the component label- Returns:
- component label
-
setLabelShown
public void setLabelShown(boolean value) Set the LabelShown property.- Parameters:
value- The new value for LabelShown
-
getLabelShown
public boolean getLabelShown()Get the LabelShown property.- Returns:
- The LabelShown
-
setIsRemoved
public void setIsRemoved(boolean value) Set the IsRemoved property.- Parameters:
value- The new value for IsRemoved
-
getIsRemoved
public boolean getIsRemoved()Get the IsRemoved property.- Returns:
- The IsRemoved
-