|
GEF v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.eclipse.gef.internal.FlagSupport
|
+--org.eclipse.gef.tools.AbstractTool
|
+--org.eclipse.gef.tools.SimpleDragTracker
A tool that interacts with one or more sources only. For example, bending a connection involves only that connection.
| Inner 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 |
| Constructor Summary | |
protected |
SimpleDragTracker()
Null constructor. |
| Method Summary | |
protected Cursor |
calculateCursor()
Calculates and returns the current cursor based on the tool's current state. |
void |
commitDrag()
|
protected Request |
createSourceRequest()
Creates and returns a new Request. |
void |
deactivate()
Deactivates the tool. |
protected void |
eraseSourceFeedback()
Show the source drag feedback for the drag occurring within the viewer. |
protected Request |
getSourceRequest()
Returns the request for the source of the drag, creating it if necessary. |
protected boolean |
handleButtonDown(int button)
Handles the button down event. |
protected boolean |
handleButtonUp(int button)
Handles the button up event. |
protected boolean |
handleDragInProgress()
Called after the mouse has been dragged past the threshold. |
protected boolean |
handleDragStarted()
Called once when the drag starts. |
protected boolean |
handleInvalidInput()
Called when the mouse and/or keyboard input is invalid. |
protected boolean |
handleKeyDown(KeyEvent e)
Handles high-level processing of a key down event. |
protected boolean |
handleKeyUp(KeyEvent e)
Handles high-level processing of a key up event. |
protected boolean |
isShowingFeedback()
Returns true if feedback is being shown. |
protected void |
performDrag()
|
protected void |
showSourceFeedback()
Show the source drag feedback for the drag occurring within the viewer. |
protected void |
updateSourceRequest()
Updates the source request. |
| Methods inherited from class org.eclipse.gef.internal.FlagSupport |
getFlag, setFlag |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.gef.Tool |
activate, focusGained, focusLost, keyDown, keyUp, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, setEditDomain, setViewer, viewerEntered, viewerExited |
| Field Detail |
protected static final int MAX_FLAG
| Constructor Detail |
protected SimpleDragTracker()
| Method Detail |
protected Cursor calculateCursor()
calculateCursor in class AbstractToolpublic void commitDrag()
commitDrag in interface DragTrackercommitDrag in class AbstractToolprotected Request createSourceRequest()
public void deactivate()
deactivate in interface Tooldeactivate in class AbstractToolorg.eclipse.gef.tools.AbstractToolAbstractTool.activate()protected void eraseSourceFeedback()
protected Request getSourceRequest()
protected boolean handleButtonDown(int button)
handleButtonDown in class AbstractToolprotected boolean handleButtonUp(int button)
handleButtonUp in class AbstractToolorg.eclipse.gef.tools.AbstractToolAbstractTool.mouseUp(MouseEvent, EditPartViewer)protected boolean handleDragInProgress()
handleDragInProgress in class AbstractToolorg.eclipse.gef.tools.AbstractToolAbstractTool.movedPastThreshold(),
AbstractTool.mouseDrag(MouseEvent, EditPartViewer)protected boolean handleDragStarted()
handleDragStarted in class AbstractToolorg.eclipse.gef.tools.AbstractToolAbstractTool.movedPastThreshold(),
AbstractTool.mouseDrag(MouseEvent, EditPartViewer)protected boolean handleInvalidInput()
protected boolean handleKeyDown(KeyEvent e)
AbstractToolhandleKeyDown in class AbstractToolorg.eclipse.gef.tools.AbstractToolAbstractTool.keyDown(KeyEvent, EditPartViewer)protected boolean handleKeyUp(KeyEvent e)
AbstractToolhandleKeyUp in class AbstractToolorg.eclipse.gef.tools.AbstractToolAbstractTool.keyUp(KeyEvent, EditPartViewer)protected boolean isShowingFeedback()
true if feedback is being shown.protected void performDrag()
protected void showSourceFeedback()
protected void updateSourceRequest()
|
GEF v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||