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.
|
boolean |
ignoreOneway
True, if all oneway features are ignored
|
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)
Constructs a valid or invalid instance.
|
WayConnectionType(boolean linkPrev,
boolean linkNext,
WayConnectionType.Direction direction)
Constructs a valid instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTooltip()
Returns the tooltip to display when hovering over the relation member.
|
boolean |
isValid()
Determines if the connection type is valid (i.e.
|
java.lang.String |
toString() |
private final boolean invalid
public boolean linkPrev
public boolean linkNext
public WayConnectionType.Direction direction
public boolean isLoop
public boolean ignoreOneway
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)
linkPrev
- true
if linked to the previous memberlinkNext
- true
if linked to the next memberdirection
- the direction typepublic WayConnectionType(boolean invalid)
invalid
- true
if the instance is invalid (i.e does not concern a complete way)public WayConnectionType()
public boolean isValid()
true
if the connection type is valid (i.e. it concerns a complete way)public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTooltip()