public static class MultipolygonBuilder.JoinedPolygon extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.awt.geom.Area |
area
the area in east/north space
|
java.util.List<Node> |
nodes
the nodes of the polygon, first node is not duplicated as last node.
|
java.util.List<java.lang.Boolean> |
reversed
list of flags that indicate if the nodes of the way in the same position where reversed
|
java.util.List<Way> |
ways
list of ways building this polygon
|
Constructor and Description |
---|
JoinedPolygon(java.util.List<Way> ways,
java.util.List<java.lang.Boolean> reversed)
Constructs a new
JoinedPolygon from given list of ways. |
JoinedPolygon(Way way)
Creates a polygon from single way.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Node> |
getNodes()
Builds a list of nodes for this polygon.
|
public final java.util.List<java.lang.Boolean> reversed
public final java.util.List<Node> nodes
public final java.awt.geom.Area area
public JoinedPolygon(java.util.List<Way> ways, java.util.List<java.lang.Boolean> reversed)
JoinedPolygon
from given list of ways.ways
- The ways used to build joined polygonreversed
- list of reversed statespublic JoinedPolygon(Way way)
way
- the way to form the polygon