public class OfficeFloorGraphicalNodeEditPolicy
extends org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy
EditPolicy
for creating connections.connectionFeedback, feedbackHelper
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
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 and Description |
---|
OfficeFloorGraphicalNodeEditPolicy() |
Modifier and Type | Method and Description |
---|---|
<S,T> void |
addConnection(Class<S> sourceType,
Class<T> targetType,
ConnectionChangeFactory<S,T> factory)
Registers a
ConnectionChangeFactory . |
protected org.eclipse.gef.commands.Command |
getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest request) |
protected org.eclipse.gef.commands.Command |
getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest request) |
protected org.eclipse.gef.commands.Command |
getReconnectSourceCommand(org.eclipse.gef.requests.ReconnectRequest request) |
protected org.eclipse.gef.commands.Command |
getReconnectTargetCommand(org.eclipse.gef.requests.ReconnectRequest request) |
createDummyConnection, deactivate, eraseCreationFeedback, eraseSourceFeedback, eraseTargetConnectionFeedback, eraseTargetFeedback, getCommand, getDummyConnectionRouter, getFeedbackHelper, getSourceConnectionAnchor, getTargetConnectionAnchor, getTargetEditPart, showCreationFeedback, showSourceFeedback, showTargetConnectionFeedback, showTargetFeedback
addFeedback, getFeedbackLayer, getHostFigure, getLayer, removeFeedback
public <S,T> void addConnection(Class<S> sourceType, Class<T> targetType, ConnectionChangeFactory<S,T> factory)
ConnectionChangeFactory
.S
- Source type.T
- Target type.sourceType
- Source Model
type.targetType
- Target Model
type.factory
- ConnectionChangeFactory
.protected org.eclipse.gef.commands.Command getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest request)
getConnectionCreateCommand
in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy
protected org.eclipse.gef.commands.Command getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest request)
getConnectionCompleteCommand
in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy
protected org.eclipse.gef.commands.Command getReconnectSourceCommand(org.eclipse.gef.requests.ReconnectRequest request)
getReconnectSourceCommand
in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy
protected org.eclipse.gef.commands.Command getReconnectTargetCommand(org.eclipse.gef.requests.ReconnectRequest request)
getReconnectTargetCommand
in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy
Copyright © 2005–2016. All rights reserved.