Class PolyPointDragTracker
java.lang.Object
org.eclipse.gef.util.FlagSupport
org.eclipse.gef.tools.AbstractTool
org.eclipse.gef.tools.SimpleDragTracker
org.csstudio.opibuilder.widgets.feedback.PolyPointDragTracker
- All Implemented Interfaces:
org.eclipse.gef.DragTracker
,org.eclipse.gef.RequestConstants
,org.eclipse.gef.Tool
public final class PolyPointDragTracker
extends org.eclipse.gef.tools.SimpleDragTracker
A drag tracker, that moves points of polygons or polylines.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.gef.tools.AbstractTool
org.eclipse.gef.tools.AbstractTool.Input
-
Field Summary
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, PROPERTY_UNLOAD_WHEN_FINISHED, 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
ConstructorDescriptionPolyPointDragTracker
(org.eclipse.gef.GraphicalEditPart owner, int pointIndex) Constructs a new DragEditPartsTracker with the given source edit part and point index. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.gef.Request
protected org.eclipse.gef.commands.Command
protected String
protected org.eclipse.draw2d.geometry.PrecisionRectangle
Gets the source bounds of the owners figure.protected org.eclipse.gef.Request
Returns the request for the source of the drag, creating it if necessary.protected org.eclipse.gef.GraphicalEditPart
The TargetEditPart is the parent of the EditPart being resized.protected void
protected void
Methods inherited from class org.eclipse.gef.tools.SimpleDragTracker
calculateCursor, commitDrag, deactivate, eraseSourceFeedback, handleButtonDown, handleButtonUp, handleDragInProgress, handleDragStarted, handleInvalidInput, handleKeyDown, handleKeyUp, isShowingFeedback, showSourceFeedback
Methods inherited from class org.eclipse.gef.tools.AbstractTool
acceptArrowKey, accGetStep, accStepIncrement, accStepReset, activate, addFeedback, applyProperty, createOperationSet, debug, executeCommand, executeCurrentCommand, focusGained, focusLost, getCurrentCommand, getCurrentInput, getCurrentViewer, getDebugName, getDebugNameForState, getDefaultCursor, getDisabledCursor, getDomain, getDragMoveDelta, getLocation, getOperationSet, getStartLocation, getState, handleCommandStackChanged, handleDoubleClick, handleDrag, handleFinished, handleFocusGained, handleFocusLost, handleHover, handleKeyTraversed, handleMove, handleNativeDragFinished, handleNativeDragStarted, handleViewerEntered, handleViewerExited, isActive, isHoverActive, isInState, isViewerImportant, keyDown, keyTraversed, keyUp, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, mouseWheelScrolled, movedPastThreshold, nativeDragFinished, nativeDragStarted, performViewerMouseWheel, placeMouseInViewer, reactivate, refreshCursor, releaseToolCapture, removeFeedback, resetFlags, setCurrentCommand, setCursor, setDefaultCursor, setDisabledCursor, setEditDomain, setHoverActive, setProperties, setStartLocation, setState, setToolCapture, setUnloadWhenFinished, setViewer, stateTransition, unloadWhenFinished, viewerEntered, viewerExited
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, keyTraversed, keyUp, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, mouseWheelScrolled, nativeDragFinished, nativeDragStarted, setEditDomain, setProperties, setViewer, viewerEntered, viewerExited
-
Constructor Details
-
PolyPointDragTracker
public PolyPointDragTracker(org.eclipse.gef.GraphicalEditPart owner, int pointIndex) Constructs a new DragEditPartsTracker with the given source edit part and point index.- Parameters:
owner
- the source edit partpointIndex
- the index of the poly point, which should be dragged
-
-
Method Details
-
getTargetEditPart
protected org.eclipse.gef.GraphicalEditPart getTargetEditPart()The TargetEditPart is the parent of the EditPart being resized.- Returns:
- The target EditPart; may be
null
in 2.1 applications that use the now deprecatedconstructor
.
-
getSourceBounds
protected org.eclipse.draw2d.geometry.PrecisionRectangle getSourceBounds()Gets the source bounds of the owners figure.- Returns:
- the source bounds
-
getCommandName
- Specified by:
getCommandName
in classorg.eclipse.gef.tools.AbstractTool
-
createSourceRequest
protected org.eclipse.gef.Request createSourceRequest()- Overrides:
createSourceRequest
in classorg.eclipse.gef.tools.SimpleDragTracker
-
updateSourceRequest
protected void updateSourceRequest()- Overrides:
updateSourceRequest
in classorg.eclipse.gef.tools.SimpleDragTracker
-
getCommand
protected org.eclipse.gef.commands.Command getCommand()- Overrides:
getCommand
in classorg.eclipse.gef.tools.AbstractTool
-
getSourceRequest
protected org.eclipse.gef.Request getSourceRequest()Returns the request for the source of the drag, creating it if necessary.- Overrides:
getSourceRequest
in classorg.eclipse.gef.tools.SimpleDragTracker
- Returns:
- the source request
-
performDrag
protected void performDrag()- Overrides:
performDrag
in classorg.eclipse.gef.tools.SimpleDragTracker
-