public enum BridgeCrossingStyle extends Enum<BridgeCrossingStyle>
BridgeManager
.Enum Constant and Description |
---|
ARC
A bridge, consisting of two quarter circle arcs connected by a straight line, will be inserted in the path.
|
ARC_SCALED
A semi-circle bridge will be inserted in the path.
|
CUSTOM
Inserts a custom bridge into the path.
|
GAP
A simple gap in the path.
|
RECTANGLE
A rectangular bridge will be inserted in the path.
|
RECTANGLE_SCALED
A rectangular bridge with a fixed aspect ratio will be inserted in the path.
|
TWO_SIDES
A triangular bridge will be inserted in the path.
|
TWO_SIDES_SCALED
A triangular bridge with a fixed aspect ratio will be inserted in the path.
|
Modifier and Type | Method and Description |
---|---|
static BridgeCrossingStyle |
fromOrdinal(int ordinal) |
int |
value() |
static BridgeCrossingStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BridgeCrossingStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BridgeCrossingStyle ARC
public static final BridgeCrossingStyle ARC_SCALED
This bridge will be scaled for wider bridges so that its aspect ratio remains constant.
public static final BridgeCrossingStyle CUSTOM
Custom bridges require an appropriate implementation of the IBridgeCreator
interface and
IBridgeCreator.createCustomBridge(com.yworks.yfiles.view.IRenderContext, com.yworks.yfiles.geometry.GeneralPath, com.yworks.yfiles.geometry.PointD, com.yworks.yfiles.geometry.PointD, double)
method.
public static final BridgeCrossingStyle GAP
public static final BridgeCrossingStyle RECTANGLE
public static final BridgeCrossingStyle RECTANGLE_SCALED
This bridge will be scaled for wider bridges so that its aspect ratio remains constant.
public static final BridgeCrossingStyle TWO_SIDES
public static final BridgeCrossingStyle TWO_SIDES_SCALED
This bridge will be scaled for wider bridges so that its aspect ratio remains constant.
public static final BridgeCrossingStyle fromOrdinal(int ordinal)
public int value()
public static BridgeCrossingStyle 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 BridgeCrossingStyle[] values()
for (BridgeCrossingStyle c : BridgeCrossingStyle.values()) System.out.println(c);