|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.idv.control.multi.DisplayComponent
ucar.unidata.idv.control.multi.DisplayGroup
public class DisplayGroup
Holds a group of display components
| Field Summary | |
|---|---|
protected 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 JComponent |
outerContainer
outermost gui component |
| Fields inherited from class ucar.unidata.idv.control.multi.DisplayComponent |
|---|
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVED |
| Fields inherited from class ucar.unidata.collab.PropertiedThing |
|---|
propertiesDialog |
| Constructor Summary | |
|---|---|
DisplayGroup()
default ctor |
|
DisplayGroup(String name)
ctor |
|
| Method Summary | |
|---|---|
void |
addDisplayComponent(DisplayComponent displayComponent)
Add the wrapper |
void |
addDisplayComponent(DisplayComponent displayComponent,
int index)
Add the wrapper |
void |
animationTimeChanged(Real time)
Set animation time on components |
protected boolean |
applyProperties()
Apply properties |
JComponent |
doMakeContents()
Create and return the gui contents |
void |
doRemove()
do cleanup |
List |
findDisplayComponents(Class compClass)
Recursively find all contained components of the given class |
DisplayGroup |
getAncestorGroup()
Find the top most ancestor |
List |
getDisplayComponents()
Get the DisplayComponents property. |
int |
getGridColumns()
Get the GridColumns property. |
boolean |
getIconified()
Get the Iconified property. |
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 List |
getPopupMenuItems(List items)
Make the edit menu items |
protected void |
getPropertiesComponents(List comps,
int tabIdx)
Show dialog |
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,
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(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(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 |
String |
toString()
to string |
| Methods 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, showProperties |
| Methods inherited from class ucar.unidata.collab.PropertiedThing |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, propertyChange, removePropertyChangeListener, showProperties |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, 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 java.beans.PropertyChangeListener |
|---|
propertyChange |
| Field Detail |
|---|
public 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 JComponent container
protected JComponent outerContainer
| Constructor Detail |
|---|
public DisplayGroup()
public DisplayGroup(String name)
name - name| Method Detail |
|---|
public String getTypeName()
getTypeName in class DisplayComponentpublic void initDone()
initDone in class DisplayComponent
public void initAfterUnPersistence(MultiDisplayHolder displayControl,
ControlContext vc,
Hashtable properties)
IntegratedDataViewer to
initialize after this control has been unpersisted
initAfterUnPersistence in class DisplayComponentdisplayControl - The control I am part ofvc - The context in which this control existsproperties - Properties that may hold thingspublic JComponent doMakeContents()
doMakeContents in class DisplayComponentpublic DisplayGroup getAncestorGroup()
public List findDisplayComponents(Class compClass)
compClass - The class to look for
public void addDisplayComponent(DisplayComponent displayComponent)
displayComponent - new onepublic int indexOf(DisplayComponent displayComponent)
displayComponent - child component
public 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 DisplayComponent
protected void getPropertiesComponents(List comps,
int tabIdx)
getPropertiesComponents in class DisplayComponentcomps - List of componentstabIdx - which tabpublic void animationTimeChanged(Real time)
animationTimeChanged in class DisplayComponenttime - timepublic void removeDisplayComponent(DisplayComponent displayComponent)
displayComponent - the wrapper to removepublic void doRemove()
doRemove in class DisplayComponent
public void loadData()
throws RemoteException,
VisADException
loadData in class DisplayComponentRemoteException - On badness
VisADException - On badnessprotected List getPopupMenuItems(List items)
getPopupMenuItems in class DisplayComponentitems - Holds the menu items
public void setDisplayComponents(List value)
value - The new value for DisplayComponentspublic 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 String toString()
toString in class DisplayComponentpublic void setLastPosition(Rectangle value)
value - The new value for LastPositionpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||