Class AbstractLayoutTool.AbstractNudgeAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.inductiveautomation.ignition.designer.designable.tools.AbstractLayoutTool.AbstractNudgeAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Direct Known Subclasses:
AbstractLayoutTool.MoveNudgeAction
,AbstractLayoutTool.ScaleNudgeAction
- Enclosing class:
- AbstractLayoutTool
protected abstract class AbstractLayoutTool.AbstractNudgeAction extends javax.swing.AbstractAction
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNudgeAction(java.lang.String name, boolean superAction)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent ae)
protected DesignableDelegate
delegate()
protected abstract void
nudge(java.util.List<javax.swing.JComponent> items, int dist)
protected double
snap(double d)
Specialized version of snap, preserves fractional info (unless the snap actually did something, of course)protected int
snap(int i)
Snaps to the grid-
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 ae)
-
delegate
protected DesignableDelegate delegate()
-
snap
protected int snap(int i)
Snaps to the grid
-
snap
protected double snap(double d)
Specialized version of snap, preserves fractional info (unless the snap actually did something, of course)
-
nudge
protected abstract void nudge(java.util.List<javax.swing.JComponent> items, int dist)
-
-