UML

org.topcased.modeler.uml.sequencediagram.policies
Class MoveGraphEdgeEditPolicy

java.lang.Object
  extended by EdgeEndpointEditPolicy
      extended by org.topcased.modeler.uml.sequencediagram.policies.MoveGraphEdgeEditPolicy
Direct Known Subclasses:
MoveMessageEditPolicy

public class MoveGraphEdgeEditPolicy
extends EdgeEndpointEditPolicy

The edit policy that manage the move of graph edge


Field Summary
static java.lang.String GRAPHEDGE_MOVE_ROLE
          the edit policy ID
 
Constructor Summary
MoveGraphEdgeEditPolicy()
           
 
Method Summary
protected  org.eclipse.gef.commands.Command getCommand(GraphEdgeEditPart edgeEdit, org.eclipse.draw2d.geometry.Point initialLoc, org.eclipse.draw2d.geometry.Point loc)
          Return the command
 org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.Request request)
          Handle the move graphedge request
protected  org.eclipse.gef.editpolicies.FeedbackHelper getFeedbackHelper(GraphEdgeMoveRequest request)
          Return the feedback helper
protected  void showConnectionMoveFeedback(GraphEdgeMoveRequest request)
          Show the connection feedback
 void showSourceFeedback(org.eclipse.gef.Request request)
          Add feedback for the graph edge move
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRAPHEDGE_MOVE_ROLE

public static final java.lang.String GRAPHEDGE_MOVE_ROLE
the edit policy ID

See Also:
Constant Field Values
Constructor Detail

MoveGraphEdgeEditPolicy

public MoveGraphEdgeEditPolicy()
Method Detail

getCommand

public org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.Request request)
Handle the move graphedge request

See Also:
EditPolicy.getCommand(org.eclipse.gef.Request)

getCommand

protected org.eclipse.gef.commands.Command getCommand(GraphEdgeEditPart edgeEdit,
                                                      org.eclipse.draw2d.geometry.Point initialLoc,
                                                      org.eclipse.draw2d.geometry.Point loc)
Return the command

Parameters:
edgeEdit - the edit part of the graph edge to move
initialLoc - the initial position of the connection
loc - the new position of the connection
Returns:
the command

getFeedbackHelper

protected org.eclipse.gef.editpolicies.FeedbackHelper getFeedbackHelper(GraphEdgeMoveRequest request)
Return the feedback helper

Parameters:
request - the request to feedback
Returns:
the feedback helper

showConnectionMoveFeedback

protected void showConnectionMoveFeedback(GraphEdgeMoveRequest request)
Show the connection feedback

Parameters:
request - the request to feedback

showSourceFeedback

public void showSourceFeedback(org.eclipse.gef.Request request)
Add feedback for the graph edge move

See Also:
EditPolicy.showSourceFeedback(org.eclipse.gef.Request)

UML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.