|
||||||||||
| 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
public abstract class NavigatedViewManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.ViewManager |
|---|
ViewManager.MatrixCommand |
| Field Summary | |
|---|---|
static String |
CMD_NAV_DOWN
Action command to pan down |
static String |
CMD_NAV_HOME
Action command to reset zoom and pan |
static String |
CMD_NAV_LEFT
Action command to pan left |
static String |
CMD_NAV_RIGHT
Action command to pan right |
static String |
CMD_NAV_ROTATELEFT
Action command to rotate |
static String |
CMD_NAV_ROTATERIGHT
Action command to rotate |
static String |
CMD_NAV_SMALLDOWN
Action command to pan down |
static String |
CMD_NAV_SMALLLEFT
Action command to pan left |
static String |
CMD_NAV_SMALLRIGHT
Action command to pan right |
static String |
CMD_NAV_SMALLROTATELEFT
Action command to rotate |
static String |
CMD_NAV_SMALLROTATERIGHT
Action command to rotate |
static String |
CMD_NAV_SMALLTILTDOWN
Action command to tilt |
static String |
CMD_NAV_SMALLTILTUP
Action command to tilt |
static String |
CMD_NAV_SMALLUP
Action command to pan up |
static String |
CMD_NAV_SMALLZOOMIN
Action command to zoom in |
static String |
CMD_NAV_SMALLZOOMOUT
Action command to zoom out |
static String |
CMD_NAV_UP
Action command to pan up |
static String |
CMD_NAV_ZOOMIN
Action command to zoom in |
static String |
CMD_NAV_ZOOMOUT
Action command to zoom out |
protected CursorReadoutWindow |
cursorReadoutWindow
_more_ |
static String |
PROP_VERTICALRANGE
Vertical range property |
static String |
SHARE_MATRIX
Defines the viewpoint matrix when sharing state |
static double |
TRANSLATE_FACTOR
How far do we zoom on a zoom in or out |
static double |
ZOOM_FACTOR
How far do we zoom on a zoom in or out |
| Constructor Summary | |
|---|---|
NavigatedViewManager()
Default constructor |
|
NavigatedViewManager(ViewContext viewContext)
Construct a NavigatedViewManager from an IDV |
|
NavigatedViewManager(ViewContext viewContext,
ViewDescriptor desc,
String properties)
Construct a NavigatedViewManager with the specified params |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Required interface for ActionEvents, to implement ActionListener for the UI objects such as JButton-s and MenuItem-s |
protected void |
addPropertiesComponents(JTabbedPane tabbedPane)
Add components to the properties dialog |
protected void |
animationTimeChanged()
The time changed |
void |
applyPreferences()
Apply preferences |
boolean |
applyProperties()
Apply properties. |
protected void |
checkHistoryMatrix()
Check the matrix history. |
void |
destroy()
Cleanup when destroying this object. |
void |
displayChanged(DisplayEvent de)
An implementation of the the DisplayListener interface. |
Component |
doMakeViewPointToolBar(int orientation)
Creates the Viewpoint Toolbar in the specified orientation. |
protected Component |
doMakeZoomPanToolBar(int orientation)
Creates the Zoom/Pan Toolbar in the specified orientation. |
boolean |
getClipping()
Get the 3d clipping flag |
protected void |
getInitialBooleanProperties(List props)
Get the intial BooleanProperty-s |
boolean |
getLabelsVisible()
Get the show vertical scale flag |
NavigatedDisplay |
getNavigatedDisplay()
Get the NavigatedDisplay associated with this ViewManager |
boolean |
getShowCursor()
Get the show cursor readout flag |
boolean |
getTransectLabelsVisible()
Get the show vertical scale flag |
double[] |
getVerticalRange()
Get the min/max used for the vertical range. |
Unit |
getVerticalRangeUnit()
Get the Unit used for the vertical range. |
protected ViewpointControl |
getViewpointControl()
Get the viewpoint control for this view manager. |
protected void |
handleBooleanPropertyChange(String id,
boolean value)
The BooleanProperty identified byt he given id has changed. |
protected void |
handleControlChanged(ControlEvent e)
Respond to ControlEvents. |
protected boolean |
hasViewpointControl()
Has a viewpoint control |
protected void |
init()
Initialize this object. |
protected void |
initToolBars()
Initialize the toolbars for the GUI |
protected void |
initWithInner(ViewManager that,
boolean ignoreWindow)
Initialize this object's state with the state from that. |
protected JMenu |
makeShowMenu()
Create and return the show menu. |
protected void |
matrixChanged()
Handle the change to the matrix |
protected void |
perspectiveViewChanged(boolean v)
Handle a perspective view change |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Handle the receipt of shared data |
void |
setClipping(boolean value)
Set the clipping flag |
protected void |
setDisplayMaster(DisplayMaster master)
Set the DisplayMaster |
void |
setLabelsVisible(boolean value)
Set the show vertical scale flag |
protected void |
setReadoutFormat()
Set the format for the curso readout |
void |
setShowCursor(boolean value)
Set the show cursor flag |
void |
setTransectLabelsVisible(boolean value)
Set the show vertical scale flag |
void |
setVerticalRange(double[] r)
Set the min/max used for the vertical range. |
void |
setVerticalRangeUnit(Unit u)
Set the Unit used for the vertical range. |
protected void |
setVerticalRangeUnitPreference(NavigatedDisplay nd)
Set the vertical range unit from the preference |
void |
setWindow(IdvWindow w)
Set the window that this ViewManager is shown in. |
protected void |
verticalRangeChanged()
Handle a change to the vertical range |
protected void |
verticalScaleChanged()
handle a vertical scale change |
| 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 PROP_VERTICALRANGE
public static final double ZOOM_FACTOR
public static final double TRANSLATE_FACTOR
public static final String CMD_NAV_ZOOMIN
public static final String CMD_NAV_ROTATELEFT
public static final String CMD_NAV_ROTATERIGHT
public static final String CMD_NAV_ZOOMOUT
public static final String CMD_NAV_HOME
public static final String CMD_NAV_RIGHT
public static final String CMD_NAV_LEFT
public static final String CMD_NAV_UP
public static final String CMD_NAV_DOWN
public static final String CMD_NAV_SMALLZOOMIN
public static final String CMD_NAV_SMALLROTATELEFT
public static final String CMD_NAV_SMALLROTATERIGHT
public static final String CMD_NAV_SMALLTILTUP
public static final String CMD_NAV_SMALLTILTDOWN
public static final String CMD_NAV_SMALLZOOMOUT
public static final String CMD_NAV_SMALLRIGHT
public static final String CMD_NAV_SMALLLEFT
public static final String CMD_NAV_SMALLUP
public static final String CMD_NAV_SMALLDOWN
public static final String SHARE_MATRIX
protected CursorReadoutWindow cursorReadoutWindow
| Constructor Detail |
|---|
public NavigatedViewManager()
public NavigatedViewManager(ViewContext viewContext)
NavigatedViewManager from an IDV
viewContext - Really the IDV
public NavigatedViewManager(ViewContext viewContext,
ViewDescriptor desc,
String properties)
throws VisADException,
RemoteException
NavigatedViewManager 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 NavigatedDisplay getNavigatedDisplay()
protected void setDisplayMaster(DisplayMaster master)
DisplayMaster
setDisplayMaster in class ViewManagermaster - The display master
protected void init()
throws VisADException,
RemoteException
init in class ViewManagerRemoteException
VisADException
protected void initWithInner(ViewManager that,
boolean ignoreWindow)
throws VisADException,
RemoteException
initWithInner in class ViewManagerthat - The other obejct to get state fromignoreWindow - If true then don't set the window size and location
RemoteException - On badness
VisADException - On badnesspublic boolean applyProperties()
applyProperties in class ViewManagerprotected void addPropertiesComponents(JTabbedPane tabbedPane)
addPropertiesComponents in class ViewManagertabbedPane - the tabbed pane to add toprotected void initToolBars()
initToolBars in class ViewManagerprotected boolean hasViewpointControl()
protected ViewpointControl getViewpointControl()
protected void perspectiveViewChanged(boolean v)
v - true to set to perspective viewprotected void verticalScaleChanged()
public void destroy()
destroy in class ViewManager
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class SharableImplfrom - Who is it fromdataId - What is itdata - Here it isprotected void handleControlChanged(ControlEvent e)
ControlEvents.
handleControlChanged in class ViewManagere - ControlEvent to respond to
public void displayChanged(DisplayEvent de)
throws VisADException,
RemoteException
firstFrameDone
on the DisplayControls
displayChanged in interface DisplayListenerdisplayChanged in class ViewManagerde - The DisplayEvent
RemoteException
VisADExceptionprotected void animationTimeChanged()
ViewManager
animationTimeChanged in class ViewManagerprotected void matrixChanged()
protected void verticalRangeChanged()
protected void setReadoutFormat()
public void applyPreferences()
applyPreferences 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 void checkHistoryMatrix()
public void setWindow(IdvWindow w)
WindowListener
and sets the bounds of the window if the windowBounds
is non-null.
setWindow in class ViewManagerw - The windowpublic Component doMakeViewPointToolBar(int orientation)
orientation - orientation of the toolbar
(JToolBar.VERTICAL or JToolBar.HORIZONTAL)
protected Component doMakeZoomPanToolBar(int orientation)
orientation - orientation of the toolbar
(JToolBar.VERTICAL or JToolBar.HORIZONTAL)
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListeneractionPerformed in class ViewManagerevent - an ActionEventprotected JMenu makeShowMenu()
makeShowMenu in class ViewManagerpublic void setShowCursor(boolean value)
value - The valuepublic boolean getShowCursor()
public void setLabelsVisible(boolean value)
value - The valuepublic boolean getLabelsVisible()
public void setTransectLabelsVisible(boolean value)
value - The valuepublic boolean getTransectLabelsVisible()
public void setClipping(boolean value)
value - The valuepublic boolean getClipping()
public void setVerticalRangeUnit(Unit u)
Unit used for the vertical range.
u - new unitpublic Unit getVerticalRangeUnit()
Unit used for the vertical range.
public double[] getVerticalRange()
public void setVerticalRange(double[] r)
r - array of vertical range values (double[] {min, max})
protected void setVerticalRangeUnitPreference(NavigatedDisplay nd)
throws VisADException,
RemoteException
nd - navigated display to set the unit on
RemoteException - problem with remote display
VisADException - problem with local display
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||