|
|||||||||||
| 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.AnglePredicate
Updates the ports accourding to the angle between the center of the source node and the center of the target node. Depends to the organisation of visual ports in the follwing order (x/y) index 0 = center/center index 1 = center/top index 2 = center/bottom index 3 = left/center index 4 = right/center
| Nested Class Summary |
| Constructor Summary | |
VisualPortAssignmentPredicate.AnglePredicate()
Constructs a new AnglePredicate. |
|
VisualPortAssignmentPredicate.AnglePredicate(int argument)
Constructs a new AnglePredicate. |
|
| 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. |
void |
setConstraint(VisualNode visualnode)
Sets a VisualNode that the selected port must be pointing
to as a constraint. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VisualPortAssignmentPredicate.AnglePredicate()
AnglePredicate.
public VisualPortAssignmentPredicate.AnglePredicate(int argument)
AnglePredicate.
argument - additional argument.| Method Detail |
public void setConstraint(VisualNode visualnode)
VisualNode that the selected port must be pointing
to as a constraint.
visualnode - constraining VisualNode.
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 | ||||||||||