Package org.openstreetmap.josm.data.osm
Class MultipolygonBuilder.JoinedPolygon
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.MultipolygonBuilder.JoinedPolygon
-
- Enclosing class:
- MultipolygonBuilder
public static class MultipolygonBuilder.JoinedPolygon extends java.lang.Object
Represents one polygon that consists of multiple ways.
-
-
Field Summary
Fields Modifier and Type Field Description java.awt.geom.Area
area
the area in east/north spacejava.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 reversedjava.util.List<Way>
ways
list of ways building this polygon
-
Constructor Summary
Constructors Constructor Description JoinedPolygon(java.util.List<Way> ways, java.util.List<java.lang.Boolean> reversed)
Constructs a newJoinedPolygon
from given list of ways.JoinedPolygon(Way way)
Creates a polygon from single way.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Node>
getNodes()
Builds a list of nodes for this polygon.
-
-
-
Field Detail
-
reversed
public final java.util.List<java.lang.Boolean> reversed
list of flags that indicate if the nodes of the way in the same position where reversed
-
nodes
public final java.util.List<Node> nodes
the nodes of the polygon, first node is not duplicated as last node.
-
area
public final java.awt.geom.Area area
the area in east/north space
-
-
Constructor Detail
-
JoinedPolygon
public JoinedPolygon(java.util.List<Way> ways, java.util.List<java.lang.Boolean> reversed)
Constructs a newJoinedPolygon
from given list of ways.- Parameters:
ways
- The ways used to build joined polygonreversed
- list of reversed states
-
JoinedPolygon
public JoinedPolygon(Way way)
Creates a polygon from single way.- Parameters:
way
- the way to form the polygon
-
-