|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.ConnectionEndpointEditPolicy
A selection handle policy for placing handles at the two ends of a ConnectionEditPart. All ConnectionEditParts should have one of these, even if the ends of the connection aren't draggable, because this is the primary SelectionEditPolicy for showing focus.
A connection can receive focus but not selection by pressing Control+/
on
the keyboard.
Field Summary |
Fields inherited from class org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy |
handles |
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 |
Constructor Summary | |
ConnectionEndpointEditPolicy()
|
Method Summary | |
protected List |
createSelectionHandles()
Subclasses must implement to provide the list of handles. |
protected void |
eraseConnectionMoveFeedback(ReconnectRequest request)
|
void |
eraseSourceFeedback(Request request)
Erase feedback indicating that the receiver object is being dragged. |
Command |
getCommand(Request request)
Returns null by default. |
protected org.eclipse.draw2d.Connection |
getConnection()
Convenience method for obtaining the host's Connection figure. |
protected FeedbackHelper |
getFeedbackHelper(ReconnectRequest request)
|
protected void |
hideFocus()
Override to hide focus |
protected void |
showConnectionMoveFeedback(ReconnectRequest request)
|
protected void |
showFocus()
Override to show focus. |
void |
showSourceFeedback(Request request)
Does nothing by default. |
Methods inherited from class org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy |
addSelectionHandles, getAdapter, hideSelection, removeSelectionHandles, showSelection |
Methods inherited from class org.eclipse.gef.editpolicies.SelectionEditPolicy |
activate, addSelectionListener, deactivate, getTargetEditPart, removeSelectionListener, setFocus, setSelectedState, showPrimarySelection |
Methods inherited from class org.eclipse.gef.editpolicies.GraphicalEditPolicy |
addFeedback, getHostFigure, getLayer, removeFeedback |
Methods inherited from class org.eclipse.gef.editpolicies.AbstractEditPolicy |
debugFeedback, eraseTargetFeedback, getHost, setHost, showTargetFeedback, toString, understandsRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConnectionEndpointEditPolicy()
Method Detail |
protected List createSelectionHandles()
SelectionHandlesEditPolicy
createSelectionHandles
in class SelectionHandlesEditPolicy
SelectionHandlesEditPolicy.createSelectionHandles()
protected void eraseConnectionMoveFeedback(ReconnectRequest request)
public void eraseSourceFeedback(Request request)
eraseSourceFeedback
in interface EditPolicy
eraseSourceFeedback
in class AbstractEditPolicy
EditPolicy.eraseSourceFeedback(Request)
public Command getCommand(Request request)
AbstractEditPolicy
null
by default. null
is used to indicate that the
EditPolicy does not contribute to the specified Request
.
getCommand
in interface EditPolicy
getCommand
in class AbstractEditPolicy
EditPolicy.getCommand(Request)
protected org.eclipse.draw2d.Connection getConnection()
Connection
figure.
protected FeedbackHelper getFeedbackHelper(ReconnectRequest request)
protected void hideFocus()
SelectionEditPolicy
hideFocus
in class SelectionEditPolicy
SelectionEditPolicy.showFocus()
protected void showConnectionMoveFeedback(ReconnectRequest request)
protected void showFocus()
SelectionEditPolicy
showFocus
in class SelectionEditPolicy
SelectionEditPolicy.hideFocus()
public void showSourceFeedback(Request request)
AbstractEditPolicy
showSourceFeedback
in interface EditPolicy
showSourceFeedback
in class AbstractEditPolicy
EditPolicy.showSourceFeedback(Request)
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |