uk.me.parabola.mkgmap.general
Class MapPoint

java.lang.Object
  extended by uk.me.parabola.mkgmap.general.MapElement
      extended by uk.me.parabola.mkgmap.general.MapPoint
Direct Known Subclasses:
MapExitPoint

public class MapPoint
extends MapElement

A point on the map. This will appear as a symbol on the map and it will normally be in the list of things that can be seen on the find menu.

Author:
Steve Ratcliffe

Constructor Summary
  MapPoint()
           
protected MapPoint(MapPoint p)
           
 
Method Summary
 MapPoint copy()
          Provide a copy of this MapElement without geometry.
 Area getBounds()
          Get the region that this element covers.
 Coord getLocation()
          Get the 'location' of the element.
 boolean isCity()
           
static boolean isCityType(int type)
           
 boolean isExit()
           
 boolean isRoadNamePOI()
           
 void setLocation(Coord location)
           
 void setRoadNamePOI(boolean isRoadNamePoi)
           
 
Methods inherited from class uk.me.parabola.mkgmap.general.MapElement
getCity, getCountry, getExtTypeAttributes, getHouseNumber, getIsIn, getMaxResolution, getMinResolution, getName, getPhone, getRef, getRegion, getStreet, getType, getZip, hasExtendedType, isSimilar, setCity, setCountry, setExtTypeAttributes, setHouseNumber, setIsIn, setMaxResolution, setMinResolution, setName, setPhone, setRef, setRegion, setStreet, setType, setZip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPoint

public MapPoint()

MapPoint

protected MapPoint(MapPoint p)
Method Detail

copy

public MapPoint copy()
Description copied from class: MapElement
Provide a copy of this MapElement without geometry. This is used when filtering and clipping to create modified versions.

Specified by:
copy in class MapElement
Returns:
the copy;

getLocation

public Coord getLocation()
Description copied from class: MapElement
Get the 'location' of the element. This is the mid point of the bounding box for the element. For a point, this will be the coordinates of the point itself of course.

Specified by:
getLocation in class MapElement
Returns:
Co-ordinate of the mid-point of the bounding box of the element.

setLocation

public void setLocation(Coord location)

getBounds

public Area getBounds()
Get the region that this element covers.

Returns:
The area that bounds this element.

isCity

public boolean isCity()

setRoadNamePOI

public void setRoadNamePOI(boolean isRoadNamePoi)

isRoadNamePOI

public boolean isRoadNamePOI()

isCityType

public static boolean isCityType(int type)

isExit

public boolean isExit()