|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.util.FlagSupport
org.eclipse.gef.tools.AbstractTool
org.eclipse.gef.tools.SimpleDragTracker
org.eclipse.gef.internal.ui.rulers.RulerDragTracker
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.gef.tools.AbstractTool |
AbstractTool.Input |
| Field Summary | |
protected RulerEditPart |
source
|
| Fields inherited from class org.eclipse.gef.tools.SimpleDragTracker |
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_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 | |
RulerDragTracker(RulerEditPart source)
|
|
| Method Summary | |
protected void |
eraseSourceFeedback()
Show the source drag feedback for the drag occurring within the viewer. |
protected Command |
getCommand()
Returns a new, updated command based on the tool's current properties. |
protected java.lang.String |
getCommandName()
Returns the identifier of the command that is being sought. |
protected int |
getCurrentPosition()
|
protected int |
getCurrentPositionZoomed()
|
protected java.lang.String |
getDebugName()
Returns the debug name for this tool. |
protected org.eclipse.swt.graphics.Cursor |
getDefaultCursor()
Returns the cursor used under normal conditions. |
protected boolean |
handleButtonDown(int button)
Looks for button 1, and goes into the drag state. |
protected boolean |
handleButtonUp(int button)
If dragging is in progress, cleans up feedback and calls performDrag(). |
protected boolean |
isCreationValid()
|
protected boolean |
isDelete()
|
protected boolean |
movedPastThreshold()
Returns true if the threshold has been exceeded during a mouse drag. |
protected void |
showSourceFeedback()
Show the source drag feedback for the drag occurring within the viewer. |
| Methods inherited from class org.eclipse.gef.tools.SimpleDragTracker |
calculateCursor, commitDrag, createSourceRequest, deactivate, getSourceRequest, handleDragInProgress, handleDragStarted, handleInvalidInput, handleKeyDown, handleKeyUp, isShowingFeedback, performDrag, updateSourceRequest |
| 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 |
| Methods inherited from interface org.eclipse.gef.Tool |
activate, focusGained, focusLost, keyDown, keyUp, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, nativeDragFinished, nativeDragStarted, setEditDomain, setViewer, viewerEntered, viewerExited |
| Field Detail |
protected RulerEditPart source
| Constructor Detail |
public RulerDragTracker(RulerEditPart source)
| Method Detail |
protected void eraseSourceFeedback()
SimpleDragTracker
eraseSourceFeedback in class SimpleDragTrackerprotected Command getCommand()
AbstractTool
getCommand in class AbstractToolprotected java.lang.String getCommandName()
AbstractTool
getCommandName in class AbstractToolprotected int getCurrentPositionZoomed()
protected int getCurrentPosition()
protected java.lang.String getDebugName()
AbstractTool
getDebugName in class AbstractToolprotected org.eclipse.swt.graphics.Cursor getDefaultCursor()
AbstractTool
getDefaultCursor in class AbstractToolAbstractTool.setDefaultCursor(Cursor)protected boolean handleButtonDown(int button)
SimpleDragTracker
handleButtonDown in class SimpleDragTrackerAbstractTool.handleButtonDown(int)protected boolean handleButtonUp(int button)
SimpleDragTracker
handleButtonUp in class SimpleDragTrackerAbstractTool.handleButtonUp(int)protected boolean isCreationValid()
protected boolean isDelete()
protected boolean movedPastThreshold()
AbstractTooltrue if the threshold has been exceeded during a mouse drag.
movedPastThreshold in class AbstractTooltrue if the threshold has been exceededprotected void showSourceFeedback()
SimpleDragTracker
showSourceFeedback in class SimpleDragTracker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||