public static class Multipolygon.JoinedWay extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Node> |
nodes |
protected boolean |
selected |
protected java.util.Collection<java.lang.Long> |
wayIds |
| Constructor and Description |
|---|
JoinedWay(java.util.List<Node> nodes,
java.util.Collection<java.lang.Long> wayIds,
boolean selected)
Constructs a new
JoinedWay. |
| Modifier and Type | Method and Description |
|---|---|
Node |
getFirstNode()
Returns the first node.
|
Node |
getLastNode()
Returns the last node.
|
java.util.List<Node> |
getNodes()
Replies the list of nodes.
|
java.util.Collection<java.lang.Long> |
getWayIds()
Replies the list of way IDs.
|
boolean |
isClosed()
Determines if this joined way is closed.
|
boolean |
isSelected()
Determines if this is selected.
|
void |
setSelected(boolean selected)
Sets whether this is selected
|
protected final java.util.Collection<java.lang.Long> wayIds
protected boolean selected
public java.util.List<Node> getNodes()
public java.util.Collection<java.lang.Long> getWayIds()
public final boolean isSelected()
true if this is selectedpublic final void setSelected(boolean selected)
selected - true if this is selectedpublic boolean isClosed()
true if this joined way is closedpublic Node getFirstNode()
public Node getLastNode()