org.openstreetmap.josm.gui.dialogs.relation
Class WayConnectionType

java.lang.Object
  extended by org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType

public class WayConnectionType
extends java.lang.Object


Nested Class Summary
static class WayConnectionType.Direction
           
 
Field Summary
 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.
private  boolean invalid
          True, if the corresponding primitive is not a way or the way is incomplete
 boolean isLoop
          True, if the element is part of a closed loop of ways.
 boolean isOnewayHead
           
 boolean isOnewayLoopBackwardPart
           
 boolean isOnewayLoopForwardPart
           
 boolean isOnewayTail
           
 boolean linkNext
           
 boolean linkPrev
          True, if linked to the previous / next member.
 
Constructor Summary
WayConnectionType()
          construct invalid instance
WayConnectionType(boolean invalid)
           
WayConnectionType(boolean linkPrev, boolean linkNext, WayConnectionType.Direction direction)
           
 
Method Summary
 java.lang.String getToolTip()
           
 boolean isValid()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

WayConnectionType

public WayConnectionType(boolean linkPrev,
                         boolean linkNext,
                         WayConnectionType.Direction direction)

WayConnectionType

public WayConnectionType(boolean invalid)

WayConnectionType

public WayConnectionType()
construct invalid instance

Method Detail

isValid

public boolean isValid()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getToolTip

public java.lang.String getToolTip()


JOSM