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 Summary
Nested 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.IDesignTool
IDesignTool.ToolbarInitializer -
Field Summary
FieldsModifier 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.AbstractDesignTool
actionMap, changeSupport, designable, HANDLES_PROPERTY, inputMap, interactionLayer, panel, workspace -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractDesignTool
addAction, 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
-
AbstractLayoutTool
protected AbstractLayoutTool()
-
-
Method Details
-
install
Description 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 interfaceIDesignTool- Overrides:
installin classAbstractDesignTool
-
evaluateEnabled
-
removeDescendents
Removes items in the list whose ancestors are also in the list. -
componentsAreSiblings
Checks to see if all of the components are siblings (have the same .getParent()) and that there is at least 1 component in the list -
convertBoundsToParent
public 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.
-