|
|||||||||||
| 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.IdPredicate
This class is a simple implementation of the visualport assignment predicate, that assigns by id.
| Nested Class Summary |
| Constructor Summary | |
VisualPortAssignmentPredicate.IdPredicate(long id)
Constructs a new IdPredicate. |
|
| 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.IdPredicate(long id)
IdPredicate.
id - the id this predicates matches.| 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 | ||||||||||