org.eclipse.gef.editpolicies
Class ResizableEditPolicy
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.gef.editpolicies.NonResizableEditPolicy
|
+--org.eclipse.gef.editpolicies.ResizableEditPolicy
- All Implemented Interfaces:
- EditPolicy, IAdaptable, RequestConstants
- public class ResizableEditPolicy
- extends NonResizableEditPolicy
Fields inherited from interface org.eclipse.gef.EditPolicy |
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_ROLE |
Fields inherited from interface org.eclipse.gef.RequestConstants |
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, 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 |
ResizableEditPolicy
public ResizableEditPolicy()
createSelectionHandles
protected List createSelectionHandles()
- Description copied from class:
SelectionHandlesEditPolicy
- Subclasses must implement to provide the list of handles.
- Overrides:
createSelectionHandles
in class NonResizableEditPolicy
- Returns:
- List
eraseSourceFeedback
public void eraseSourceFeedback(Request request)
- Erase feedback indicating that the receiver object is
being dragged. This method is called when a drag is
completed or cancelled on the receiver object.
- Specified by:
eraseSourceFeedback
in interface EditPolicy
- Overrides:
eraseSourceFeedback
in class NonResizableEditPolicy
getCommand
public Command getCommand(Request request)
- Get the command that performs an operation
of the type indicated by @commandString on the
receiver. Data needed to create the command is
contained in @tool
Possible values for the commandString depend on
the tool. Default tools send "create" and "move".
- Specified by:
getCommand
in interface EditPolicy
- Overrides:
getCommand
in class NonResizableEditPolicy
- Returns:
- org.eclipse.gef.commands.ICommand The command that performs the operation
- See Also:
EditPolicy.getCommand(Request)
getResizeCommand
protected Command getResizeCommand(ChangeBoundsRequest request)
showSourceFeedback
public void showSourceFeedback(Request request)
- Description copied from class:
AbstractEditPolicy
- Does nothing by default.
- Specified by:
showSourceFeedback
in interface EditPolicy
- Overrides:
showSourceFeedback
in class NonResizableEditPolicy
- See Also:
EditPolicy.showSourceFeedback(Request)
understandsRequest
public boolean understandsRequest(Request request)
- Description copied from class:
AbstractEditPolicy
- Returns
false
by default.
- Specified by:
understandsRequest
in interface EditPolicy
- Overrides:
understandsRequest
in class NonResizableEditPolicy
- See Also:
EditPolicy.understandsRequest(Request)
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.