|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.PortConstraintConfigurator
Provides configuration services for the port constraints of a graph.
Constructor Summary | |
PortConstraintConfigurator()
Creates a new instance of PortConstraintConfigurator |
Method Summary | |
PortConstraint |
createPortConstraintFromSketch(LayoutGraph graph,
Edge e,
boolean source,
boolean strong)
Creates and returns a weak portcontraint for the given edge. |
void |
createPortConstraintsFromSketch(LayoutGraph graph,
EdgeCursor ec,
EdgeMap spcMap,
boolean strongSP,
EdgeMap tpcMap,
boolean strongTP)
Creates weak portcontraints for some edges of the given graph. |
void |
createPortConstraintsFromSketch(LayoutGraph graph,
EdgeMap spcMap,
EdgeMap tpcMap)
Creates weak portcontraints 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()
Method Detail |
public PortConstraint createPortConstraintFromSketch(LayoutGraph graph, Edge e, boolean source, boolean strong)
source
- if true
a source port constraint for the given edge will be created,
otherwise a target port constraint.public void createPortConstraintsFromSketch(LayoutGraph graph, EdgeMap spcMap, EdgeMap tpcMap)
spcMap
- an edgemap that will be used to store the source port constraints of the edges.tpcMap
- an edgemap that will be used to store the target port constraints of the edges.public void createPortConstraintsFromSketch(LayoutGraph graph, EdgeCursor ec, EdgeMap spcMap, boolean strongSP, EdgeMap tpcMap, boolean strongTP)
ec
- EdgeCursor that provides access to the edges for which to set portconstraints.spcMap
- an edgemap that will be used to store the source port constraints of the edges.strongSP
- whether or not to assign strong source port constraintstpcMap
- an edgemap that will be used to store the target port constraints of the edges.strongTP
- whether or not to assign strong target port constraints
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |