|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.general.MapElement
uk.me.parabola.mkgmap.general.MapLine
uk.me.parabola.mkgmap.general.MapShape
public class MapShape
A shape or polygon is just the same as a line really as far as I can tell. There are some things that you cannot do with them semantically.
Constructor Summary | |
---|---|
MapShape()
|
Method Summary | |
---|---|
boolean |
contains(Coord co)
Checks if a point is contained within this shape. |
MapShape |
copy()
Provide a copy of this MapElement without geometry. |
int |
getPoiType()
|
void |
setDirection(boolean direction)
|
void |
setPoiType(int type)
|
Methods inherited from class uk.me.parabola.mkgmap.general.MapLine |
---|
getBounds, getLocation, getPoints, insertPointsAtEnd, insertPointsAtStart, isDirection, isRoad, setPoints, testForConsecutivePoints |
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 |
---|
public MapShape()
Method Detail |
---|
public MapShape copy()
MapElement
copy
in class MapLine
public void setDirection(boolean direction)
setDirection
in class MapLine
public void setPoiType(int type)
public int getPoiType()
public boolean contains(Coord co)
co
- point to check
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |