|
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.util.FlagSupport | +--org.eclipse.gef.tools.AbstractTool | +--org.eclipse.gef.tools.TargetingTool
Nested Class Summary |
Nested classes inherited from class org.eclipse.gef.tools.AbstractTool |
AbstractTool.Input |
Field Summary | |
protected static int |
MAX_FLAG
|
Fields inherited from class org.eclipse.gef.tools.AbstractTool |
MAX_STATE, MOUSE_BUTTON_ANY, MOUSE_BUTTON1, MOUSE_BUTTON2, MOUSE_BUTTON3, STATE_ACCESSIBLE_DRAG, STATE_ACCESSIBLE_DRAG_IN_PROGRESS, STATE_DRAG, STATE_DRAG_IN_PROGRESS, STATE_INITIAL, STATE_INVALID, STATE_TERMINAL |
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 | |
TargetingTool()
|
Method Summary | |
protected Request |
createTargetRequest()
|
void |
deactivate()
Deactivates the tool. |
protected void |
doAutoexpose()
|
protected void |
eraseTargetFeedback()
Erase feedback indicating that the viewer object is no longer the target of a drag. |
protected Command |
getCommand()
Re-queries the target viewer object for a command |
protected Collection |
getExclusionSet()
Returns a List of EditParts that should be excluded from the possible Targets for this tools operations Example, when dragging an object, the object should be excluded to prevent you from dropping the object inside itself. |
protected EditPart |
getTargetEditPart()
|
protected EditPartViewer.Conditional |
getTargetingConditional()
|
protected Request |
getTargetRequest()
|
protected void |
handleAutoexpose()
|
protected boolean |
handleEnteredEditPart()
|
protected boolean |
handleExitingEditPart()
|
protected boolean |
handleHoverStop()
|
protected boolean |
handleInvalidInput()
|
protected void |
handleLeavingEditPart()
|
protected boolean |
handleViewerExited()
Called when the mouse exits an EditPartViewer. |
protected boolean |
isShowingTargetFeedback()
|
protected boolean |
isTargetLocked()
|
protected void |
lockTargetEditPart(EditPart editpart)
|
protected void |
setAutoexposeHelper(AutoexposeHelper helper)
|
protected void |
setTargetEditPart(EditPart editpart)
|
protected void |
setTargetRequest(Request req)
|
protected void |
showTargetFeedback()
|
protected void |
unlockTargetEditPart()
|
protected void |
updateAutoexposeHelper()
Updates the active AutoexposeHelper . |
protected void |
updateTargetRequest()
Subclasses should override to update the target request. |
protected boolean |
updateTargetUnderMouse()
Returns true if the target has changed. |
Methods inherited from class org.eclipse.gef.util.FlagSupport |
getFlag, setFlag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int MAX_FLAG
Constructor Detail |
public TargetingTool()
Method Detail |
protected Request createTargetRequest()
public void deactivate()
AbstractTool
deactivate
in interface Tool
deactivate
in class AbstractTool
AbstractTool.activate()
protected void doAutoexpose()
protected void eraseTargetFeedback()
protected Command getCommand()
AbstractTool
getCommand
in class AbstractTool
protected Collection getExclusionSet()
protected EditPartViewer.Conditional getTargetingConditional()
protected EditPart getTargetEditPart()
protected Request getTargetRequest()
protected void handleAutoexpose()
protected boolean handleEnteredEditPart()
protected boolean handleExitingEditPart()
protected boolean handleHoverStop()
protected boolean handleInvalidInput()
protected final void handleLeavingEditPart() throws Exception
Exception
protected boolean handleViewerExited()
AbstractTool
handleViewerExited
in class AbstractTool
protected boolean isShowingTargetFeedback()
protected boolean isTargetLocked()
protected void lockTargetEditPart(EditPart editpart)
protected void setAutoexposeHelper(AutoexposeHelper helper)
protected void setTargetEditPart(EditPart editpart)
protected void setTargetRequest(Request req)
protected void showTargetFeedback()
protected void unlockTargetEditPart()
protected void updateAutoexposeHelper()
AutoexposeHelper
. Does nothing if there is still an active
helper. Otherwise, obtains a new helper (possible null
) at the current
mouse location and calls setAutoexposeHelper(AutoexposeHelper)
.
protected void updateTargetRequest()
protected boolean updateTargetUnderMouse()
true
if the target has changed.
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |