|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.ViewManager
ucar.unidata.idv.CrossSectionViewManager
public class CrossSectionViewManager
A wrapper around a Cross Section (XSDisplay) display master. Provides an interface for managing user interactions, gui creation, etc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.ViewManager |
|---|
ViewManager.MatrixCommand |
| Field Summary | |
|---|---|
static String |
PREF_CLIP
Preference for clipping at 3d box_ |
static String |
PREF_PREFIX
Prefix for preferences |
| Constructor Summary | |
|---|---|
CrossSectionViewManager()
A paramterless ctor for XmlEncoder based decoding. |
|
CrossSectionViewManager(ViewContext viewContext,
ViewDescriptor desc,
String properties)
Create a CrossSectionViewManager with the given context, descriptor, object store and properties string. |
|
CrossSectionViewManager(ViewContext viewContext,
ViewDescriptor desc,
String properties,
AnimationInfo animationInfo)
Create a CrossSectionViewManager with the given context, descriptor, object store, properties string and animation state |
|
| Method Summary | |
|---|---|
void |
applyPreferences()
Some user preferences have changed. |
protected Container |
doMakeContents()
Create the GUI. |
protected DisplayMaster |
doMakeDisplayMaster()
Factory method for creating the display master |
boolean |
getClipping()
Get the 3d clipping flag |
protected Color |
getDefaultBackground()
Get the default background color |
protected Color |
getDefaultForeground()
Get the default foreground color |
protected void |
getInitialBooleanProperties(List props)
Get the intial BooleanProperty-s |
boolean |
getShowSideLegend()
Don't show the side legend |
String |
getTypeName()
What type of view is this |
XSDisplay |
getXSDisplay()
Get the cross section display that this view manager uses. |
protected void |
handleBooleanPropertyChange(String id,
boolean value)
The BooleanProperty identified byt he given id has changed. |
protected void |
init()
Initializr this object. |
void |
initializeViewMenu(JMenu viewMenu)
Initialize the view menu |
protected JMenu |
makeShowMenu()
Create and return the show menu. |
void |
setClipping(boolean value)
Set the clipping flag |
void |
setDisplayTitle(String titlePart)
Set the title shown in the gui by appending the given titlePart to the name of the XSDisplay. |
void |
setNewDisplayTitle(String newTitle)
Make this String the new title on the display |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, 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 |
| Field Detail |
|---|
public static final String PREF_PREFIX
public static final String PREF_CLIP
| Constructor Detail |
|---|
public CrossSectionViewManager()
public CrossSectionViewManager(ViewContext viewContext,
ViewDescriptor desc,
String properties)
throws VisADException,
RemoteException
viewContext - Provides a context for the VM to be in.desc - The ViewDescriptor that identifies this VMproperties - A set of ";" delimited name-value pairs.
RemoteException
VisADException
public CrossSectionViewManager(ViewContext viewContext,
ViewDescriptor desc,
String properties,
AnimationInfo animationInfo)
throws VisADException,
RemoteException
viewContext - Provides a context for the VM to be in.desc - The ViewDescriptor that identifies this VMproperties - A set of ";" delimited name-value pairs.animationInfo - Initial animation properties
RemoteException
VisADException| Method Detail |
|---|
public void initializeViewMenu(JMenu viewMenu)
initializeViewMenu in class ViewManagerviewMenu - the view menu
protected DisplayMaster doMakeDisplayMaster()
throws VisADException,
RemoteException
doMakeDisplayMaster in class ViewManagerRemoteException - On badness
VisADException - On badness
protected void init()
throws VisADException,
RemoteException
XSDisplay.
init in class ViewManagerRemoteException
VisADExceptionprotected Color getDefaultForeground()
getDefaultForeground in class ViewManagerprotected Color getDefaultBackground()
getDefaultBackground in class ViewManagerpublic void applyPreferences()
applyPreferences in class ViewManagerpublic XSDisplay getXSDisplay()
public void setClipping(boolean value)
value - The valuepublic boolean getClipping()
protected Container doMakeContents()
doMakeContents in class ViewManagerpublic void setDisplayTitle(String titlePart)
titlePart - The suffixpublic void setNewDisplayTitle(String newTitle)
newTitle - The new titlepublic boolean getShowSideLegend()
getShowSideLegend in class ViewManagerpublic String getTypeName()
getTypeName in class ViewManager
protected void handleBooleanPropertyChange(String id,
boolean value)
throws Exception
handleBooleanPropertyChange in class ViewManagerid - Id of the changed BooleanPropertyvalue - Its new value
Exception - problem handeling the changeprotected void getInitialBooleanProperties(List props)
getInitialBooleanProperties in class ViewManagerprops - list to add them to.protected JMenu makeShowMenu()
makeShowMenu in class ViewManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||