|
||||||||||
| 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
public abstract class DisplayComponent
Base class of things that are shown in the MultiDisplayHolder
| Field Summary | |
|---|---|
static String |
CMD_SAVEIMAGE
Action command to save an image_ |
static String |
CMD_SAVEMOVIE
Action command to save an moveie |
protected MultiDisplayHolder |
displayControl
The displaycontrol I'm in |
protected JLabel |
displayLabel
The label |
protected boolean |
hasBeenInitialized
Has this component been initialized |
boolean |
isRemoved
Has this component been removed |
static String |
PROP_REMOVED
Property change id |
| Fields inherited from class ucar.unidata.collab.PropertiedThing |
|---|
propertiesDialog |
| Constructor Summary | |
|---|---|
DisplayComponent()
default ctor |
|
DisplayComponent(String name)
ctor |
|
| Method Summary | |
|---|---|
protected List |
addGroupMenuItems(List items)
Add the parent group's menu items |
void |
animationTimeChanged(Real time)
Set animation time on components |
protected boolean |
applyProperties()
Apply properties |
protected boolean |
doApplyProperties()
Apply the properties |
protected abstract JComponent |
doMakeContents()
Make the gui |
protected JLabel |
doMakeDisplayLabel()
Create, if needed, and return the component label |
void |
doRemove()
Been removed, do any cleanup |
void |
doSaveImage()
Write the image |
void |
doSaveMovie()
Create a movie |
Color |
getBackgroundColor()
Get the BackgroundColor property. |
JComponent |
getContents()
Create, if needed, and return the gui contents |
List |
getDisplayables()
Get the list of displayables |
protected MultiDisplayHolder |
getDisplayControl()
Get the display control I'm in |
DisplayGroup |
getDisplayGroup()
Get the DisplayGroup property. |
protected JLabel |
getDisplayLabel()
Create, if needed, and return the component label |
boolean |
getIsRemoved()
Get the IsRemoved property. |
boolean |
getLabelShown()
Get the LabelShown property. |
String |
getName()
Get the Name property. |
protected List |
getPopupMenuItems(List items)
Get the menu items for the popup menu |
protected void |
getPropertiesComponents(List comps,
int tabIdx)
Create the properties contents |
String |
getTypeName()
Return the human readable name of this component |
void |
initAfterUnPersistence(MultiDisplayHolder displayControl,
ControlContext vc,
Hashtable properties)
Called by the IntegratedDataViewer to
initialize after this control has been unpersisted |
void |
initDone()
Finish with initialization |
void |
loadData()
Tell components to load |
boolean |
removeDisplayComponent()
Remove me |
void |
setBackgroundColor(Color value)
Set the BackgroundColor property. |
void |
setDisplayControl(MultiDisplayHolder displayControl)
Set the display control I'm in |
void |
setDisplayGroup(DisplayGroup value)
Set the DisplayGroup property. |
void |
setIsRemoved(boolean value)
Set the IsRemoved property. |
void |
setLabelShown(boolean value)
Set the LabelShown property. |
void |
setName(String value)
Set the Name property. |
void |
showPopup(JComponent where,
int x,
int y)
SHow the popup menu |
boolean |
showProperties()
Show the properties dialog |
String |
toString()
to string |
| 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 String PROP_REMOVED
public boolean isRemoved
protected boolean hasBeenInitialized
public static final String CMD_SAVEIMAGE
public static final String CMD_SAVEMOVIE
protected JLabel displayLabel
protected MultiDisplayHolder displayControl
| Constructor Detail |
|---|
public DisplayComponent()
public DisplayComponent(String name)
name - name| Method Detail |
|---|
public void initDone()
public void initAfterUnPersistence(MultiDisplayHolder displayControl,
ControlContext vc,
Hashtable properties)
IntegratedDataViewer to
initialize after this control has been unpersisted
displayControl - The display control I am part ofvc - The context in which this control existsproperties - Properties that may hold thingsprotected abstract JComponent doMakeContents()
public JComponent getContents()
public void setDisplayControl(MultiDisplayHolder displayControl)
displayControl - The display controlprotected MultiDisplayHolder getDisplayControl()
public void animationTimeChanged(Real time)
time - time
public void loadData()
throws RemoteException,
VisADException
RemoteException - On badness
VisADException - On badnesspublic void doSaveMovie()
public void doSaveImage()
protected List addGroupMenuItems(List items)
items - menu items
public List getDisplayables()
public boolean removeDisplayComponent()
protected boolean doApplyProperties()
doApplyProperties in class PropertiedThingpublic void doRemove()
public void setName(String value)
value - The new value for Namepublic String getName()
public void setDisplayGroup(DisplayGroup value)
value - The new value for DisplayGrouppublic DisplayGroup getDisplayGroup()
public String toString()
toString in class Objectpublic void setBackgroundColor(Color value)
value - The new value for BackgroundColorpublic Color getBackgroundColor()
public String getTypeName()
protected void getPropertiesComponents(List comps,
int tabIdx)
getPropertiesComponents in class PropertiedThingcomps - List of componentstabIdx - Which tabprotected boolean applyProperties()
applyProperties in class PropertiedThingprotected List getPopupMenuItems(List items)
items - List of items to add to
public boolean showProperties()
showProperties in class PropertiedThing
public void showPopup(JComponent where,
int x,
int y)
where - component to show near tox - xy - yprotected JLabel getDisplayLabel()
protected JLabel doMakeDisplayLabel()
public void setLabelShown(boolean value)
value - The new value for LabelShownpublic boolean getLabelShown()
public void setIsRemoved(boolean value)
value - The new value for IsRemovedpublic boolean getIsRemoved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||