public abstract class AlignAction extends AbstractSelectedAction
| Modifier and Type | Class and Description |
|---|---|
static class |
AlignAction.East |
static class |
AlignAction.Horizontal |
static class |
AlignAction.North |
static class |
AlignAction.South |
static class |
AlignAction.Vertical |
static class |
AlignAction.West |
| Modifier and Type | Field and Description |
|---|---|
protected ResourceBundleUtil |
labels |
| Constructor and Description |
|---|
AlignAction(DrawingEditor editor)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected abstract void |
alignFigures(java.util.Collection selectedFigures,
java.awt.geom.Rectangle2D.Double selectionBounds) |
protected java.awt.geom.Rectangle2D.Double |
getSelectionBounds()
Returns the bounds of the selected figures.
|
void |
updateEnabledState()
Updates the enabled state of this action to reflect the enabled state
of the active
DrawingView. |
dispose, fireUndoableEditHappened, getDrawing, getEditor, getView, isUpdatEnabledState, setEditor, setUpdateEnabledStateprotected ResourceBundleUtil labels
public AlignAction(DrawingEditor editor)
public void updateEnabledState()
AbstractSelectedActionDrawingView. If no drawing view is active, this
action is disabled.updateEnabledState in class AbstractSelectedActionpublic void actionPerformed(java.awt.event.ActionEvent e)
protected abstract void alignFigures(java.util.Collection selectedFigures,
java.awt.geom.Rectangle2D.Double selectionBounds)
protected java.awt.geom.Rectangle2D.Double getSelectionBounds()