org.openstreetmap.josm.gui.dialogs.relation
Class WayConnectionType
java.lang.Object
org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType
public class WayConnectionType
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
invalid
private final boolean invalid
- True, if the corresponding primitive is not a way or the way is incomplete
linkPrev
public boolean linkPrev
- True, if linked to the previous / next member.
linkNext
public boolean linkNext
direction
public WayConnectionType.Direction direction
- direction is FORWARD if the first node of this way is connected to the previous way
and / or the last node of this way is connected to the next way.
direction is BACKWARD if it is the other way around.
direction has a ROUNDABOUT value, if it is tagged as such and it is somehow
connected to the previous / next member.
If there is no connection to the previous or next member, then
direction has the value NONE.
isLoop
public boolean isLoop
- True, if the element is part of a closed loop of ways.
isOnewayLoopForwardPart
public boolean isOnewayLoopForwardPart
isOnewayLoopBackwardPart
public boolean isOnewayLoopBackwardPart
isOnewayHead
public boolean isOnewayHead
isOnewayTail
public boolean isOnewayTail
WayConnectionType
public WayConnectionType(boolean linkPrev,
boolean linkNext,
WayConnectionType.Direction direction)
WayConnectionType
public WayConnectionType(boolean invalid)
WayConnectionType
public WayConnectionType()
- construct invalid instance
isValid
public boolean isValid()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getToolTip
public java.lang.String getToolTip()
JOSM