public class FeedbackHelper
extends java.lang.Object
| Constructor and Description |
|---|
FeedbackHelper()
Constructs a new FeedbackHelper.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 anchorCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.