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
 
 public abstract class AbstractLayoutTool extends AbstractDesignTool 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 Classes Modifier and Type Class Description protected classAbstractLayoutTool.AbstractAlignmentActionprotected classAbstractLayoutTool.AbstractNudgeActionprotected classAbstractLayoutTool.AbstractZOrderActionprotected classAbstractLayoutTool.AlignEdgeprotected classAbstractLayoutTool.CenterActionprotected classAbstractLayoutTool.MoveNudgeActionprotected classAbstractLayoutTool.MoveToTopOrBottomActionprotected classAbstractLayoutTool.MoveUpOrDownActionprotected classAbstractLayoutTool.Rotate90Actionprotected classAbstractLayoutTool.RowStackActionprotected classAbstractLayoutTool.ScaleNudgeActionstatic classAbstractLayoutTool.ZOrderChangeUndoAction- 
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.designable.IDesignToolIDesignTool.ToolbarInitializer
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringALIGN_AS_ROWstatic java.lang.StringALIGN_AS_ROW_NORMALIZEstatic java.lang.StringALIGN_AS_STACKstatic java.lang.StringALIGN_AS_STACK_NORMALIZEstatic java.lang.StringALIGN_BOTTOMstatic java.lang.StringALIGN_CENTER_HORIZONTALstatic java.lang.StringALIGN_CENTER_VERTICALstatic java.lang.StringALIGN_CENTERSHstatic java.lang.StringALIGN_CENTERSVstatic java.lang.StringALIGN_LEFTstatic java.lang.StringALIGN_RIGHTstatic java.lang.StringALIGN_TOPstatic java.lang.StringMOVE_BACKWARDstatic java.lang.StringMOVE_FORWARDstatic java.lang.StringMOVE_TO_BACKstatic java.lang.StringMOVE_TO_FRONTstatic java.lang.StringROTATE_LEFTstatic java.lang.StringROTATE_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 protectedAbstractLayoutTool()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancomponentsAreSiblings(DesignableDelegate delegate, java.util.List<javax.swing.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 java.util.Map<javax.swing.JComponent,java.awt.geom.Rectangle2D>convertBoundsToParent(java.util.Map<javax.swing.JComponent,java.awt.geom.Rectangle2D> originalBounds, javax.swing.JComponent interactionLayer, DesignableDelegate delegate)Converts the rectangles so that their bounds are relative to each object's parent.protected voidevaluateEnabled(java.util.List<javax.swing.JComponent> newSelection)voidinstall(DesignPanel panel)Installs the tool for the given panel.static voidremoveDescendents(DesignableDelegate delegate, java.util.List<javax.swing.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 Detail- 
MOVE_FORWARDpublic static final java.lang.String MOVE_FORWARD - See Also:
- Constant Field Values
 
 - 
MOVE_BACKWARDpublic static final java.lang.String MOVE_BACKWARD - See Also:
- Constant Field Values
 
 - 
MOVE_TO_FRONTpublic static final java.lang.String MOVE_TO_FRONT - See Also:
- Constant Field Values
 
 - 
MOVE_TO_BACKpublic static final java.lang.String MOVE_TO_BACK - See Also:
- Constant Field Values
 
 - 
ROTATE_RIGHTpublic static final java.lang.String ROTATE_RIGHT - See Also:
- Constant Field Values
 
 - 
ROTATE_LEFTpublic static final java.lang.String ROTATE_LEFT - See Also:
- Constant Field Values
 
 - 
ALIGN_TOPpublic static final java.lang.String ALIGN_TOP - See Also:
- Constant Field Values
 
 - 
ALIGN_LEFTpublic static final java.lang.String ALIGN_LEFT - See Also:
- Constant Field Values
 
 - 
ALIGN_BOTTOMpublic static final java.lang.String ALIGN_BOTTOM - See Also:
- Constant Field Values
 
 - 
ALIGN_RIGHTpublic static final java.lang.String ALIGN_RIGHT - See Also:
- Constant Field Values
 
 - 
ALIGN_CENTERSHpublic static final java.lang.String ALIGN_CENTERSH - See Also:
- Constant Field Values
 
 - 
ALIGN_CENTERSVpublic static final java.lang.String ALIGN_CENTERSV - See Also:
- Constant Field Values
 
 - 
ALIGN_CENTER_VERTICALpublic static final java.lang.String ALIGN_CENTER_VERTICAL - See Also:
- Constant Field Values
 
 - 
ALIGN_CENTER_HORIZONTALpublic static final java.lang.String ALIGN_CENTER_HORIZONTAL - See Also:
- Constant Field Values
 
 - 
ALIGN_AS_ROWpublic static final java.lang.String ALIGN_AS_ROW - See Also:
- Constant Field Values
 
 - 
ALIGN_AS_ROW_NORMALIZEpublic static final java.lang.String ALIGN_AS_ROW_NORMALIZE - See Also:
- Constant Field Values
 
 - 
ALIGN_AS_STACKpublic static final java.lang.String ALIGN_AS_STACK - See Also:
- Constant Field Values
 
 - 
ALIGN_AS_STACK_NORMALIZEpublic static final java.lang.String ALIGN_AS_STACK_NORMALIZE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
installpublic void install(DesignPanel panel) 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 interface- IDesignTool
- Overrides:
- installin class- AbstractDesignTool
 
 - 
evaluateEnabledprotected void evaluateEnabled(java.util.List<javax.swing.JComponent> newSelection) 
 - 
removeDescendentspublic static void removeDescendents(DesignableDelegate delegate, java.util.List<javax.swing.JComponent> items) Removes items in the list whose ancestors are also in the list.
 - 
componentsAreSiblingspublic static boolean componentsAreSiblings(DesignableDelegate delegate, java.util.List<javax.swing.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 list
 - 
convertBoundsToParentpublic static java.util.Map<javax.swing.JComponent,java.awt.geom.Rectangle2D> convertBoundsToParent(java.util.Map<javax.swing.JComponent,java.awt.geom.Rectangle2D> originalBounds, javax.swing.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.
 
- 
 
-