Package org.eclipse.gef.editpolicies
Class FeedbackHelper
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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ConnectionReturns the connection being used to show feedback.protected booleanReturns true is the feedback is moving the source anchorprotected voidsetAnchor(ConnectionAnchor anchor) Sets the anchor for the end being moved.voidSets the connection.voidsetMovingStartAnchor(boolean value) Sets if moving start of connection.voidupdate(ConnectionAnchor anchor, Point p) Updates the feedback based on the given anchor or point.
- 
Constructor Details- 
FeedbackHelperpublic FeedbackHelper()Constructs a new FeedbackHelper.
 
- 
- 
Method Details- 
getConnectionReturns the connection being used to show feedback.- Returns:
- the connection
 
- 
isMovingStartAnchorprotected boolean isMovingStartAnchor()Returns true is the feedback is moving the source anchor- Returns:
- trueif moving start
 
- 
setConnectionSets the connection.- Parameters:
- c- connection
 
- 
setMovingStartAnchorpublic void setMovingStartAnchor(boolean value) Sets if moving start of connection.- Parameters:
- value-- trueif the starts is being moved
 
- 
setAnchorSets the anchor for the end being moved.- Parameters:
- anchor- the new anchor
 
- 
updateUpdates the feedback based on the given anchor or point. The anchor is used unlessnull. The point is used when there is no anchor.- Parameters:
- anchor-- nullor an anchor
- p- the point to use when there is no anchor
 
 
-