|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.PortConstraintConfigurator
public class PortConstraintConfigurator
The PortConstraintConfigurator
provides the possibility to create PortConstraint
s 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 PortConstraint s for some edges of the given graph. |
void |
createPortConstraintsFromSketch(LayoutGraph graph,
EdgeMap spcMap,
EdgeMap tpcMap)
Creates weak PortConstraint s 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 PortConstraint
strong
- true
if a strong PortConstraint
is created, false
for a weak
PortConstraint
PortConstraint
for the given edge whose side is retrieved from the initial drawingpublic void createPortConstraintsFromSketch(LayoutGraph graph, EdgeMap spcMap, EdgeMap tpcMap)
PortConstraint
s for all edges of the given graph.
graph
- the input graphspcMap
- the EdgeMap
that will be used for storing the source PortConstraint
s of the edgestpcMap
- the EdgeMap
that will be used for storing the target PortConstraint
s of the edgespublic void createPortConstraintsFromSketch(LayoutGraph graph, EdgeCursor ec, EdgeMap spcMap, boolean strongSP, EdgeMap tpcMap, boolean strongTP)
PortConstraint
s for some edges of the given graph.
graph
- the input graphec
- the EdgeCursor
that provides access to the edges for which to create PortConstraint
sspcMap
- the EdgeMap
that will be used for storing the source PortConstraint
s of the edgesstrongSP
- true
if strong source PortConstraint
s should be assigned, false
otherwisetpcMap
- the EdgeMap
that will be used for storing the target PortConstraint
s of the edgesstrongTP
- true
if strong target PortConstraint
s should be assigned, false
otherwise
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |