protected class AbstractBlockWorkspace.ConnectionTool extends SelectionTool
SelectionTool.DragModeAbstractLayoutTool.AbstractAlignmentAction, AbstractLayoutTool.AbstractNudgeAction, AbstractLayoutTool.AbstractZOrderAction, AbstractLayoutTool.AlignEdge, AbstractLayoutTool.CenterAction, AbstractLayoutTool.MoveNudgeAction, AbstractLayoutTool.MoveToTopOrBottomAction, AbstractLayoutTool.MoveUpOrDownAction, AbstractLayoutTool.Rotate90Action, AbstractLayoutTool.RowStackAction, AbstractLayoutTool.ScaleNudgeAction, AbstractLayoutTool.ZOrderChangeUndoActionIDesignTool.ToolbarInitializerlastClick, rotationInstalled, rotationPrimed, SELECTION_COLOR, SELECTION_COLOR_FILL, toMoveALIGN_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_RIGHTactionMap, 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, onPopupTriggercomponentsAreSiblings, convertBoundsToParent, evaluateEnabled, install, removeDescendentsaddAction, addKeyBinding, addKeyBinding, addPropertyChangeListener, createCursor, findDropContainer, getAction, getOffsettingBounds, getOriginalBounds, isInstalled, itemMovable, movable, newToolbarSpinner, newToolbarSpinner, newToolbarSpinner, onClickAlterSelection, onKeyEvent, onRelease, onRightClickSwitchToSelectionTool, removePropertyChangeListener, uninstallpublic ISelectionControl newSelectionControl()
IDesignToolnewSelectionControl in interface IDesignToolnewSelectionControl in class SelectionToolpublic 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 IDesignToolonDragStart in class SelectionToolpublic void onDrag(java.awt.Point startPoint,
java.awt.Point lastPoint,
java.awt.Rectangle r,
int modifiers)
AbstractDesignToolonDrag in interface IDesignToolonDrag in class SelectionToolpublic void onDragEnd(java.awt.Point startPoint,
java.awt.Point lastPoint,
java.awt.Rectangle r,
int modifiers)
AbstractDesignToolonDragEnd in interface IDesignToolonDragEnd in class SelectionToolpublic void onPress(java.awt.Point p,
int modifiers)
IDesignToolonPress in interface IDesignToolonPress in class AbstractDesignToolp - 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 IDesignToolonMove in class AbstractDesignTool