Class AbstractLayoutTool.AbstractAlignmentAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.inductiveautomation.ignition.client.util.action.BaseAction
-
- com.inductiveautomation.ignition.designer.designable.tools.AbstractLayoutTool.AbstractAlignmentAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
- Direct Known Subclasses:
AbstractLayoutTool.AlignEdge,AbstractLayoutTool.CenterAction,AbstractLayoutTool.RowStackAction
- Enclosing class:
- AbstractLayoutTool
protected abstract class AbstractLayoutTool.AbstractAlignmentAction extends BaseAction
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAlignmentAction(java.lang.String resourceBase, java.lang.String icon)protectedAbstractAlignmentAction(java.lang.String resourceBase, javax.swing.Icon icon)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)protected abstract voidalign(DesignableDelegate delegate, java.util.List<javax.swing.JComponent> items)booleanevaluateEnabled(DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selected)protected booleanisMultiAlignment()Return true if this action requires 2 or more components to be meaningfulprotected booleanisSiblingsOnly()-
Methods inherited from class com.inductiveautomation.ignition.client.util.action.BaseAction
create, createButton, createButton, evaluateEnabled, listenTo, listenTo, setBundleKey, setIcon, updateEnabled
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
align
protected abstract void align(DesignableDelegate delegate, java.util.List<javax.swing.JComponent> items)
-
evaluateEnabled
public boolean evaluateEnabled(DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selected)
-
isMultiAlignment
protected boolean isMultiAlignment()
Return true if this action requires 2 or more components to be meaningful
-
isSiblingsOnly
protected boolean isSiblingsOnly()
-
-