Class AbstractLayoutTool
java.lang.Object
com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTool
com.inductiveautomation.ignition.designer.designable.tools.AbstractLayoutTool
- All Implemented Interfaces:
- IDesignTool
- Direct Known Subclasses:
- SelectionTool
This tool defines and installs a number of visual layout related actions. Things like nudging, z-order positioning,
 and alignment are implemented here.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classprotected classprotected classprotected classprotected classprotected classprotected classprotected classstatic classNested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.designable.IDesignToolIDesignTool.ToolbarInitializer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignToolactionMap, changeSupport, designable, HANDLES_PROPERTY, inputMap, interactionLayer, panel, workspace
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleancomponentsAreSiblings(DesignableDelegate delegate, List<JComponent> items) Checks to see if all of the components are siblings (have the same .getParent()) and that there is at least 1 component in the liststatic Map<JComponent,Rectangle2D> convertBoundsToParent(Map<JComponent, Rectangle2D> originalBounds, JComponent interactionLayer, DesignableDelegate delegate) Converts the rectangles so that their bounds are relative to each object's parent.protected voidevaluateEnabled(List<JComponent> newSelection) voidinstall(DesignPanel panel) Installs the tool for the given panel.static voidremoveDescendents(DesignableDelegate delegate, List<JComponent> items) Removes items in the list whose ancestors are also in the list.Methods inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTooladdAction, addKeyBinding, addKeyBinding, addPropertyChangeListener, createCursor, findDropContainer, getAction, getCursor, getDragHighlight, getOffsettingBounds, getOriginalBounds, getStatusBarText, getToolbarInitializer, isInstalled, isRelevantFor, itemMovable, movable, newSelectionControl, newToolbarSpinner, newToolbarSpinner, newToolbarSpinner, onClick, onClickAlterSelection, onDoubleClick, onDrag, onDragEnd, onDragStart, onKeyEvent, onMove, onPopupTrigger, onPress, onRelease, onRightClickSwitchToSelectionTool, removePropertyChangeListener, uninstall
- 
Field Details- 
MOVE_FORWARD- See Also:
 
- 
MOVE_BACKWARD- See Also:
 
- 
MOVE_TO_FRONT- See Also:
 
- 
MOVE_TO_BACK- See Also:
 
- 
ROTATE_RIGHT- See Also:
 
- 
ROTATE_LEFT- See Also:
 
- 
ALIGN_TOP- See Also:
 
- 
ALIGN_LEFT- See Also:
 
- 
ALIGN_BOTTOM- See Also:
 
- 
ALIGN_RIGHT- See Also:
 
- 
ALIGN_CENTERSH- See Also:
 
- 
ALIGN_CENTERSV- See Also:
 
- 
ALIGN_CENTER_VERTICAL- See Also:
 
- 
ALIGN_CENTER_HORIZONTAL- See Also:
 
- 
ALIGN_AS_ROW- See Also:
 
- 
ALIGN_AS_ROW_NORMALIZE- See Also:
 
- 
ALIGN_AS_STACK- See Also:
 
- 
ALIGN_AS_STACK_NORMALIZE- See Also:
 
 
- 
- 
Constructor Details- 
AbstractLayoutToolprotected AbstractLayoutTool()
 
- 
- 
Method Details- 
installDescription copied from interface:IDesignToolInstalls the tool for the given panel. Tools are built to be re-used by repeatedly being installed and then uninstalled as tools get switched out.- Specified by:
- installin interface- IDesignTool
- Overrides:
- installin class- AbstractDesignTool
 
- 
evaluateEnabled
- 
removeDescendentsRemoves items in the list whose ancestors are also in the list.
- 
componentsAreSiblingsChecks to see if all of the components are siblings (have the same .getParent()) and that there is at least 1 component in the list
- 
convertBoundsToParentpublic static Map<JComponent,Rectangle2D> convertBoundsToParent(Map<JComponent, Rectangle2D> originalBounds, JComponent interactionLayer, DesignableDelegate delegate) Converts the rectangles so that their bounds are relative to each object's parent. It is assumed that the rectangles are currently relative to the interaction layer.
 
-