|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.editpolicies.AbstractEditPolicy
org.eclipse.gef.editpolicies.GraphicalEditPolicy
org.eclipse.gef.editpolicies.LayoutEditPolicy
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy
org.eclipse.gef.editpolicies.XYLayoutEditPolicy
org.eclipse.gmf.runtime.diagram.ui.editpolicies.XYLayoutEditPolicy
the xy layout edit policy
XYLayoutEditPolicy| Field Summary |
| 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_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 Summary | |
XYLayoutEditPolicy()
|
|
| Method Summary | |
protected Command |
chainGuideAttachmentCommands(Request request,
Command cmd)
|
protected Command |
createAddCommand(EditPart child,
java.lang.Object constraint)
Called in response to a REQ_ADD (reparent) request. |
protected Command |
createChangeConstraintCommand(ChangeBoundsRequest request,
EditPart child,
java.lang.Object constraint)
|
protected Command |
createChangeConstraintCommand(EditPart child,
java.lang.Object constraint)
Called in response to a REQ_RESIZE_CHILDREN request. |
protected EditPolicy |
createChildEditPolicy(EditPart child)
|
protected Guide |
findGuideAt(int pos,
boolean horizontal)
gets the guid at a specific pos |
protected Rectangle |
getBoundsOffest(CreateViewRequest request,
Rectangle bounds,
CreateViewRequest.ViewDescriptor viewDescriptor)
Return bounds offset by some predefined amount. |
Command |
getCommand(Request request)
Creates command for REQ_CREATE requests only; all others requests are forwarded to the parent class. |
protected java.lang.Object |
getConstraintFor(ChangeBoundsRequest request,
GraphicalEditPart child)
|
protected java.lang.Object |
getConstraintFor(CreateRequest request)
|
protected Command |
getCreateCommand(CreateRequest request)
Called in response to a REQ_CREATE request. |
protected Command |
getDeleteDependantCommand(Request request)
null implementation: request not handled. |
protected IFigure |
getHostFigure()
Return the host's figure. |
protected Command |
getOrphanChildrenCommand(Request request)
null implementation: request not handled. |
| Methods inherited from class org.eclipse.gef.editpolicies.XYLayoutEditPolicy |
getConstraintFor, getConstraintFor, getCurrentConstraintFor, getLayoutOrigin, getMinimumSizeFor, getXYLayout, setXyLayout, showSizeOnDropFeedback |
| Methods inherited from class org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy |
getAddCommand, getAlignChildrenCommand, getConstraintForClone, getMoveChildrenCommand, getResizeChildrenCommand, translateToModelConstraint |
| Methods inherited from class org.eclipse.gef.editpolicies.LayoutEditPolicy |
activate, createListener, createSizeOnDropFeedback, deactivate, decorateChild, decorateChildren, eraseLayoutTargetFeedback, eraseSizeOnDropFeedback, eraseTargetFeedback, getCloneCommand, getCreationFeedbackOffset, getLayoutContainer, getSizeOnDropFeedback, getSizeOnDropFeedback, getTargetEditPart, setListener, showLayoutTargetFeedback, showTargetFeedback, undecorateChild, undecorateChildren |
| Methods inherited from class org.eclipse.gef.editpolicies.GraphicalEditPolicy |
addFeedback, getFeedbackLayer, getLayer, removeFeedback |
| Methods inherited from class org.eclipse.gef.editpolicies.AbstractEditPolicy |
debugFeedback, eraseSourceFeedback, getHost, setHost, showSourceFeedback, toString, understandsRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XYLayoutEditPolicy()
| Method Detail |
protected Command createAddCommand(EditPart child,
java.lang.Object constraint)
child - element being reparented.constraint - - rectangle containing the child's bounds (location)
protected Command createChangeConstraintCommand(ChangeBoundsRequest request,
EditPart child,
java.lang.Object constraint)
protected Command createChangeConstraintCommand(EditPart child,
java.lang.Object constraint)
child - the element being resized.constraint - the elements new bounds.
SetBoundsCommand
protected java.lang.Object getConstraintFor(ChangeBoundsRequest request,
GraphicalEditPart child)
ConstrainedLayoutEditPolicy.getConstraintFor(org.eclipse.gef.requests.ChangeBoundsRequest, org.eclipse.gef.GraphicalEditPart)protected Command getCreateCommand(CreateRequest request)
request - a create request (understands instances of CreateViewRequest).
protected Rectangle getBoundsOffest(CreateViewRequest request,
Rectangle bounds,
CreateViewRequest.ViewDescriptor viewDescriptor)
request - the requestbounds - the rectangle boundsviewDescriptor - the view descriptor
protected Command getDeleteDependantCommand(Request request)
protected Command getOrphanChildrenCommand(Request request)
protected EditPolicy createChildEditPolicy(EditPart child)
public Command getCommand(Request request)
XYLayoutEditPolicy.getCommand(Request)protected java.lang.Object getConstraintFor(CreateRequest request)
protected IFigure getHostFigure()
protected Command chainGuideAttachmentCommands(Request request,
Command cmd)
request - cmd -
protected Guide findGuideAt(int pos,
boolean horizontal)
pos - the positionhorizontal - the horizontal flag
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.