|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.jeospace.ui.swt.widgets.NavigationControl
A consolidated concrete implementation of PositionControl and OrientationControl provides a ui for navigation.
| Field Summary |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
NavigationControl(org.eclipse.swt.widgets.Composite parent)
Constructor. |
|
| Method Summary | |
void |
enableOrientation(boolean enabled)
Set the enabled state of the control and it's ui elements. |
void |
enablePosition(boolean enabled)
Set the enabled state of the control and it's ui elements. |
void |
get(Attitude attitude)
Return the orientation data in the argument object. |
void |
get(Cartesian cartesian)
Return the positioning data in the argument object. |
void |
get(Quaternion quat)
Return the orientation data in the argument object. |
Polar |
getPolar()
Return the position coordinate object. |
static void |
main(java.lang.String[] arg)
Create a Shell with the control inside. |
void |
mouseDoubleClick(org.eclipse.swt.events.MouseEvent me)
Ignored. |
void |
mouseDown(org.eclipse.swt.events.MouseEvent me)
Ignored. |
void |
mouseUp(org.eclipse.swt.events.MouseEvent me)
Process a mouse release event. |
void |
run()
Update the state of the ui elements - called by the display thread |
void |
set(Attitude attitude)
Set the working coordinate. |
void |
set(Polar polar)
Set the working coordinate. |
void |
setMinimumElevation(Length min)
Set the minimum elevation allowed |
void |
updateOrientation(double timeValue)
Update the orientation for the next simulation frame. |
void |
updatePosition(double timeValue)
Update the position and orientation for the next simulation frame. |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent se)
Ignored. |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent se)
Handler for selection events. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NavigationControl(org.eclipse.swt.widgets.Composite parent)
parent - The parent Composite object that this control
will be added to.| Method Detail |
public void widgetSelected(org.eclipse.swt.events.SelectionEvent se)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerse - the event descriptor generated by the selected widgetpublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent se)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerpublic void mouseDown(org.eclipse.swt.events.MouseEvent me)
mouseDown in interface org.eclipse.swt.events.MouseListenerme - The event that caused this method to be calledpublic void mouseUp(org.eclipse.swt.events.MouseEvent me)
mouseUp in interface org.eclipse.swt.events.MouseListenerme - The event that caused this method to be calledpublic void mouseDoubleClick(org.eclipse.swt.events.MouseEvent me)
mouseDoubleClick in interface org.eclipse.swt.events.MouseListenerme - The event that caused this method to be calledpublic void set(Polar polar)
null, then the control is disabled.
set in interface PositionControlpolar - The working coordinatepublic void get(Cartesian cartesian)
get in interface Positioncartesian - The Cartesian coordinate object
to initialize with the current positioning data.public Polar getPolar()
getPolar in interface Positionpublic void enablePosition(boolean enabled)
enablePosition in interface Positionenabled - The state of the controlpublic void updatePosition(double timeValue)
updatePosition in interface PositiontimeValue - The timeValue is ignored.public void set(Attitude attitude)
null, then the control is disabled.
set in interface OrientationControlattitude - The working coordinatepublic void get(Attitude attitude)
get in interface Orientationattitude - The Attitude coordinate object
to initialize with the current positioning data.public void get(Quaternion quat)
get in interface Orientationquat - The Quaternion coordinate object
to initialize with the current positioning data.public void enableOrientation(boolean enabled)
enableOrientation in interface Orientationenabled - The state of the controlpublic void updateOrientation(double timeValue)
updateOrientation in interface OrientationtimeValue - The timeValue is ignored.public void run()
run in interface java.lang.Runnablepublic void setMinimumElevation(Length min)
min - The minimum elevation allowed. If null, the minimum will be set
to a default value of 1km.public static void main(java.lang.String[] arg)
arg - Command line arguments, none necessary.
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||