|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMapArea
public class MapArea
Constructor Summary | |
---|---|
MapArea(OSMElement objectWithTags,
OSMWay osmWay)
|
|
MapArea(OSMWay osmWay)
|
Method Summary | |
---|---|
void |
addBoundaryNode(MapNode boundaryNode)
|
void |
addOverlap(MapOverlap<?,?> overlap)
|
void |
addRepresentation(AreaWorldObject representation)
adds a visual representation for this area |
Collection<MapAreaSegment> |
getAreaSegments()
returns the segments making up this area's outer and inner boundaries |
List<MapNode> |
getBoundaryNodes()
|
AreaElevationProfile |
getElevationProfile()
returns the elevation information for this GridElement. |
Collection<List<MapNode>> |
getHoles()
|
int |
getLayer()
|
OSMElement |
getOsmObject()
returns the way or relation with the tags for this area |
OSMWay |
getOsmWay()
returns the way that is the outer boundary of this object. |
SimplePolygonXZ |
getOuterPolygon()
|
Collection<MapOverlap<?,?>> |
getOverlaps()
returns all overlaps between this MapElement
and other MapElement s. |
PolygonWithHolesXZ |
getPolygon()
returns the area's polygon. |
AreaWorldObject |
getPrimaryRepresentation()
returns the primary representation, or null if the object doesn't have any. |
List<AreaWorldObject> |
getRepresentations()
returns the visual representations of this element. |
TagGroup |
getTags()
returns the tags of the underlying OSMElement |
void |
setElevationProfile(AreaElevationProfile elevationProfile)
|
void |
setHoles(Collection<List<MapNode>> holes)
|
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapArea(OSMElement objectWithTags, OSMWay osmWay)
public MapArea(OSMWay osmWay)
Method Detail |
---|
public void addBoundaryNode(MapNode boundaryNode)
public List<MapNode> getBoundaryNodes()
public int getLayer()
getLayer
in interface MapElement
public void setHoles(Collection<List<MapNode>> holes)
public Collection<List<MapNode>> getHoles()
public OSMElement getOsmObject()
public OSMWay getOsmWay()
getOsmObject()
(because of multipolygons)!
public TagGroup getTags()
MapElement
OSMElement
getTags
in interface MapElement
public PolygonWithHolesXZ getPolygon()
public SimplePolygonXZ getOuterPolygon()
public Collection<MapAreaSegment> getAreaSegments()
public List<AreaWorldObject> getRepresentations()
MapElement
getRepresentations
in interface MapElement
public AreaWorldObject getPrimaryRepresentation()
MapElement
getPrimaryRepresentation
in interface MapElement
MapElement.getRepresentations()
public void addRepresentation(AreaWorldObject representation)
public AreaElevationProfile getElevationProfile()
MapElement
getElevationProfile
in interface MapElement
public void setElevationProfile(AreaElevationProfile elevationProfile)
public void addOverlap(MapOverlap<?,?> overlap)
public Collection<MapOverlap<?,?>> getOverlaps()
MapElement
MapElement
and other MapElement
s.
getOverlaps
in interface MapElement
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |