|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.microedition.midlet.MIDlet
net.landspurg.MapMain
public class MapMain
Main midlet for j2memap. It's where reside mostly of the
logic specific to this midlet, menus, and call to various
submenus....
| Field Summary | |
|---|---|
int |
m_initCount
|
static boolean |
m_useNavizon
|
static MapMain |
singleton
|
java.lang.String |
urlGPS
|
java.lang.String |
version
|
| Constructor Summary | |
|---|---|
MapMain()
|
|
| Method Summary | |
|---|---|
void |
actionDone(java.lang.Object source,
int erroCode)
|
void |
addPlace(OneLoc place)
|
java.lang.String |
checkWellKnowLocations(java.lang.String inLoc)
|
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
|
GPSDisplay |
createCanvas()
|
static void |
debug(java.lang.String inStr)
|
void |
destroyApp(boolean unconditional)
Destroy app: save current position in the settings |
void |
error(int inErrorCode)
|
void |
findPattern(java.io.InputStream is,
java.lang.String inPattern)
|
OneLoc |
findPlaceByName(java.lang.String inName)
|
void |
found(double inlon,
double inlat,
double alt,
double dir,
double speed,
long stamp,
boolean isValid)
|
java.lang.String |
getFloat(java.io.InputStream is)
|
javax.microedition.lcdui.Form |
getFormLocation(OneLoc theLoc)
Creation of the form which display the current location |
java.lang.String |
getPhoneNum(java.lang.String phone)
|
java.lang.String |
getStringTo(java.io.InputStream is,
java.lang.String inPattern)
|
java.lang.String |
getStringTo(java.io.InputStream is,
java.lang.String inPattern,
boolean keepInBetween)
|
void |
initAll()
Various initialisation , commands, etc... |
boolean |
inputStream(java.io.InputStream is)
|
boolean |
isGPSRunning()
|
boolean |
isLocationStarted()
|
void |
itemStateChanged(javax.microedition.lcdui.Item inItem)
|
boolean |
lineRead(URLFetcher f,
java.lang.String inLine)
|
void |
loaded(URLFetcher f)
|
boolean |
mapKeyPressed(MapCanvas c,
int inCode)
Called when a key has been pressed. |
boolean |
oneLocationSelected(MapCanvas c,
OneLoc theLoc)
Callback called when the user select a location in the map |
void |
pauseApp()
|
void |
removePlace(java.lang.String name)
|
void |
restartGPS()
|
void |
startApp()
Lets go.... |
void |
startFon()
|
void |
startGPS()
|
void |
startingLocation()
|
void |
startWikiMapia()
Start the automatic fetching to Wikimapia.... |
void |
statusInfo(int id,
java.lang.String stringInfo)
|
void |
stopGPS()
|
| Methods inherited from class javax.microedition.midlet.MIDlet |
|---|
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String version
public int m_initCount
public static MapMain singleton
public static boolean m_useNavizon
public java.lang.String urlGPS
| Constructor Detail |
|---|
public MapMain()
| Method Detail |
|---|
public static void debug(java.lang.String inStr)
public OneLoc findPlaceByName(java.lang.String inName)
public void removePlace(java.lang.String name)
public void addPlace(OneLoc place)
public void pauseApp()
pauseApp in class javax.microedition.midlet.MIDletpublic void destroyApp(boolean unconditional)
destroyApp in class javax.microedition.midlet.MIDletpublic javax.microedition.lcdui.Form getFormLocation(OneLoc theLoc)
theLoc -
public GPSDisplay createCanvas()
public void initAll()
public void startGPS()
public boolean isGPSRunning()
public void stopGPS()
public void restartGPS()
public void actionDone(java.lang.Object source,
int erroCode)
actionDone in interface GenericFeedbackpublic boolean isLocationStarted()
public void startingLocation()
public void startApp()
startApp in class javax.microedition.midlet.MIDletpublic void itemStateChanged(javax.microedition.lcdui.Item inItem)
itemStateChanged in interface javax.microedition.lcdui.ItemStateListenerpublic void startWikiMapia()
public void startFon()
public java.lang.String checkWellKnowLocations(java.lang.String inLoc)
public void commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
commandAction in interface javax.microedition.lcdui.CommandListenerpublic void loaded(URLFetcher f)
loaded in interface NotifyLoadURLpublic void error(int inErrorCode)
error in interface NotifyLoadURL
public void findPattern(java.io.InputStream is,
java.lang.String inPattern)
throws java.io.IOException
java.io.IOException
public java.lang.String getFloat(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
public java.lang.String getStringTo(java.io.InputStream is,
java.lang.String inPattern)
throws java.io.IOException
java.io.IOException
public java.lang.String getStringTo(java.io.InputStream is,
java.lang.String inPattern,
boolean keepInBetween)
throws java.io.IOException
java.io.IOExceptionpublic boolean inputStream(java.io.InputStream is)
inputStream in interface NotifyLoadURL
public boolean lineRead(URLFetcher f,
java.lang.String inLine)
lineRead in interface NotifyLoadURLpublic java.lang.String getPhoneNum(java.lang.String phone)
public boolean oneLocationSelected(MapCanvas c,
OneLoc theLoc)
MapCanvasListener
oneLocationSelected in interface MapCanvasListenertheLoc - return true if default behavior (switch map/satellite)
needs to be applied also
public boolean mapKeyPressed(MapCanvas c,
int inCode)
MapCanvasListener
mapKeyPressed in interface MapCanvasListener
public void found(double inlon,
double inlat,
double alt,
double dir,
double speed,
long stamp,
boolean isValid)
found in interface LocateMeListener
public void statusInfo(int id,
java.lang.String stringInfo)
statusInfo in interface LocateMeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||