|
||||||||||
| 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.NavigatedViewManager
ucar.unidata.idv.TransectViewManager
public class TransectViewManager
A wrapper around a TransectDisplay 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_GRIDLINES
Preference for grid lines or 2d _ |
| Constructor Summary | |
|---|---|
TransectViewManager()
Default constructor |
|
TransectViewManager(ViewContext viewContext)
Construct a TransectViewManager from an IDV |
|
TransectViewManager(ViewContext viewContext,
ViewDescriptor desc,
String properties)
Construct a TransectViewManager with the specified params |
|
| Method Summary | |
|---|---|
boolean |
addDisplayInfo(DisplayInfo displayInfo)
Override base class method to force setting fast rendering to true. |
protected void |
addPropertiesComponents(JTabbedPane tabbedPane)
Add a properties component |
boolean |
applyProperties()
Apply properties specific to this ViewManager |
protected Container |
doMakeContents()
Make the GUI contents. |
protected DisplayMaster |
doMakeDisplayMaster()
Factory method to create the display master |
ArrayList |
doMakeMenuList()
Create and return the list of menus for the menu bar. |
protected void |
doneFirstFrame()
When we have rendered the first frame tell any TransectDrawingControls to show the display transect |
void |
editTransects()
Create, if needed, and show a TransectDrawingControl |
Transect |
getAxisTransect()
Get the Transect that is implicitly defined by the x axis |
protected void |
getInitialBooleanProperties(List props)
Add to the intial Boolean properties |
Real |
getMaxDataDistance()
Get the MaxDataDistance property. |
boolean |
getShowGridLines()
Get the show cursor readout flag |
Transect |
getTransect()
Get the Transect property. |
Transect |
getTransect(boolean force)
Return the transect |
TransectDisplay |
getTransectDisplay()
Helper method |
String |
getTypeName()
What type of view is this |
boolean |
getUseFastRendering(boolean b)
This is called by display controls and allows us to force fast rendering |
protected void |
handleBooleanPropertyChange(String id,
boolean value)
The BooleanProperty identified byt he given id has changed. |
protected void |
initBooleanProperties()
Set some properties |
void |
initializeTransectMenu(JMenu transectMenu)
Add items to trasnect menu |
void |
initializeViewMenu(JMenu viewMenu)
Initialize the view menu |
protected void |
initWithInner(ViewManager that,
boolean ignoreWindow)
Initialize this object's state with the state from that. |
void |
keyWasTyped(KeyEvent keyEvent)
Process the key event |
protected JMenu |
makeShowMenu()
Create and return the show menu. |
protected void |
matrixChanged()
We've panned or zoomed. |
void |
setLastActive(boolean b)
Set last active |
void |
setMaxDataDistance(Real value)
Set the MaxDataDistance property. |
void |
setTransect(Transect value)
Set the Transect property. |
protected void |
updateNameLabel()
Update the name jlabel. |
protected void |
verticalRangeChanged()
Show the display transect |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, removeSharable, 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_GRIDLINES
| Constructor Detail |
|---|
public TransectViewManager()
public TransectViewManager(ViewContext viewContext)
TransectViewManager from an IDV
viewContext - Really the IDV
public TransectViewManager(ViewContext viewContext,
ViewDescriptor desc,
String properties)
throws VisADException,
RemoteException
TransectViewManager with the specified params
viewContext - context in which this MVM existsdesc - ViewDescriptorproperties - semicolon separated list of properties (can be null)
RemoteException
VisADException| Method Detail |
|---|
public TransectDisplay getTransectDisplay()
protected DisplayMaster doMakeDisplayMaster()
throws VisADException,
RemoteException
doMakeDisplayMaster in class ViewManagerRemoteException - On badness
VisADException - On badnesspublic boolean getUseFastRendering(boolean b)
getUseFastRendering in class ViewManagerb - The displays fast rendering flag
public boolean addDisplayInfo(DisplayInfo displayInfo)
throws RemoteException,
VisADException
addDisplayInfo in class ViewManagerdisplayInfo - The display info to add.
RemoteException
VisADException
protected void initWithInner(ViewManager that,
boolean ignoreWindow)
throws VisADException,
RemoteException
initWithInner in class NavigatedViewManagerthat - The other obejct to get state fromignoreWindow - If true then don't set the window size and location
RemoteException - On badness
VisADException - On badnessprotected void updateNameLabel()
updateNameLabel in class ViewManager
protected void handleBooleanPropertyChange(String id,
boolean value)
throws Exception
handleBooleanPropertyChange in class NavigatedViewManagerid - Id of the changed BooleanPropertyvalue - Its new value
Exception - problem handeling the changepublic boolean applyProperties()
applyProperties in class NavigatedViewManagerprotected void addPropertiesComponents(JTabbedPane tabbedPane)
addPropertiesComponents in class NavigatedViewManagertabbedPane - the tabbed paneprotected JMenu makeShowMenu()
makeShowMenu in class NavigatedViewManagerprotected void getInitialBooleanProperties(List props)
getInitialBooleanProperties in class NavigatedViewManagerprops - list to add toprotected Container doMakeContents()
doMakeContents in class ViewManagerprotected void doneFirstFrame()
doneFirstFrame in class ViewManagerprotected void matrixChanged()
matrixChanged in class NavigatedViewManagerprotected void verticalRangeChanged()
verticalRangeChanged in class NavigatedViewManagerprotected void initBooleanProperties()
initBooleanProperties in class ViewManagerpublic void initializeViewMenu(JMenu viewMenu)
initializeViewMenu in class ViewManagerviewMenu - The view menupublic ArrayList doMakeMenuList()
doMakeMenuList in class ViewManagerpublic void initializeTransectMenu(JMenu transectMenu)
transectMenu - menupublic void setLastActive(boolean b)
setLastActive in class ViewManagerb - true to show last activepublic void editTransects()
public void setTransect(Transect value)
value - The new value for Transectpublic Transect getTransect()
public Transect getAxisTransect()
public Transect getTransect(boolean force)
force - If true then create one
public boolean getShowGridLines()
public void keyWasTyped(KeyEvent keyEvent)
keyWasTyped in class ViewManagerkeyEvent - The key eventpublic void setMaxDataDistance(Real value)
value - The new value for MaxDataDistancepublic Real getMaxDataDistance()
public String getTypeName()
getTypeName in class ViewManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||