Class MultipolygonBuilder.JoinedPolygon

    • Field Summary

      Fields 
      Modifier and Type Field 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 Summary

      Constructors 
      Constructor 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ways

        public final java.util.List<Way> ways
        list of ways building this polygon
      • 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 new JoinedPolygon from given list of ways.
        Parameters:
        ways - The ways used to build joined polygon
        reversed - list of reversed states
      • JoinedPolygon

        public JoinedPolygon​(Way way)
        Creates a polygon from single way.
        Parameters:
        way - the way to form the polygon
    • Method Detail

      • getNodes

        public java.util.List<NodegetNodes()
        Builds a list of nodes for this polygon. First node is not duplicated as last node.
        Returns:
        list of nodes