|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.TimerTask
com.nutiteq.location.NutiteqLocationMarker
public class NutiteqLocationMarker
Default implementation for location marker. Supports separate placemarks for indicating connection state (either connected or connection lost).
| Constructor Summary | |
|---|---|
NutiteqLocationMarker(Placemark placemark,
int updateInterval,
boolean track)
|
|
NutiteqLocationMarker(Placemark placemarkConnected,
Placemark connectionLost,
int updateInterval,
boolean track)
|
|
| Method Summary | |
|---|---|
void |
paint(com.nutiteq.wrappers.Graphics g,
MapPos middlePoint,
int screenCenterX,
int screenCenterY)
Not part of public API |
void |
quit()
Notify marker to quit updates |
void |
run()
|
void |
setLocation(WgsPoint wgsPoint)
|
void |
setLocationSource(LocationSource source)
Set location source into marker. |
void |
setMapComponent(BasicMapComponent mapComponent)
Not part of public API |
void |
setTrackingEnabled(boolean enabled)
|
void |
updatePosition()
Not part of public API |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NutiteqLocationMarker(Placemark placemark,
int updateInterval,
boolean track)
placemark - graphical part of marker, painted on mapupdateInterval - update interval for marker display. If 0, then screen will be
updated when location is received from location sourcetrack - move center of map to received location
public NutiteqLocationMarker(Placemark placemarkConnected,
Placemark connectionLost,
int updateInterval,
boolean track)
placemarkConnected - marker for location source connectedconnectionLost - marker for connection to location source lostupdateInterval - update interval for marker display. If 0, then screen will be
updated when location is received from location sourcetrack - move center of map to received location| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.util.TimerTask
public void paint(com.nutiteq.wrappers.Graphics g,
MapPos middlePoint,
int screenCenterX,
int screenCenterY)
paint in interface LocationMarkerpublic void setLocation(WgsPoint wgsPoint)
setLocation in interface LocationListenerpublic void setMapComponent(BasicMapComponent mapComponent)
setMapComponent in interface LocationMarkerpublic void updatePosition()
updatePosition in interface LocationMarkerpublic void setLocationSource(LocationSource source)
LocationMarker
setLocationSource in interface LocationMarkersource - location source associated with this markerpublic void quit()
LocationMarker
quit in interface LocationMarkerpublic void setTrackingEnabled(boolean enabled)
setTrackingEnabled in interface LocationMarker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||