superwaba.ext.xplat.io.gps
Class GPS
java.lang.Object
|
+--waba.ui.Control
|
+--superwaba.ext.xplat.io.gps.GPS
- public class GPS
- extends Control
Control that display GPS coordinates readen from the serial port.
Fields inherited from class waba.ui.Control |
AFTER,
appId,
asContainer,
asWindow,
backColor,
backDis,
BEFORE,
BOTTOM,
CENTER,
enabled,
FILL,
FIT,
fm,
fmH,
focusLess,
font,
foreColor,
foreDis,
height,
LEFT,
parent,
PREFERRED,
RANGE,
RIGHT,
SAME,
TOP,
visible,
width,
x,
x2,
y,
y2 |
Methods inherited from class waba.ui.Control |
addTimer,
contains,
createGraphics,
getAbsoluteRect,
getBackColor,
getFont,
getFontMetrics,
getForeColor,
getNext,
getParent,
getParentWindow,
getPos,
getRect,
getSize,
isDisplayed,
isEnabled,
isVisible,
onBoundsChanged,
onColorsChanged,
onFontChanged,
onWindowPaintFinished,
postEvent,
removeTimer,
repaint,
repaintNow,
requestFocus,
setBackColor,
setBackForeColors,
setEnabled,
setFocusLess,
setFont,
setForeColor,
setRect,
setRect,
setRect,
setVisible |
GPS
public GPS()
GPS
public GPS(SerialPort sp,
int readInterval)
onEvent
public void onEvent(Event e)
- Description copied from class: Control
- Called to process key, pen, control and other posted events.
- Overrides:
- onEvent in class Control
- Tags copied from class: Control
- Parameters:
event
- the event to process- See Also:
Event
,
KeyEvent
,
PenEvent
onPaint
public void onPaint(Graphics g)
- Description copied from class: Control
- Called to draw the control. When this method is called, the graphics
object passed has been translated into the coordinate system of the
control and the area behind the control has
already been painted. The background is painted by the top-level
window control.
- Overrides:
- onPaint in class Control
- Tags copied from class: Control
- Parameters:
g
- the graphics object for drawing- See Also:
Graphics
getPreferredWidth
public int getPreferredWidth()
- returns the preffered width of this control.
- Overrides:
- getPreferredWidth in class Control
getPreferredHeight
public int getPreferredHeight()
- returns the preffered height of this control.
- Overrides:
- getPreferredHeight in class Control
getLocation
public double[] getLocation()
- returns the location array.
getLatitude
public double getLatitude()
- returns the latitude.
getLongitude
public double getLongitude()
- returns the longitude.
getLastFix
public Time getLastFix()
- returns the time of the last fix.
toCoordinate
public double toCoordinate(String s,
String dir)