public enum BridgeCrossingPolicy extends Enum<BridgeCrossingPolicy>
BridgeManager
that determines how crossings between obstacles and paths are determined.Enum Constant and Description |
---|
HORIZONTAL_BRIDGES_VERTICAL
Makes horizontal segments bridge over vertical obstacles.
|
MORE_HORIZONTAL_BRIDGES_LESS_HORIZONTAL
Makes more horizontal edges bridge over edges which are less horizontal.
|
MORE_VERTICAL_BRIDGES_LESS_VERTICAL
Makes more vertical edges bridge over edges which are less vertical.
|
VERTICAL_BRIDGES_HORIZONTAL
Makes vertical segments bridge over horizontal obstacles.
|
Modifier and Type | Method and Description |
---|---|
static BridgeCrossingPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static BridgeCrossingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BridgeCrossingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BridgeCrossingPolicy HORIZONTAL_BRIDGES_VERTICAL
Horizontal segments do not cross each other, just as vertical ones will not cross each other. Horizontal segments are segments with a slope between 1 and -1. All others are vertical segments. For non-parallel intersecting pairs of segments there does not need to be a crossing unless only one of them is vertical.
public static final BridgeCrossingPolicy MORE_HORIZONTAL_BRIDGES_LESS_HORIZONTAL
The smaller the absolute slope of an edge, the more horizontal it is. For each non-parallel intersecting pair of segments, there will be a crossing.
public static final BridgeCrossingPolicy MORE_VERTICAL_BRIDGES_LESS_VERTICAL
The larger the absolute slope of an edge, the more vertical it is. For each non-parallel intersecting pair of segments, there will be a crossing.
public static final BridgeCrossingPolicy VERTICAL_BRIDGES_HORIZONTAL
Horizontal segments do not cross each other, just as vertical ones will not cross each other. Horizontal segments are segments with a slope between 1 and -1. All others are vertical segments. For non-parallel intersecting pairs of segments there does not need to be a crossing unless only one of them is horizontal.
public static final BridgeCrossingPolicy fromOrdinal(int ordinal)
public int value()
public static BridgeCrossingPolicy valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static BridgeCrossingPolicy[] values()
for (BridgeCrossingPolicy c : BridgeCrossingPolicy.values()) System.out.println(c);