Class AbstractBlockWorkspace.ConnectionTool
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTool
- 
- com.inductiveautomation.ignition.designer.designable.tools.AbstractLayoutTool
- 
- com.inductiveautomation.ignition.designer.designable.tools.SelectionTool
- 
- com.inductiveautomation.ignition.designer.blockandconnector.AbstractBlockWorkspace.ConnectionTool
 
 
 
 
- 
- All Implemented Interfaces:
- IDesignTool,- IDesignTool.ToolbarInitializer
 - Enclosing class:
- AbstractBlockWorkspace
 
 protected class AbstractBlockWorkspace.ConnectionTool extends SelectionTool This extension of the standard SelectionTool is AnchorPoint aware and is used for creating connections between blocks in addition to selecting and moving blocks around
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.designable.tools.SelectionToolSelectionTool.DragMode
 - 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractLayoutToolAbstractLayoutTool.AbstractAlignmentAction, AbstractLayoutTool.AbstractNudgeAction, AbstractLayoutTool.AbstractZOrderAction, AbstractLayoutTool.AlignEdge, AbstractLayoutTool.CenterAction, AbstractLayoutTool.MoveNudgeAction, AbstractLayoutTool.MoveToTopOrBottomAction, AbstractLayoutTool.MoveUpOrDownAction, AbstractLayoutTool.Rotate90Action, AbstractLayoutTool.RowStackAction, AbstractLayoutTool.ScaleNudgeAction, AbstractLayoutTool.ZOrderChangeUndoAction
 - 
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.designable.IDesignToolIDesignTool.ToolbarInitializer
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.ignition.designer.designable.tools.SelectionToollastClick, rotationInstalled, rotationPrimed, SELECTION_COLOR, SELECTION_COLOR_FILL, toMove
 - 
Fields inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractLayoutToolALIGN_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
 - 
Fields inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignToolactionMap, changeSupport, designable, HANDLES_PROPERTY, inputMap, interactionLayer, panel, workspace
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedConnectionTool()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ISelectionControlnewSelectionControl()Gives the tool a chance to create a new selection control object to install handles on the selection.voidonDrag(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)Called while the user is dragging.voidonDragEnd(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)Called when the user stops dragging.voidonDragStart(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)Starting a drag gesture.voidonMove(java.awt.Point move, int modifiers)voidonPress(java.awt.Point p, int modifiers)Called when the user presses the mouse in the design space.- 
Methods inherited from class com.inductiveautomation.ignition.designer.designable.tools.SelectionTooladdAlignmentActions, addKeyBinding, addZOrderActions, formatLocation, getCursor, getDragHighlight, getDragMode, getStatusBarText, getToolbarInitializer, initializeToolbar, initKeyboardActions, isRelevantFor, newRotationControl, newScaleControl, onClick, onDoubleClick, onPopupTrigger
 - 
Methods inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractLayoutToolcomponentsAreSiblings, convertBoundsToParent, evaluateEnabled, install, removeDescendents
 - 
Methods inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTooladdAction, addKeyBinding, addKeyBinding, addPropertyChangeListener, createCursor, findDropContainer, getAction, getOffsettingBounds, getOriginalBounds, isInstalled, itemMovable, movable, newToolbarSpinner, newToolbarSpinner, newToolbarSpinner, onClickAlterSelection, onKeyEvent, onRelease, onRightClickSwitchToSelectionTool, removePropertyChangeListener, uninstall
 
- 
 
- 
- 
- 
Method Detail- 
newSelectionControlpublic ISelectionControl newSelectionControl() Description copied from interface:IDesignToolGives the tool a chance to create a new selection control object to install handles on the selection. Called on the active tool when the selection changes or after a tool is first installed.- Specified by:
- newSelectionControlin interface- IDesignTool
- Overrides:
- newSelectionControlin class- SelectionTool
 
 - 
onDragStartpublic void onDragStart(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)Description copied from class:SelectionToolStarting a drag gesture. Many different permutations of current state and key_down masks affect what the drag gesture means: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.- Specified by:
- onDragStartin interface- IDesignTool
- Overrides:
- onDragStartin class- SelectionTool
 
 - 
onDragpublic void onDrag(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)Description copied from class:AbstractDesignToolCalled while the user is dragging. All coordinates are relative to the interaction panel and are in zoomed space.- Specified by:
- onDragin interface- IDesignTool
- Overrides:
- onDragin class- SelectionTool
 
 - 
onDragEndpublic void onDragEnd(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)Description copied from class:AbstractDesignToolCalled when the user stops dragging. All coordinates are relative to the interaction panel and are in zoomed space.- Specified by:
- onDragEndin interface- IDesignTool
- Overrides:
- onDragEndin class- SelectionTool
 
 - 
onPresspublic void onPress(java.awt.Point p, int modifiers)Description copied from interface:IDesignToolCalled when the user presses the mouse in the design space.- Specified by:
- onPressin interface- IDesignTool
- Overrides:
- onPressin class- AbstractDesignTool
- Parameters:
- p- The point at which they pressed. Relative to the designable container.
- modifiers- A bitmask of modifiers. Comes from- InputEvent.getModifiersEx()
 
 - 
onMovepublic void onMove(java.awt.Point move, int modifiers)- Specified by:
- onMovein interface- IDesignTool
- Overrides:
- onMovein class- AbstractDesignTool
 
 
- 
 
-