public class WayConnectionType extends java.lang.Object
RelationSorter
to store if two ways are already connectedModifier and Type | Class and Description |
---|---|
static class |
WayConnectionType.Direction |
Modifier and Type | Field and Description |
---|---|
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
True, if linked to the next member.
|
boolean |
linkPrev
True, if linked to the previous member.
|
boolean |
onewayFollowsNext
True, if the way is oneway and it doesn't follow the flow of the next member
|
boolean |
onewayFollowsPrevious
False, if the way is oneway and it doesn't follow the flow of the previous member
|
Constructor and Description |
---|
WayConnectionType()
construct invalid instance
|
WayConnectionType(boolean invalid) |
WayConnectionType(boolean linkPrev,
boolean linkNext,
WayConnectionType.Direction direction) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTooltip()
Returns the tooltip to display when hovering over the relation member.
|
boolean |
isValid() |
java.lang.String |
toString() |
private final boolean invalid
public boolean linkPrev
public boolean linkNext
public WayConnectionType.Direction direction
public boolean isLoop
public boolean isOnewayLoopForwardPart
public boolean isOnewayLoopBackwardPart
public boolean isOnewayHead
public boolean isOnewayTail
public boolean onewayFollowsPrevious
public boolean onewayFollowsNext
public WayConnectionType(boolean linkPrev, boolean linkNext, WayConnectionType.Direction direction)
public WayConnectionType(boolean invalid)
public WayConnectionType()
public boolean isValid()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTooltip()