Class ConnectionBendpointEditPolicy

java.lang.Object
org.eclipse.gef.editpolicies.AbstractEditPolicy
org.eclipse.gef.editpolicies.GraphicalEditPolicy
org.eclipse.gef.editpolicies.SelectionEditPolicy
org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy
org.eclipse.graphiti.ui.internal.policy.BendpointEditPolicyFixed
org.eclipse.graphiti.ui.internal.policy.ConnectionBendpointEditPolicy
All Implemented Interfaces:
PropertyChangeListener, EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.gef.EditPolicy, org.eclipse.gef.RequestConstants

public class ConnectionBendpointEditPolicy extends BendpointEditPolicyFixed
  • Constructor Details

  • Method Details

    • activate

      public void activate()
      Description copied from class: BendpointEditPolicyFixed
      activate() is extended to add a listener to the Connection figure.
      Specified by:
      activate in interface org.eclipse.gef.EditPolicy
      Overrides:
      activate in class BendpointEditPolicyFixed
      See Also:
      • EditPolicy.activate()
    • getCreateBendpointCommand

      protected org.eclipse.gef.commands.Command getCreateBendpointCommand(org.eclipse.gef.requests.BendpointRequest request)
      Description copied from class: BendpointEditPolicyFixed
      Implement this method to return a Command that will create a bendpoint.
      Specified by:
      getCreateBendpointCommand in class BendpointEditPolicyFixed
      Parameters:
      request - the BendpointRequest
      Returns:
      a Command to create a bendpoint
    • getDeleteBendpointCommand

      protected org.eclipse.gef.commands.Command getDeleteBendpointCommand(org.eclipse.gef.requests.BendpointRequest request)
      Description copied from class: BendpointEditPolicyFixed
      Implement this method to return a Command that will delete a bendpoint.
      Specified by:
      getDeleteBendpointCommand in class BendpointEditPolicyFixed
      Parameters:
      request - the BendpointRequest
      Returns:
      a Command to delete a bendpoint
    • getMoveBendpointCommand

      protected org.eclipse.gef.commands.Command getMoveBendpointCommand(org.eclipse.gef.requests.BendpointRequest request)
      Description copied from class: BendpointEditPolicyFixed
      Implement this method to return a Command that will move a bendpoint.
      Specified by:
      getMoveBendpointCommand in class BendpointEditPolicyFixed
      Parameters:
      request - the BendpointRequest
      Returns:
      a Command to move a bendpoint
    • showCreateBendpointFeedback

      protected void showCreateBendpointFeedback(org.eclipse.gef.requests.BendpointRequest request)
      Description copied from class: BendpointEditPolicyFixed
      Shows feedback when a bendpoint is being created. The original figure is used for feedback and the original constraint is saved, so that it can be restored when feedback is erased.
      Overrides:
      showCreateBendpointFeedback in class BendpointEditPolicyFixed
      Parameters:
      request - the BendpointRequest
    • showMoveBendpointFeedback

      protected void showMoveBendpointFeedback(org.eclipse.gef.requests.BendpointRequest request)
      Description copied from class: BendpointEditPolicyFixed
      Shows feedback when a bendpoint is being moved. Also checks to see if the bendpoint should be deleted and then calls BendpointEditPolicyFixed.showDeleteBendpointFeedback(BendpointRequest) if needed. The original figure is used for feedback and the original constraint is saved, so that it can be restored when feedback is erased.
      Overrides:
      showMoveBendpointFeedback in class BendpointEditPolicyFixed
      Parameters:
      request - the BendpointRequest
    • createHandlesForAutomaticBendpoints

      protected List<org.eclipse.gef.handles.BendpointHandle> createHandlesForAutomaticBendpoints()
      Overrides:
      createHandlesForAutomaticBendpoints in class BendpointEditPolicyFixed
    • createHandlesForUserBendpoints

      protected List<org.eclipse.gef.handles.BendpointHandle> createHandlesForUserBendpoints()
      Overrides:
      createHandlesForUserBendpoints in class BendpointEditPolicyFixed
    • setReferencePoints

      protected void setReferencePoints(org.eclipse.gef.requests.BendpointRequest request)
      Overrides:
      setReferencePoints in class BendpointEditPolicyFixed
    • showSelection

      protected void showSelection()
      Overrides:
      showSelection in class org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy