|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.editpolicies.FeedbackHelper
Helps display connection feedback during drags of the connection ends. This class is used internally by the provided EditPolicy implementation.
Constructor Summary | |
FeedbackHelper()
Constructs a new FeedbackHelper. |
Method Summary | |
protected Connection |
getConnection()
Returns the connection being used to show feedback. |
protected boolean |
isMovingStartAnchor()
Returns true is the feedback is moving the source anchor |
protected void |
setAnchor(ConnectionAnchor anchor)
Sets the anchor for the end being moved. |
void |
setConnection(Connection c)
Sets the connection. |
void |
setMovingStartAnchor(boolean value)
Sets if moving start of connection. |
void |
update(ConnectionAnchor anchor,
Point p)
Updates the feedback based on the given anchor or point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FeedbackHelper()
Method Detail |
protected Connection getConnection()
protected boolean isMovingStartAnchor()
true
if moving startpublic void setConnection(Connection c)
c
- connectionpublic void setMovingStartAnchor(boolean value)
value
- true
if the starts is being movedprotected void setAnchor(ConnectionAnchor anchor)
anchor
- the new anchorpublic void update(ConnectionAnchor anchor, Point p)
null
. The point is used when there is no anchor.
anchor
- null
or an anchorp
- the point to use when there is no anchor
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |