public class DisplayGroup extends DisplayComponent
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JComponent |
container
The gui
|
static int |
LAYOUT_GRID
type of layout
|
static int |
LAYOUT_GRIDBAG
type of layout
|
static int |
LAYOUT_HSPLIT
type of layout
|
static int |
LAYOUT_TABS
type of layout
|
static int |
LAYOUT_VSPLIT
type of layout
|
protected javax.swing.JComponent |
outerContainer
outermost gui component
|
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVEDpropertiesDialog| Constructor and Description |
|---|
DisplayGroup()
default ctor
|
DisplayGroup(java.lang.String name)
ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDisplayComponent(DisplayComponent displayComponent)
Add the wrapper
|
void |
addDisplayComponent(DisplayComponent displayComponent,
int index)
Add the wrapper
|
void |
animationTimeChanged(visad.Real time)
Set animation time on components
|
protected boolean |
applyProperties()
Apply properties
|
javax.swing.JComponent |
doMakeContents()
Create and return the gui contents
|
void |
doRemove()
do cleanup
|
java.util.List |
findDisplayComponents(java.lang.Class compClass)
Recursively find all contained components of the given class
|
DisplayGroup |
getAncestorGroup()
Find the top most ancestor
|
java.util.List |
getDisplayComponents()
Get the DisplayComponents property.
|
int |
getGridColumns()
Get the GridColumns property.
|
boolean |
getIconified()
Get the Iconified property.
|
java.awt.Rectangle |
getLastPosition()
Get the LastPosition property.
|
int |
getLayout()
Get the Layout property.
|
int |
getNumColumns()
Get the NumColumns property.
|
int |
getNumRows()
Get the NumRows property.
|
protected java.util.List |
getPopupMenuItems(java.util.List items)
Make the edit menu items
|
protected void |
getPropertiesComponents(java.util.List comps,
int tabIdx)
Show dialog
|
java.lang.String |
getTypeName()
What type of thing is this
|
int |
indexOf(DisplayComponent displayComponent)
What is the index of the child component
|
void |
initAfterUnPersistence(MultiDisplayHolder displayControl,
ControlContext vc,
java.util.Hashtable properties)
Called by the
IntegratedDataViewer to
initialize after this control has been unpersisted |
void |
initDone()
do final initialization
|
void |
loadData()
Tell components to load
|
void |
removeDisplayComponent(DisplayComponent displayComponent)
remove the wrapper
|
void |
setDisplayComponents(java.util.List value)
Set the DisplayComponents property.
|
void |
setDisplayControl(MultiDisplayHolder displayControl)
Set the display control I'm in.
|
void |
setGridColumns(int value)
Set the GridColumns property.
|
void |
setIconified(boolean value)
Set the Iconified property.
|
void |
setLastPosition(java.awt.Rectangle value)
Set the LastPosition property.
|
void |
setLayout(int value)
Set the Layout property.
|
void |
setNumColumns(int value)
Set the NumColumns property.
|
void |
setNumRows(int value)
Set the NumRows property.
|
void |
setRowsColumns(int rows,
int cols)
Set layout
|
java.lang.String |
toString()
to string
|
addGroupMenuItems, doApplyProperties, doMakeDisplayLabel, doSaveImage, doSaveMovie, getBackgroundColor, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, removeDisplayComponent, setBackgroundColor, setDisplayGroup, setIsRemoved, setLabelShown, setName, showPopup, showPropertiesaddPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, propertyChange, removePropertyChangeListener, showPropertiesapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogpublic static final int LAYOUT_GRIDBAG
public static final int LAYOUT_GRID
public static final int LAYOUT_TABS
public static final int LAYOUT_HSPLIT
public static final int LAYOUT_VSPLIT
protected javax.swing.JComponent container
protected javax.swing.JComponent outerContainer
public DisplayGroup()
public DisplayGroup(java.lang.String name)
name - namepublic java.lang.String getTypeName()
getTypeName in class DisplayComponentpublic void initDone()
initDone in class DisplayComponentpublic void initAfterUnPersistence(MultiDisplayHolder displayControl, ControlContext vc, java.util.Hashtable properties)
IntegratedDataViewer to
initialize after this control has been unpersistedinitAfterUnPersistence in class DisplayComponentdisplayControl - The control I am part ofvc - The context in which this control existsproperties - Properties that may hold thingspublic javax.swing.JComponent doMakeContents()
doMakeContents in class DisplayComponentpublic DisplayGroup getAncestorGroup()
public java.util.List findDisplayComponents(java.lang.Class compClass)
compClass - The class to look forpublic void addDisplayComponent(DisplayComponent displayComponent)
displayComponent - new onepublic int indexOf(DisplayComponent displayComponent)
displayComponent - child componentpublic void addDisplayComponent(DisplayComponent displayComponent, int index)
displayComponent - new oneindex - Wherepublic void setDisplayControl(MultiDisplayHolder displayControl)
setDisplayControl in class DisplayComponentdisplayControl - The display controlprotected boolean applyProperties()
applyProperties in class DisplayComponentprotected void getPropertiesComponents(java.util.List comps,
int tabIdx)
getPropertiesComponents in class DisplayComponentcomps - List of componentstabIdx - which tabpublic void animationTimeChanged(visad.Real time)
animationTimeChanged in class DisplayComponenttime - timepublic void removeDisplayComponent(DisplayComponent displayComponent)
displayComponent - the wrapper to removepublic void doRemove()
doRemove in class DisplayComponentpublic void loadData()
throws java.rmi.RemoteException,
visad.VisADException
loadData in class DisplayComponentjava.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected java.util.List getPopupMenuItems(java.util.List items)
getPopupMenuItems in class DisplayComponentitems - Holds the menu itemspublic void setDisplayComponents(java.util.List value)
value - The new value for DisplayComponentspublic java.util.List getDisplayComponents()
public void setRowsColumns(int rows,
int cols)
rows - rowscols - colspublic void setNumRows(int value)
value - The new value for NumRowspublic int getNumRows()
public void setNumColumns(int value)
value - The new value for NumColumnspublic int getNumColumns()
public java.lang.String toString()
toString in class DisplayComponentpublic void setLastPosition(java.awt.Rectangle value)
value - The new value for LastPositionpublic java.awt.Rectangle getLastPosition()
public void setIconified(boolean value)
value - The new value for Iconifiedpublic boolean getIconified()
public void setLayout(int value)
value - The new value for Layoutpublic int getLayout()
public void setGridColumns(int value)
value - The new value for GridColumnspublic int getGridColumns()