|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.PortConstraintConfigurator
public class PortConstraintConfigurator
The PortConstraintConfigurator provides the possibility to create PortConstraints according to the
initial connecting side of an edge.
![]() |
![]() |
| Constructor Summary | |
|---|---|
PortConstraintConfigurator()
Creates a new PortConstraintConfigurator instance. |
|
| Method Summary | |
|---|---|
PortConstraint |
createPortConstraintFromSketch(LayoutGraph graph,
Edge edge,
boolean source,
boolean strong)
Creates a PortConstraint for the given edge. |
void |
createPortConstraintsFromSketch(LayoutGraph graph,
EdgeCursor ec,
EdgeMap spcMap,
boolean strongSP,
EdgeMap tpcMap,
boolean strongTP)
Creates PortConstraints for some edges of the given graph. |
void |
createPortConstraintsFromSketch(LayoutGraph graph,
EdgeMap spcMap,
EdgeMap tpcMap)
Creates weak PortConstraints for all edges of the given graph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortConstraintConfigurator()
PortConstraintConfigurator instance.
| Method Detail |
|---|
public PortConstraint createPortConstraintFromSketch(LayoutGraph graph,
Edge edge,
boolean source,
boolean strong)
PortConstraint for the given edge.
The side of the constraint is set up according to the current drawing of the edge within the given graph.
graph - the input graphedge - the edgesource - true if a source PortConstraint for the given edge will be created,
false for a target PortConstraintstrong - true if a strong PortConstraint is created, false for a weak
PortConstraint
PortConstraint for the given edge whose side is retrieved from the initial drawing
public void createPortConstraintsFromSketch(LayoutGraph graph,
EdgeMap spcMap,
EdgeMap tpcMap)
PortConstraints for all edges of the given graph.
graph - the input graphspcMap - the EdgeMap that will be used for storing the source PortConstraints of the edgestpcMap - the EdgeMap that will be used for storing the target PortConstraints of the edges
public void createPortConstraintsFromSketch(LayoutGraph graph,
EdgeCursor ec,
EdgeMap spcMap,
boolean strongSP,
EdgeMap tpcMap,
boolean strongTP)
PortConstraints for some edges of the given graph.
graph - the input graphec - the EdgeCursor that provides access to the edges for which to create PortConstraintsspcMap - the EdgeMap that will be used for storing the source PortConstraints of the edgesstrongSP - true if strong source PortConstraints should be assigned, false otherwisetpcMap - the EdgeMap that will be used for storing the target PortConstraints of the edgesstrongTP - true if strong target PortConstraints should be assigned, 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 | ||||||||