|
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.JeospaceComp
org.jeospace.ui.swt.widgets.AngleSpinner
A compound widget for manipulating Angle values.
The style of the angle displayed is determined by the AngleFormat object that the control is instantiated with. The angle object may be a multi-field object depending on the formatting specified. Individual fields are manipulated by selecting the field text then using the widget's controls.
| Field Summary |
| Fields inherited from class org.jeospace.ui.swt.widgets.JeospaceComp |
listenerArray, NULL_LISTENER_ARRAY |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
AngleSpinner(org.eclipse.swt.widgets.Composite parent)
Constructor. |
|
AngleSpinner(org.eclipse.swt.widgets.Composite parent,
Angle initial)
Constructor. |
|
AngleSpinner(org.eclipse.swt.widgets.Composite parent,
Angle initial,
AngleFormat formatter)
Constructor. |
|
| Method Summary | |
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed)
Override Composite |
Angle |
getAngle()
Return the Angle object that this control is acting on. |
Angle |
getMaximum()
Return the maximum value. |
Angle |
getMinimum()
Return the minimum value. |
static void |
main(java.lang.String[] arg)
Create a Shell with an AngleSpinner inside. |
void |
mouseDoubleClick(org.eclipse.swt.events.MouseEvent me)
Sent when a mouse button is double clicked. |
void |
mouseDown(org.eclipse.swt.events.MouseEvent me)
Sent when a mouse button is pressed. |
void |
mouseUp(org.eclipse.swt.events.MouseEvent me)
Sent when a mouse button is released. |
void |
refresh()
Reset the formatted text field, without changing the spider parameters. |
void |
run()
Routine to update the formatted angle text on the display thread. |
void |
setAngle(Angle newAngle)
Set the Angle object to be manipulated by the control. |
void |
setAngleFormat(AngleFormat formatter)
Set the formatter. |
void |
setLayout(org.eclipse.swt.widgets.Layout layout)
Override Composite, Ignored. |
void |
setMaximum(Angle maximum)
Set the maximum value the Angle object in this control may have. |
void |
setMinimum(Angle minimum)
Set the minimum value the Angle object in this control may have. |
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
Clean up our listeners and timer threads |
| Methods inherited from class org.jeospace.ui.swt.widgets.JeospaceComp |
addValueChangeListener, fireValueChangeEvent, removeValueChangeListener |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
changed, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, 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 AngleSpinner(org.eclipse.swt.widgets.Composite parent)
An initial Angle object will be created with a value of zero. There will be no limits imposed on the value of the Angle. An AngleFormat object with the style AngleFormatStyle.ANGLE will be created as the formatter.
parent - - The parent Composite object that this control
will be added to.
public AngleSpinner(org.eclipse.swt.widgets.Composite parent,
Angle initial)
There will be no limits imposed on the value of the Angle. An AngleFormat object with the style AngleFormatStyle.ANGLE will be created as the formatter.
parent - The parent Composite object that this control
will be added to.initial - The initial Angle object that this control
will act on. If null, a new zero value Angle object will be created.
public AngleSpinner(org.eclipse.swt.widgets.Composite parent,
Angle initial,
AngleFormat formatter)
There will be no limits imposed on the value of the Angle.
parent - The parent Composite object that this control
will be added to.initial - The initial Angle object that this control
will act on. If null, a new zero value Angle object will be created.formatter - The AngleFormat object that will format the
Angle object for display. If null, an AngleFormat object with
the style AngleFormatStyle.ANGLE will be created.| Method Detail |
public void setLayout(org.eclipse.swt.widgets.Layout layout)
public org.eclipse.swt.graphics.Point computeSize(int wHint,
int hHint,
boolean changed)
public void widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
widgetDisposed in interface org.eclipse.swt.events.DisposeListenerpublic void mouseDoubleClick(org.eclipse.swt.events.MouseEvent me)
mouseDoubleClick in interface org.eclipse.swt.events.MouseListenerpublic void mouseDown(org.eclipse.swt.events.MouseEvent me)
mouseDown in interface org.eclipse.swt.events.MouseListenerme - the event descriptorpublic void mouseUp(org.eclipse.swt.events.MouseEvent me)
mouseUp in interface org.eclipse.swt.events.MouseListenerme - the event descriptorpublic void run()
run in interface java.lang.Runnablepublic void setAngleFormat(AngleFormat formatter)
formatter - The AngleFormat objectpublic void setAngle(Angle newAngle)
newAngle - The new angle valuepublic Angle getAngle()
public void setMinimum(Angle minimum)
minimum - An Angle object containing the minimum value for
the Angle in this control. A value of null will set the minimum
value for the control to it's greatest negative value.public Angle getMinimum()
public void setMaximum(Angle maximum)
maximum - An Angle object containing the maximum value for
the Angle in this control. A value of null will set the maximum
value for the control to it's greatest positive value.public Angle getMaximum()
public void refresh()
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 | ||||||||||