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 protected
AbstractAlignmentAction(java.lang.String resourceBase, java.lang.String icon)
protected
AbstractAlignmentAction(java.lang.String resourceBase, javax.swing.Icon icon)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected abstract void
align(DesignableDelegate delegate, java.util.List<javax.swing.JComponent> items)
boolean
evaluateEnabled(DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selected)
protected boolean
isMultiAlignment()
Return true if this action requires 2 or more components to be meaningfulprotected boolean
isSiblingsOnly()
-
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:
actionPerformed
in 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()
-
-