org.osm2world.core.map_data.data
Class MapAreaSegment

Object
  extended by MapSegment
      extended by MapAreaSegment

public class MapAreaSegment
extends MapSegment

segment of a MapArea's outline. This isn't a MapElements itself (for example, it has no individual representation). Instead, it's simply a different way to access an area's data.


Field Summary
 
Fields inherited from class MapSegment
endNode, startNode
 
Constructor Summary
MapAreaSegment(MapArea area, boolean areaRight, MapNode startNode, MapNode endNode)
           
 
Method Summary
 MapArea getArea()
           
 boolean isAreaRight()
          returns true if the area is to the right of this segment
 
Methods inherited from class MapSegment
getCenter, getDirection, getEndNode, getLineSegment, getOtherNode, getRightNormal, getStartEndNodes, getStartNode, isConnectedTo, isConnectedTo, sharesBothNodes
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapAreaSegment

public MapAreaSegment(MapArea area,
                      boolean areaRight,
                      MapNode startNode,
                      MapNode endNode)
Method Detail

getArea

public MapArea getArea()

isAreaRight

public boolean isAreaRight()
returns true if the area is to the right of this segment