|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.view.geoloc.ViewpointControl
public class ViewpointControl
This class has a menu and ToolBar to control the viewpoint of a 3D display.
| Constructor Summary | |
|---|---|
ViewpointControl(NavigatedDisplay navDisplay)
Construct a new ViewpointControl for the NavigatedDisplay. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Handle the action |
protected void |
applyVerticalScale(VertScaleInfo transfer)
Apply the vertical scale |
void |
changeAutoRotate(boolean v)
A method that is called when the user changes the state of autorotation through the menu or button. |
void |
changeEyePosition()
Change the eye position for stereo systems |
void |
changePerspectiveView(boolean v)
A method that is called when the user changes the perspective view through the menu or button. |
void |
changeVerticalScale(VertScaleInfo transfer)
Change the vertical scale |
boolean |
getAutoRotate()
Get whether the display should autorotate or not |
double |
getEyePosition()
Get the eye position |
JMenu |
getMenu()
Make a Viewpoint controls menu |
boolean |
getPerspectiveView()
Get whether the view is perspective or parallel. |
JToolBar |
getToolBar()
Make a Viewpoint controls toolbar. |
JToolBar |
getToolBar(boolean floatable)
Make a Viewpoint controls toolbar. |
VertScaleDialog |
getVerticalScaleWidget()
Get the vertical scale widget |
ViewpointInfo |
getViewpointInfo()
Get the view point information. |
protected JMenu |
makeMenu()
Make the view point controls menu. |
protected JToolBar |
makeToolBar()
Make the toolbar for this control. |
protected JToolBar |
makeToolBar(boolean floatable)
Make the toolbar for this control. |
void |
makeVerticalScaleMenuItem(JMenu viewMenu)
Add the vertical scale menu item to the menu |
ViewpointInfo |
rotateViewpoint(ViewpointInfo transfer)
Rotate the viewpoint to the parameters in transfer |
void |
setAutoRotate(boolean rotate)
Set the auto rotate value |
void |
setBottomView()
Set the view to the bottom. |
void |
setEastView()
Set the view to the east. |
void |
setEyePosition(double position)
Set the eye position |
void |
setNorthView()
Set the view to the north. |
void |
setPerspectiveView(boolean perspective)
Set the perspective view. |
void |
setSouthView()
Set the view to the south. |
void |
setTopView()
Set the view to the top. |
void |
setViewpointInfo(ViewpointInfo vpi)
Set the view point information |
void |
setWestView()
Set the view to the west. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewpointControl(NavigatedDisplay navDisplay)
navDisplay - display to use (cannot be null)| Method Detail |
|---|
public JToolBar getToolBar()
public JToolBar getToolBar(boolean floatable)
floatable - Is the toolbar floatable
public void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListenerae - The actionprotected JToolBar makeToolBar()
protected JToolBar makeToolBar(boolean floatable)
floatable - Is the toolbar floatable
public JMenu getMenu()
protected JMenu makeMenu()
public void makeVerticalScaleMenuItem(JMenu viewMenu)
viewMenu - Menu to add item topublic void setTopView()
public void setBottomView()
public void setNorthView()
public void setSouthView()
public void setEastView()
public void setWestView()
public void setEyePosition(double position)
position - the eye positionpublic double getEyePosition()
public void changeEyePosition()
public boolean getPerspectiveView()
public void changePerspectiveView(boolean v)
v - true to set perspective viewpublic void setPerspectiveView(boolean perspective)
perspective - true for perspectivepublic boolean getAutoRotate()
public void changeAutoRotate(boolean v)
v - true to set auto rotationpublic void setAutoRotate(boolean rotate)
rotate - true to rotatepublic ViewpointInfo rotateViewpoint(ViewpointInfo transfer)
transfer
transfer - holder of the new view point information
public ViewpointInfo getViewpointInfo()
public void setViewpointInfo(ViewpointInfo vpi)
vpi - new view point infopublic VertScaleDialog getVerticalScaleWidget()
public void changeVerticalScale(VertScaleInfo transfer)
transfer - vertical scale information
protected void applyVerticalScale(VertScaleInfo transfer)
throws Exception
transfer - The info
Exception - On badness
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||