|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexamples.cityguide.MapLandmark
public class MapLandmark
This class adds additional information to a landmark. This information is used to display the landmark on the map.
Field Summary | |
---|---|
protected boolean |
active
|
Constructor Summary | |
---|---|
protected |
MapLandmark(javax.microedition.location.Landmark landmark,
int x,
int y,
javax.microedition.lcdui.Image image)
Creates a new instance of MapLandmark |
Method Summary | |
---|---|
javax.microedition.lcdui.Image |
getImage()
Returns the image of the landmark. |
javax.microedition.location.Landmark |
getLandmark()
Returns the instance of the Landmark class which this map landmark extends. |
int |
getX()
Returns the x position of the landmark on the map. |
int |
getY()
Returns the y position of the landmark on the map. |
boolean |
isActive()
Returns the activation status of the landmark. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean active
Constructor Detail |
---|
protected MapLandmark(javax.microedition.location.Landmark landmark, int x, int y, javax.microedition.lcdui.Image image)
Method Detail |
---|
public javax.microedition.location.Landmark getLandmark()
public int getX()
public int getY()
public javax.microedition.lcdui.Image getImage()
public boolean isActive()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |