| java.lang.Object examples.cityguide.MapLandmark
MapLandmark | public class MapLandmark (Code) | | This class adds additional information to a landmark. This information is
used to display the landmark on the map.
version: 1.3 |
Field Summary | |
protected boolean | active |
Constructor Summary | |
protected | MapLandmark(Landmark landmark, int x, int y, Image image) |
Method Summary | |
public Image | getImage() Returns the image of the landmark. | public Landmark | getLandmark() Returns the instance of the Landmark class which this map landmark
extends. | public int | getX() Returns the x position of the landmark on the map. | public int | getY() Returns the y position of the landmark on the map. | public boolean | isActive() Returns the activation status of the landmark. |
active | protected boolean active(Code) | | |
MapLandmark | protected MapLandmark(Landmark landmark, int x, int y, Image image)(Code) | | Creates a new instance of MapLandmark
|
getImage | public Image getImage()(Code) | | Returns the image of the landmark.
|
getLandmark | public Landmark getLandmark()(Code) | | Returns the instance of the Landmark class which this map landmark
extends.
|
getX | public int getX()(Code) | | Returns the x position of the landmark on the map.
|
getY | public int getY()(Code) | | Returns the y position of the landmark on the map.
|
isActive | public boolean isActive()(Code) | | Returns the activation status of the landmark.
|
|
|