|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecty.layout.circular.EdgeLayoutDescriptor
public class EdgeLayoutDescriptor
This class provides routing settings for edges routed internally by the CircularLayouter
.
The offered settings affect only edges routed within or between circle partitions. The edge routing policy
determines the edges that are interior.
CircularLayouter.setEdgeRoutingPolicy(byte)
,
CircularLayouter.EDGE_ROUTING_POLICY_AUTOMATIC
,
CircularLayouter.EDGE_ROUTING_POLICY_INTERIOR
,
CircularLayouter.EDGE_ROUTING_POLICY_MARKED_EXTERIOR
,
CircularLayouter.getDefaultEdgeLayoutDescriptor()
Field Summary | |
---|---|
static int |
ON_CIRCLE_ROUTING_STYLE_CURVED
A routing style constant specifying that edges between neighboring nodes of a partition are curved towards the circle's center. |
static int |
ON_CIRCLE_ROUTING_STYLE_ON_CIRCLE
A routing style constant specifying that edges between neighboring nodes of a partition are curved outwards on the circle's border. |
static int |
ON_CIRCLE_ROUTING_STYLE_STRAIGHT
A routing style constant specifying that edges between neighboring nodes should be straight lines. |
static int |
ROUTING_STYLE_CURVED
A routing style constant specifying that edges inside or between partitions should be curved. |
static int |
ROUTING_STYLE_STRAIGHT
A routing style constant specifying that edges inside or between partitions should be straight lines. |
Constructor Summary | |
---|---|
EdgeLayoutDescriptor()
Creates a new EdgeLayoutDescriptor instance with default settings. |
Method Summary | |
---|---|
int |
getBetweenCirclesRoutingStyle()
Returns the routing style for edges between partitions. |
int |
getInCircleRoutingStyle()
Returns the routing style for edges within partitions. |
int |
getOnCircleRoutingStyle()
Returns the routing style for edges between neighbors in one partition. |
boolean |
isControlPointCreationEnabled()
Returns whether or not the points of the resulting edge path represent cubic bezier control points. |
void |
setBetweenCirclesRoutingStyle(int betweenCirclesRoutingStyle)
Specifies the routing style for edges between partitions. |
void |
setControlPointCreationEnabled(boolean controlPointCreation)
Specifies whether or not the points of the resulting edge path represent cubic bezier control points. |
void |
setInCircleRoutingStyle(int inCircleRoutingStyle)
Specifies the routing style for edges within partitions. |
void |
setOnCircleRoutingStyle(int onCircleRoutingStyle)
Specifies the routing style for edges between neighbors in one partition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ROUTING_STYLE_STRAIGHT
public static final int ROUTING_STYLE_CURVED
public static final int ON_CIRCLE_ROUTING_STYLE_STRAIGHT
public static final int ON_CIRCLE_ROUTING_STYLE_CURVED
public static final int ON_CIRCLE_ROUTING_STYLE_ON_CIRCLE
Constructor Detail |
---|
public EdgeLayoutDescriptor()
EdgeLayoutDescriptor
instance with default settings.
Method Detail |
---|
public int getInCircleRoutingStyle()
setInCircleRoutingStyle(int)
public void setInCircleRoutingStyle(int inCircleRoutingStyle)
ROUTING_STYLE_STRAIGHT
. All interior edges are routed straight.inCircleRoutingStyle
- one of the predefined routing styles
java.lang.IllegalArgumentException
- if an unknown routing style is givenpublic int getOnCircleRoutingStyle()
setOnCircleRoutingStyle(int)
public void setOnCircleRoutingStyle(int onCircleRoutingStyle)
ROUTING_STYLE_STRAIGHT
. All circle edges are routed straight.onCircleRoutingStyle
- one of the predefined routing styles
java.lang.IllegalArgumentException
- if an unknown routing style is givenpublic int getBetweenCirclesRoutingStyle()
setBetweenCirclesRoutingStyle(int)
public void setBetweenCirclesRoutingStyle(int betweenCirclesRoutingStyle)
curved style
,
the algorithm uses larger distances between the partitions to have enough space for smooth curves.ROUTING_STYLE_STRAIGHT
. All inter edges are routed straight.betweenCirclesRoutingStyle
- one of the predefined routing styles
java.lang.IllegalArgumentException
- if an unknown routing style is givenpublic boolean isControlPointCreationEnabled()
true
if the bends are interpreted as cubic bezier control points, false
otherwisesetControlPointCreationEnabled(boolean)
public void setControlPointCreationEnabled(boolean controlPointCreation)
controlPointCreation
- true
if the points of the edge path should represent cubic
bezier control points, false
otherwise
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |