net.landspurg.map.tools
Class GPSDisplay
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
javax.microedition.lcdui.game.GameCanvas
net.landspurg.map.MapCanvas
net.landspurg.map.tools.GPSDisplay
- All Implemented Interfaces:
- java.lang.Runnable, BufferImageListener, OneLocListener
public class GPSDisplay
- extends MapCanvas
- implements java.lang.Runnable
Display some GPS informations.
NOTE: need a reference to a MapCanvas
| Fields inherited from class net.landspurg.map.MapCanvas |
currentSel, id, listPlaces, m_autoPositionningEnabeld, m_autoTrack, m_curSat, m_displayCenterArrow, m_displaySize, m_drawConsumption, m_drawLon, m_gpsSegments, m_lastLocation, m_listMyPlaces, m_modeSat, m_modeShortkey, m_moreInfo, m_pause, m_record, m_segments, m_state, m_useResampledImages, m_useUSMetrics, menus, offx, offy, px, py, SAT_ASK, SAT_GOOGLE, SAT_MSN, SAT_YAHOO, size, sizeScr, ST_MOVE_PIN, ST_NORMAL, ST_ZOOM, wayPoint, zoom |
| Fields inherited from class javax.microedition.lcdui.game.GameCanvas |
DOWN_PRESSED, FIRE_PRESSED, GAME_A_PRESSED, GAME_B_PRESSED, GAME_C_PRESSED, GAME_D_PRESSED, LEFT_PRESSED, RIGHT_PRESSED, UP_PRESSED |
| Fields inherited from class javax.microedition.lcdui.Canvas |
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP |
|
Method Summary |
void |
displayTrack(Track track,
boolean flag)
Just redefine display track to ensure that we are in map mode |
protected void |
drawCentered(javax.microedition.lcdui.Graphics g,
java.lang.String inString,
int inpx,
int inpy)
|
void |
paint(javax.microedition.lcdui.Graphics g)
* * Repaint the screen....The repaint process use the buffer thread
Note that various adaptation to screen size are made.... |
void |
paintCompass(javax.microedition.lcdui.Graphics g)
|
void |
paintSat(javax.microedition.lcdui.Graphics g)
|
void |
setGPSReader(GPSReader inReader)
|
void |
setLoc(oneGPSPos newLoc)
|
void |
setMode(int inMode)
|
| Methods inherited from class net.landspurg.map.MapCanvas |
changeSatMode, checkMove, clear, convertDisToString, convLat, convLon, drawArrow, drawBottomIndicators, drawDirectiontoWayPoint, drawInfo, drawSegment, drawString, getAlt, getBufferSize, getCoordAsString, getCourseToTarget, getCurSat, getDir, getDist, getDist, getLat, getLatPy, getLon, getLonPx, getModeProxy, getSelectedItem, getSize, getSpeed, getZoom, goTo, goTo, gotoLonLat, gotoLonLat, iconDownloaded, imageLoaded, init, isTrackDisplayed, keyPressed, keyPressedImpl, keyRepeated, locateURL, paintGPSPos, paintIcons, paintMenu, pointerDragged, pointerPressed, recenterMapAroundSel, recenterMapAroundSel, removeTrack, run, saveRecords, selNext, setBufferSize, setClipRect, setCurSat, setInfoOnScreen, setListener, setModeProxy, setOverlay, setSelectedLoc, setTileSize, setZoom, sizeChanged, stop, stopZooming, xFromLon, yFromLat |
| Methods inherited from class javax.microedition.lcdui.game.GameCanvas |
flushGraphics, flushGraphics, getGraphics, getKeyStates |
| Methods inherited from class javax.microedition.lcdui.Canvas |
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyReleased, pointerReleased, repaint, repaint, serviceRepaints, setFullScreenMode, showNotify |
| Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setCommandListener, setTicker, setTitle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
run |
MODE_EARTH
public static final int MODE_EARTH
- See Also:
- Constant Field Values
MODE_COMPASS
public static final int MODE_COMPASS
- See Also:
- Constant Field Values
MODE_SAT
public static final int MODE_SAT
- See Also:
- Constant Field Values
m_mode
public int m_mode
lastStatusInfo
public int lastStatusInfo
lastStatusInfoStr
public java.lang.String lastStatusInfoStr
GPSDisplay
public GPSDisplay()
setMode
public void setMode(int inMode)
- Overrides:
setMode in class MapCanvas
setGPSReader
public void setGPSReader(GPSReader inReader)
paint
public void paint(javax.microedition.lcdui.Graphics g)
- Description copied from class:
MapCanvas
- * * Repaint the screen....The repaint process use the buffer thread
Note that various adaptation to screen size are made....
- Overrides:
paint in class MapCanvas
paintCompass
public void paintCompass(javax.microedition.lcdui.Graphics g)
displayTrack
public void displayTrack(Track track,
boolean flag)
- Just redefine display track to ensure that we are in map mode
- Overrides:
displayTrack in class MapCanvas
flag - true if we need to rtecetner the view around the content of the track
drawCentered
protected void drawCentered(javax.microedition.lcdui.Graphics g,
java.lang.String inString,
int inpx,
int inpy)
paintSat
public void paintSat(javax.microedition.lcdui.Graphics g)
- Parameters:
g -
setLoc
public void setLoc(oneGPSPos newLoc)
- Overrides:
setLoc in class MapCanvas