|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.view.VisualPortAssignmentPredicate
com.tensegrity.graph.view.VisualPortAssignmentPredicate.ConstrainedShortestDistancePredicate
Updates the ports according to the distance but constrained
to the given VisualNode.
| Nested Class Summary |
| Constructor Summary | |
VisualPortAssignmentPredicate.ConstrainedShortestDistancePredicate(Coordinate coordinate,
VisualNode visualnode)
Constructs a ConstrainedShortestDistancePredicate instance for
the given reference point. |
|
| Method Summary | |
VisualPort |
apply(VisualGraph visualgraph,
VisualEdge visualedge,
VisualNode visualnode,
VisualPort visualport,
boolean isSource)
This is the predicate method an implementer of this specification must provide. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VisualPortAssignmentPredicate.ConstrainedShortestDistancePredicate(Coordinate coordinate,
VisualNode visualnode)
ConstrainedShortestDistancePredicate instance for
the given reference point.
coordinate - the reference point for finding the closest distance.visualnode - the visualnode to match| Method Detail |
public VisualPort apply(VisualGraph visualgraph,
VisualEdge visualedge,
VisualNode visualnode,
VisualPort visualport,
boolean isSource)
VisualPortAssignmentPredicateVisualNode as the old port.
Another invariant affects the incoming arguments of the method.
The incoming port VisualPort must always be
a port that is associated with the incoming VisualNode.
apply in class VisualPortAssignmentPredicatevisualgraph - the VisualGraph the connection is in.visualedge - the VisualEdge that is previously connected.visualnode - the VisualNode that is previously connected.visualport - the VisualPort that is previously connected.isSource - false if the connection is a target end, true
if the connection is a source end.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||