public abstract class BendpointEditPolicyFixed
extends org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy
implements java.beans.PropertyChangeListener
ConnectionEditPart.
BendpointEditPolicy will automatically observe the
Connection figure. If the number of bends in the
Connection changes, the handles will be updated.
COMPONENT_ROLE, CONNECTION_BENDPOINTS_ROLE, CONNECTION_ENDPOINTS_ROLE, CONNECTION_ROLE, CONTAINER_ROLE, DIRECT_EDIT_ROLE, GRAPHICAL_NODE_ROLE, LAYOUT_ROLE, NODE_ROLE, PRIMARY_DRAG_ROLE, SELECTION_FEEDBACK_ROLE, TREE_CONTAINER_ROLEREQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER| Constructor and Description |
|---|
BendpointEditPolicyFixed(IConfigurationProviderInternal configurationProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
activate() is extended to add a listener to the
Connection figure. |
void |
deactivate()
deactivate() is extended to remove the property change
listener on the Connection figure. |
void |
eraseSourceFeedback(org.eclipse.gef.Request request) |
org.eclipse.gef.commands.Command |
getCommand(org.eclipse.gef.Request request)
Factors the Request into either a MOVE, a DELETE, or a CREATE of a
bendpoint.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
If the number of bendpoints changes, handles are updated.
|
void |
showSourceFeedback(org.eclipse.gef.Request request)
Shows feedback when appropriate.
|
public BendpointEditPolicyFixed(IConfigurationProviderInternal configurationProvider)
public void activate()
activate() is extended to add a listener to the
Connection figure.activate in interface org.eclipse.gef.EditPolicyactivate in class org.eclipse.gef.editpolicies.SelectionEditPolicyEditPolicy.activate()public void deactivate()
deactivate() is extended to remove the property change
listener on the Connection figure.deactivate in interface org.eclipse.gef.EditPolicydeactivate in class org.eclipse.gef.editpolicies.SelectionEditPolicyEditPolicy.deactivate()public void eraseSourceFeedback(org.eclipse.gef.Request request)
eraseSourceFeedback in interface org.eclipse.gef.EditPolicyeraseSourceFeedback in class org.eclipse.gef.editpolicies.AbstractEditPolicyEditPolicy.eraseSourceFeedback(Request)public org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.Request request)
getCommand in interface org.eclipse.gef.EditPolicygetCommand in class org.eclipse.gef.editpolicies.AbstractEditPolicyEditPolicy.getCommand(Request)public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerPropertyChangeListener.propertyChange(PropertyChangeEvent)public void showSourceFeedback(org.eclipse.gef.Request request)
showSourceFeedback in interface org.eclipse.gef.EditPolicyshowSourceFeedback in class org.eclipse.gef.editpolicies.AbstractEditPolicyrequest - the RequestshowCreateBendpointFeedback(BendpointRequest),
showMoveBendpointFeedback(BendpointRequest)