Package ucar.unidata.idv.control.multi
Class DisplayGroup
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.idv.control.multi.DisplayComponent
ucar.unidata.idv.control.multi.DisplayGroup
- All Implemented Interfaces:
PropertyChangeListener,EventListener,Sharable
Holds a group of display components
- Version:
- $Revision: 1.13 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JComponentThe guistatic final inttype of layoutstatic final inttype of layoutstatic final inttype of layoutstatic final inttype of layoutstatic final inttype of layoutprotected JComponentoutermost gui componentFields inherited from class ucar.unidata.idv.control.multi.DisplayComponent
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVEDFields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDisplayComponent(DisplayComponent displayComponent) Add the wrappervoidaddDisplayComponent(DisplayComponent displayComponent, int index) Add the wrappervoidanimationTimeChanged(Real time) Set animation time on componentsprotected booleanApply propertiesCreate and return the gui contentsvoiddoRemove()do cleanupfindDisplayComponents(Class compClass) Recursively find all contained components of the given classFind the top most ancestorGet the DisplayComponents property.intGet the GridColumns property.booleanGet the Iconified property.Get the LastPosition property.intGet the Layout property.intGet the NumColumns property.intGet the NumRows property.protected ListgetPopupMenuItems(List items) Make the edit menu itemsprotected voidgetPropertiesComponents(List comps, int tabIdx) Show dialogWhat type of thing is thisintindexOf(DisplayComponent displayComponent) What is the index of the child componentvoidinitAfterUnPersistence(MultiDisplayHolder displayControl, ControlContext vc, Hashtable properties) Called by theIntegratedDataViewerto initialize after this control has been unpersistedvoidinitDone()do final initializationvoidloadData()Tell components to loadvoidremoveDisplayComponent(DisplayComponent displayComponent) remove the wrappervoidsetDisplayComponents(List value) Set the DisplayComponents property.voidsetDisplayControl(MultiDisplayHolder displayControl) Set the display control I'm in.voidsetGridColumns(int value) Set the GridColumns property.voidsetIconified(boolean value) Set the Iconified property.voidsetLastPosition(Rectangle value) Set the LastPosition property.voidsetLayout(int value) Set the Layout property.voidsetNumColumns(int value) Set the NumColumns property.voidsetNumRows(int value) Set the NumRows property.voidsetRowsColumns(int rows, int cols) Set layouttoString()to stringMethods inherited from class ucar.unidata.idv.control.multi.DisplayComponent
addGroupMenuItems, doApplyProperties, doMakeDisplayLabel, doSaveImage, doSaveMovie, getBackgroundColor, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, removeDisplayComponent, setBackgroundColor, setDisplayGroup, setIsRemoved, setLabelShown, setName, showPopup, showPropertiesMethods 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
-
LAYOUT_GRIDBAG
public static final int LAYOUT_GRIDBAGtype of layout- See Also:
-
LAYOUT_GRID
public static final int LAYOUT_GRIDtype of layout- See Also:
-
LAYOUT_TABS
public static final int LAYOUT_TABStype of layout- See Also:
-
LAYOUT_HSPLIT
public static final int LAYOUT_HSPLITtype of layout- See Also:
-
LAYOUT_VSPLIT
public static final int LAYOUT_VSPLITtype of layout- See Also:
-
container
The gui -
outerContainer
outermost gui component
-
-
Constructor Details
-
DisplayGroup
public DisplayGroup()default ctor -
DisplayGroup
ctor- Parameters:
name- name
-
-
Method Details
-
getTypeName
What type of thing is this- Overrides:
getTypeNamein classDisplayComponent- Returns:
- type name
-
initDone
public void initDone()do final initialization- Overrides:
initDonein classDisplayComponent
-
initAfterUnPersistence
public void initAfterUnPersistence(MultiDisplayHolder displayControl, ControlContext vc, Hashtable properties) Called by theIntegratedDataViewerto initialize after this control has been unpersisted- Overrides:
initAfterUnPersistencein classDisplayComponent- Parameters:
displayControl- The control I am part ofvc- The context in which this control existsproperties- Properties that may hold things
-
doMakeContents
Create and return the gui contents- Specified by:
doMakeContentsin classDisplayComponent- Returns:
- gui contents
-
getAncestorGroup
Find the top most ancestor- Returns:
- The top most ancestor
-
findDisplayComponents
Recursively find all contained components of the given class- Parameters:
compClass- The class to look for- Returns:
- List of components
-
addDisplayComponent
Add the wrapper- Parameters:
displayComponent- new one
-
indexOf
What is the index of the child component- Parameters:
displayComponent- child component- Returns:
- its index
-
addDisplayComponent
Add the wrapper- Parameters:
displayComponent- new oneindex- Where
-
setDisplayControl
Set the display control I'm in. Also set the DC on all of my children components.- Overrides:
setDisplayControlin classDisplayComponent- Parameters:
displayControl- The display control
-
applyProperties
protected boolean applyProperties()Apply properties- Overrides:
applyPropertiesin classDisplayComponent- Returns:
- Was successful
-
getPropertiesComponents
Show dialog- Overrides:
getPropertiesComponentsin classDisplayComponent- Parameters:
comps- List of componentstabIdx- which tab
-
animationTimeChanged
Set animation time on components- Overrides:
animationTimeChangedin classDisplayComponent- Parameters:
time- time
-
removeDisplayComponent
remove the wrapper- Parameters:
displayComponent- the wrapper to remove
-
doRemove
public void doRemove()do cleanup- Overrides:
doRemovein classDisplayComponent
-
loadData
Tell components to load- Overrides:
loadDatain classDisplayComponent- Throws:
RemoteException- On badnessVisADException- On badness
-
getPopupMenuItems
Make the edit menu items- Overrides:
getPopupMenuItemsin classDisplayComponent- Parameters:
items- Holds the menu items- Returns:
- The list of items
-
setDisplayComponents
Set the DisplayComponents property.- Parameters:
value- The new value for DisplayComponents
-
getDisplayComponents
Get the DisplayComponents property.- Returns:
- The DisplayComponents
-
setRowsColumns
public void setRowsColumns(int rows, int cols) Set layout- Parameters:
rows- rowscols- cols
-
setNumRows
public void setNumRows(int value) Set the NumRows property.- Parameters:
value- The new value for NumRows
-
getNumRows
public int getNumRows()Get the NumRows property.- Returns:
- The NumRows
-
setNumColumns
public void setNumColumns(int value) Set the NumColumns property.- Parameters:
value- The new value for NumColumns
-
getNumColumns
public int getNumColumns()Get the NumColumns property.- Returns:
- The NumColumns
-
toString
to string- Overrides:
toStringin classDisplayComponent- Returns:
- string
-
setLastPosition
Set the LastPosition property.- Parameters:
value- The new value for LastPosition
-
getLastPosition
Get the LastPosition property.- Returns:
- The LastPosition
-
setIconified
public void setIconified(boolean value) Set the Iconified property.- Parameters:
value- The new value for Iconified
-
getIconified
public boolean getIconified()Get the Iconified property.- Returns:
- The Iconified
-
setLayout
public void setLayout(int value) Set the Layout property.- Parameters:
value- The new value for Layout
-
getLayout
public int getLayout()Get the Layout property.- Returns:
- The Layout
-
setGridColumns
public void setGridColumns(int value) Set the GridColumns property.- Parameters:
value- The new value for GridColumns
-
getGridColumns
public int getGridColumns()Get the GridColumns property.- Returns:
- The GridColumns
-