public class RoutingStyle extends Object
EdgeLayoutDescriptor
to specify the routing style for different types of edges.Constructor and Description |
---|
RoutingStyle(EdgeRoutingStyle routingStyle)
Creates a new
RoutingStyle instance with the given routing style for each edge. |
Modifier and Type | Method and Description |
---|---|
EdgeRoutingStyle |
getBackLoopRoutingStyle()
Gets the routing style for back-loop edges.
|
EdgeRoutingStyle |
getDefaultEdgeRoutingStyle()
Gets the default routing style for edges that have no individual routing style.
|
EdgeRoutingStyle |
getEdgeGroupRoutingStyle()
Gets the routing style for grouped edges at the common segments.
|
EdgeRoutingStyle |
getSameLayerEdgeRoutingStyle()
Gets the routing style for same-layer edges.
|
EdgeRoutingStyle |
getSelfLoopRoutingStyle()
Gets the routing style for self-loops.
|
void |
setBackLoopRoutingStyle(EdgeRoutingStyle value)
Sets the routing style for back-loop edges.
|
void |
setDefaultEdgeRoutingStyle(EdgeRoutingStyle value)
Sets the default routing style for edges that have no individual routing style.
|
void |
setEdgeGroupRoutingStyle(EdgeRoutingStyle value)
Sets the routing style for grouped edges at the common segments.
|
void |
setSameLayerEdgeRoutingStyle(EdgeRoutingStyle value)
Sets the routing style for same-layer edges.
|
void |
setSelfLoopRoutingStyle(EdgeRoutingStyle value)
Sets the routing style for self-loops.
|
public RoutingStyle(EdgeRoutingStyle routingStyle)
RoutingStyle
instance with the given routing style for each edge.IllegalArgumentException
- if an unknown routing style is givenroutingStyle
- one of the predefined routing stylespublic EdgeRoutingStyle getBackLoopRoutingStyle()
This style is used for routing U-turns of common edges (i.e., edges that are neither self-loops nor same-layer edges). A
U-turn is a non-monotonic part of the edge route that is required for reversed edges if option BackLoopRoutingEnabled
is enabled or in some other scenarios with port constraints/candidates.
IllegalArgumentException
- if an unknown routing style is givensetBackLoopRoutingStyle(EdgeRoutingStyle)
public EdgeRoutingStyle getDefaultEdgeRoutingStyle()
IllegalArgumentException
- if an unknown routing style is givensetDefaultEdgeRoutingStyle(EdgeRoutingStyle)
public EdgeRoutingStyle getEdgeGroupRoutingStyle()
More precisely, grouped edges are routed in a bus-style fashion (i.e., the paths of the edges will share a common edge segment) and this option allows to specify the routing style at the bus.
IllegalArgumentException
- if an unknown routing style is givensetEdgeGroupRoutingStyle(EdgeRoutingStyle)
public EdgeRoutingStyle getSameLayerEdgeRoutingStyle()
A same-layer edge is an edge whose source/target are assigned to the same layer.
IllegalArgumentException
- if an unknown routing style is givensetSameLayerEdgeRoutingStyle(EdgeRoutingStyle)
public EdgeRoutingStyle getSelfLoopRoutingStyle()
IllegalArgumentException
- if an unknown routing style is givensetSelfLoopRoutingStyle(EdgeRoutingStyle)
public void setBackLoopRoutingStyle(EdgeRoutingStyle value)
This style is used for routing U-turns of common edges (i.e., edges that are neither self-loops nor same-layer edges). A
U-turn is a non-monotonic part of the edge route that is required for reversed edges if option BackLoopRoutingEnabled
is enabled or in some other scenarios with port constraints/candidates.
IllegalArgumentException
- if an unknown routing style is givenvalue
- one of the predefined routing stylesgetBackLoopRoutingStyle()
public void setDefaultEdgeRoutingStyle(EdgeRoutingStyle value)
IllegalArgumentException
- if an unknown routing style is givenvalue
- one of the predefined routing stylesgetDefaultEdgeRoutingStyle()
public void setEdgeGroupRoutingStyle(EdgeRoutingStyle value)
More precisely, grouped edges are routed in a bus-style fashion (i.e., the paths of the edges will share a common edge segment) and this option allows to specify the routing style at the bus.
IllegalArgumentException
- if an unknown routing style is givenvalue
- one of the predefined routing stylesgetEdgeGroupRoutingStyle()
public void setSameLayerEdgeRoutingStyle(EdgeRoutingStyle value)
A same-layer edge is an edge whose source/target are assigned to the same layer.
IllegalArgumentException
- if an unknown routing style is givenvalue
- one of the predefined routing stylesgetSameLayerEdgeRoutingStyle()
public void setSelfLoopRoutingStyle(EdgeRoutingStyle value)
IllegalArgumentException
- if an unknown routing style is givenvalue
- one of the predefined routing stylesgetSelfLoopRoutingStyle()