Class Multipolygon.JoinedWay

    • Constructor Detail

      • JoinedWay

        public JoinedWay​(List<Node> nodes,
                         Collection<Long> wayIds,
                         boolean selected)
        Constructs a new JoinedWay.
        Parameters:
        nodes - list of nodes - must not be null
        wayIds - list of way IDs - must not be null
        selected - whether joined way is selected or not
    • Method Detail

      • getNodes

        public List<NodegetNodes()
        Replies the list of nodes.
        Returns:
        the list of nodes
      • isSelected

        public final boolean isSelected()
        Determines if this is selected.
        Returns:
        true if this is selected
      • setSelected

        public final void setSelected​(boolean selected)
        Sets whether this is selected
        Parameters:
        selected - true if this is selected
        Since:
        10312
      • isClosed

        public boolean isClosed()
        Determines if this joined way is closed.
        Returns:
        true if this joined way is closed
      • getFirstNode

        public Node getFirstNode()
        Returns the first node.
        Returns:
        the first node
        Since:
        10312
      • getLastNode

        public Node getLastNode()
        Returns the last node.
        Returns:
        the last node
        Since:
        10312