examples.cityguide
Class MapLandmark

java.lang.Object
  extended by examples.cityguide.MapLandmark

public class MapLandmark
extends java.lang.Object

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

active

protected boolean active
Constructor Detail

MapLandmark

protected MapLandmark(javax.microedition.location.Landmark landmark,
                      int x,
                      int y,
                      javax.microedition.lcdui.Image image)
Creates a new instance of MapLandmark

Method Detail

getLandmark

public javax.microedition.location.Landmark getLandmark()
Returns the instance of the Landmark class which this map landmark extends.


getX

public int getX()
Returns the x position of the landmark on the map.


getY

public int getY()
Returns the y position of the landmark on the map.


getImage

public javax.microedition.lcdui.Image getImage()
Returns the image of the landmark.


isActive

public boolean isActive()
Returns the activation status of the landmark.