|
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.LatitudeSpider
A compound widget for manipulating Latitude values. A spider
provides a combination of conventional spinner and slider widget functionality.
The control can continuously increase (or decrease) the value of the
angle object (like a spinner) and by dragging the slider control
the amount of the increment (or decrement) value can be
dynamically changed.
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 may be manipulated by selecting the field text.
| 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 | |
LatitudeSpider(org.eclipse.swt.widgets.Composite parent)
Constructor. |
|
LatitudeSpider(org.eclipse.swt.widgets.Composite parent,
Latitude initial)
Constructor. |
|
LatitudeSpider(org.eclipse.swt.widgets.Composite parent,
Latitude initial,
AngleFormat formatter)
Constructor. |
|
| Method Summary | |
void |
addRollListener(Rollable listener)
Add a listener for Rollable events |
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed)
Override Composite |
Latitude |
getLatitude()
Return the Latitude 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 LatitudeSpider 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 |
removeRollListener(Rollable listener)
Remove a listener for Rollable events |
void |
run()
Routine to update the formatted angle text on the display thread. |
void |
setAngleFormat(AngleFormat formatter)
Set the formatter. |
void |
setLatitude(Latitude newAngle)
Set the Latitude object to be manipulated by the control. |
void |
setLayout(org.eclipse.swt.widgets.Layout layout)
Override Composite, Ignored. |
void |
setMaximum(Angle maximum)
Set the maximum value the Latitude object in this control may have. |
void |
setMinimum(Angle minimum)
Set the minimum value the Latitude object in this control may have. |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent se)
Ignored. |
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
Clean up our listeners and timer threads |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent se)
Handler for selection events. |
| 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 LatitudeSpider(org.eclipse.swt.widgets.Composite parent)
There will be no initial limits imposed on the value of the Latitude by this control. However, latitudes by default are limited to a range of +/- 90 degrees. 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 LatitudeSpider(org.eclipse.swt.widgets.Composite parent,
Latitude initial)
There will be no initial limits imposed on the value of the Latitude by this control. However, latitudes by default are limited to a range of +/- 90 degrees. 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 Latitude object that this control
will act on. If null, a new zero value Angle object will be
created.
public LatitudeSpider(org.eclipse.swt.widgets.Composite parent,
Latitude initial,
AngleFormat formatter)
There will be no initial limits imposed on the value of the Latitude by this control. However, latitudes by default are limited to a range of +/- 90 degrees.
parent - - The parent Composite object that this control
will be added to.initial - - The initial Latitude object that this control
will act on. If null, a new zero value Latitude object will be
created.formatter - - The AngleFormat object that will format the
Latitude 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 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 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 addRollListener(Rollable listener)
Rollable events
listener - the listenerpublic void removeRollListener(Rollable listener)
Rollable events
listener - the listenerpublic void setAngleFormat(AngleFormat formatter)
formatter - - The AngleFormat objectpublic void setLatitude(Latitude newAngle)
newAngle - - The new Latitude objectpublic Latitude getLatitude()
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 minumum
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 - the command line arguments
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||