|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
pl.edu.agh.cast.schema.editor.command.SetLayoutCommand
public class SetLayoutCommand
Command positioning given elements according to injected algorithm strategy.
While this command's execute()
method is run, IVisualSchemaNode
s' location property change events
are NOT fired. GUI has to be manually refreshed!
Constructor Summary | |
---|---|
SetLayoutCommand(ILayoutAlgorithm layout,
ISchemaDiagram diagram,
Collection<ISchemaNode> nodesToLayout,
String label)
Constructor. |
|
SetLayoutCommand(ILayoutAlgorithm layout,
ISchemaDiagram diagram,
String label)
Constructor which get contents edit part. |
Method Summary | |
---|---|
void |
execute()
|
void |
redo()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetLayoutCommand(ILayoutAlgorithm layout, ISchemaDiagram diagram, Collection<ISchemaNode> nodesToLayout, String label)
layout
- layout to performdiagram
- diagram which contains nodes to layoutnodesToLayout
- nodes to layoutlabel
- layout labelpublic SetLayoutCommand(ILayoutAlgorithm layout, ISchemaDiagram diagram, String label)
layout
- layout to performdiagram
- diagram to layoutlabel
- layout labelMethod Detail |
---|
public void execute()
execute
in class org.eclipse.gef.commands.Command
Command.execute()
public void undo()
undo
in class org.eclipse.gef.commands.Command
Command.undo()
public void redo()
redo
in class org.eclipse.gef.commands.Command
Command.redo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |