|
Modelers | |||||||||
| 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.GraphicalNodeEditPolicy
org.topcased.modeler.edit.policies.NodeEditPolicy
org.topcased.modeler.edit.policies.AbstractEdgeCreationEditPolicy
public abstract class AbstractEdgeCreationEditPolicy
creation : 15 juin 2005 Edge creation policy template
| Field Summary |
|---|
| Fields inherited from class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy |
|---|
connectionFeedback, feedbackHelper |
| 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 | |
|---|---|
AbstractEdgeCreationEditPolicy()
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
checkCommand(org.eclipse.gef.commands.Command command)
Check that the given command type is correct |
protected abstract boolean |
checkEdge(GraphEdge edge)
Check that current edge is complient with the model object that is represented here |
protected abstract boolean |
checkSource(GraphElement source)
Check that source object supports the current edge |
protected abstract boolean |
checkTargetForSource(GraphElement source,
GraphElement target)
Check that source and target are available for this type of edge |
protected abstract CreateTypedEdgeCommand |
createCommand(org.eclipse.gef.EditDomain domain,
GraphEdge edge,
GraphElement source)
Get new edge creation command |
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)
|
protected abstract SourceTargetData |
getSourceTargetData(GraphElement source,
GraphElement target)
Build a SourceTargetData structure for a given source and a given target |
protected void |
showCreationFeedback(org.eclipse.gef.requests.CreateConnectionRequest request)
Avoid duplicate feedbacks when several edge policies are available |
| Methods inherited from class org.topcased.modeler.edit.policies.NodeEditPolicy |
|---|
getFeedbackLayer |
| Methods inherited from class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy |
|---|
createDummyConnection, deactivate, eraseCreationFeedback, eraseSourceFeedback, eraseTargetConnectionFeedback, eraseTargetFeedback, getCommand, getDummyConnectionRouter, getFeedbackHelper, getSourceConnectionAnchor, getTargetConnectionAnchor, getTargetEditPart, showSourceFeedback, showTargetConnectionFeedback, showTargetFeedback |
| Methods inherited from class org.eclipse.gef.editpolicies.GraphicalEditPolicy |
|---|
addFeedback, getHostFigure, getLayer, removeFeedback |
| Methods inherited from class org.eclipse.gef.editpolicies.AbstractEditPolicy |
|---|
activate, debugFeedback, getHost, setHost, toString, understandsRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractEdgeCreationEditPolicy()
| Method Detail |
|---|
protected org.eclipse.gef.commands.Command getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest request)
getConnectionCreateCommand in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicyGraphicalNodeEditPolicy.getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest)protected org.eclipse.gef.commands.Command getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest request)
getConnectionCompleteCommand in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicyGraphicalNodeEditPolicy.getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest)protected void showCreationFeedback(org.eclipse.gef.requests.CreateConnectionRequest request)
showCreationFeedback in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicyGraphicalNodeEditPolicy.showCreationFeedback(org.eclipse.gef.requests.CreateConnectionRequest)protected org.eclipse.gef.commands.Command getReconnectTargetCommand(org.eclipse.gef.requests.ReconnectRequest request)
getReconnectTargetCommand in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicyGraphicalNodeEditPolicy.getReconnectTargetCommand(org.eclipse.gef.requests.ReconnectRequest)protected org.eclipse.gef.commands.Command getReconnectSourceCommand(org.eclipse.gef.requests.ReconnectRequest request)
getReconnectSourceCommand in class org.eclipse.gef.editpolicies.GraphicalNodeEditPolicyGraphicalNodeEditPolicy.getReconnectSourceCommand(org.eclipse.gef.requests.ReconnectRequest)
protected abstract CreateTypedEdgeCommand createCommand(org.eclipse.gef.EditDomain domain,
GraphEdge edge,
GraphElement source)
domain - the current edit domainedge - the current edgesource - the graphElement source
protected abstract boolean checkEdge(GraphEdge edge)
edge - the current edge
protected abstract boolean checkSource(GraphElement source)
source - the graphnode source
protected abstract boolean checkTargetForSource(GraphElement source,
GraphElement target)
source - the graphnode sourcetarget - the graphnode target
protected abstract boolean checkCommand(org.eclipse.gef.commands.Command command)
command - the command
protected abstract SourceTargetData getSourceTargetData(GraphElement source,
GraphElement target)
source - the graphnode sourcetarget - the graphnode target
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.