|
JHotDraw 6.0b1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jhotdraw.standard.AbstractCommand org.jhotdraw.standard.AlignCommand
public class AlignCommand
Align a selection of figures relative to each other.
Nested Class Summary | |
---|---|
static class |
AlignCommand.Alignment
|
static class |
AlignCommand.UndoActivity
|
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractCommand |
---|
AbstractCommand.EventDispatcher |
Constructor Summary | |
---|---|
AlignCommand(AlignCommand.Alignment newAlignment,
DrawingEditor newDrawingEditor)
Constructs an alignment command. |
Method Summary | |
---|---|
protected Undoable |
createUndoActivity()
Factory method for undo activity |
void |
execute()
Executes the command. |
AlignCommand.Alignment |
getAlignment()
|
protected boolean |
isExecutableWithView()
|
protected void |
setAlignment(AlignCommand.Alignment newAlignment)
|
Methods inherited from class org.jhotdraw.standard.AbstractCommand |
---|
addCommandListener, createEventDispatcher, createViewChangeListener, dispose, figureSelectionChanged, getDrawingEditor, getEventDispatcher, getUndoActivity, isExecutable, isViewRequired, name, removeCommandListener, setName, setUndoActivity, view, viewCreated, viewDestroying, viewSelectionChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlignCommand(AlignCommand.Alignment newAlignment, DrawingEditor newDrawingEditor)
newAlignment
- the alignment operation (LEFTS, CENTERS, RIGHTS, etc.)newDrawingEditor
- the DrawingEditor which manages the viewsMethod Detail |
---|
protected boolean isExecutableWithView()
isExecutableWithView
in class AbstractCommand
public void execute()
AbstractCommand
execute
in interface Command
execute
in class AbstractCommand
protected void setAlignment(AlignCommand.Alignment newAlignment)
public AlignCommand.Alignment getAlignment()
protected Undoable createUndoActivity()
|
JHotDraw 6.0b1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |