protected class AbstractBlockWorkspace.ConnectionTool extends SelectionTool
SelectionTool.DragMode
AbstractLayoutTool.AbstractAlignmentAction, AbstractLayoutTool.AbstractNudgeAction, AbstractLayoutTool.AbstractZOrderAction, AbstractLayoutTool.AlignEdge, AbstractLayoutTool.CenterAction, AbstractLayoutTool.MoveNudgeAction, AbstractLayoutTool.MoveToTopOrBottomAction, AbstractLayoutTool.MoveUpOrDownAction, AbstractLayoutTool.Rotate90Action, AbstractLayoutTool.RowStackAction, AbstractLayoutTool.ScaleNudgeAction, AbstractLayoutTool.ZOrderChangeUndoAction
IDesignTool.ToolbarInitializer
lastClick, rotationInstalled, rotationPrimed, SELECTION_COLOR, SELECTION_COLOR_FILL, toMove
ALIGN_AS_ROW, ALIGN_AS_ROW_NORMALIZE, ALIGN_AS_STACK, ALIGN_AS_STACK_NORMALIZE, ALIGN_BOTTOM, ALIGN_CENTER_HORIZONTAL, ALIGN_CENTER_VERTICAL, ALIGN_CENTERSH, ALIGN_CENTERSV, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, MOVE_BACKWARD, MOVE_FORWARD, MOVE_TO_BACK, MOVE_TO_FRONT, ROTATE_LEFT, ROTATE_RIGHT
actionMap, changeSupport, designable, HANDLES_PROPERTY, inputMap, interactionLayer, panel, workspace
Modifier | Constructor and Description |
---|---|
protected |
ConnectionTool() |
Modifier and Type | Method and Description |
---|---|
ISelectionControl |
newSelectionControl()
Gives the tool a chance to create a new selection control object to install handles on the selection.
|
void |
onDrag(java.awt.Point startPoint,
java.awt.Point lastPoint,
java.awt.Rectangle r,
int modifiers)
Called while the user is dragging.
|
void |
onDragEnd(java.awt.Point startPoint,
java.awt.Point lastPoint,
java.awt.Rectangle r,
int modifiers)
Called when the user stops dragging.
|
void |
onDragStart(java.awt.Point startPoint,
java.awt.Point lastPoint,
java.awt.Rectangle r,
int modifiers)
Starting a drag gesture.
|
void |
onMove(java.awt.Point move,
int modifiers) |
void |
onPress(java.awt.Point p,
int modifiers)
Called when the user presses the mouse in the design space.
|
addAlignmentActions, addKeyBinding, addZOrderActions, formatLocation, getCursor, getDragHighlight, getDragMode, getStatusBarText, getToolbarInitializer, initializeToolbar, initKeyboardActions, isRelevantFor, newRotationControl, newScaleControl, onClick, onDoubleClick, onPopupTrigger
componentsAreSiblings, convertBoundsToParent, evaluateEnabled, install, removeDescendents
addAction, addKeyBinding, addKeyBinding, addPropertyChangeListener, createCursor, findDropContainer, getAction, getOffsettingBounds, getOriginalBounds, isInstalled, itemMovable, movable, newToolbarSpinner, newToolbarSpinner, newToolbarSpinner, onClickAlterSelection, onKeyEvent, onRelease, onRightClickSwitchToSelectionTool, removePropertyChangeListener, uninstall
public ISelectionControl newSelectionControl()
IDesignTool
newSelectionControl
in interface IDesignTool
newSelectionControl
in class SelectionTool
public void onDragStart(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
SelectionTool
1. If the mouse is over a non-container, and SHIFT is not down, the under-mouse object will be MOVED. 2. If the current item selection is movable, and ALT is down, the current selection will be MOVED. 3. Otherwise a SELECTION DRAG will start. ALT will turn the drag into FENCE SELECTION at any time, otherwise it will be a MARQUEE selection.
onDragStart
in interface IDesignTool
onDragStart
in class SelectionTool
public void onDrag(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
AbstractDesignTool
onDrag
in interface IDesignTool
onDrag
in class SelectionTool
public void onDragEnd(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
AbstractDesignTool
onDragEnd
in interface IDesignTool
onDragEnd
in class SelectionTool
public void onPress(java.awt.Point p, int modifiers)
IDesignTool
onPress
in interface IDesignTool
onPress
in class AbstractDesignTool
p
- The point at which they pressed. Relative to the designable container.modifiers
- A bitmask of modifiers. Comes from InputEvent.getModifiersEx()
public void onMove(java.awt.Point move, int modifiers)
onMove
in interface IDesignTool
onMove
in class AbstractDesignTool