|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
org.topcased.modeler.commands.ChangeBoundsCommand
public class ChangeBoundsCommand
Changing bounds of a object
creation : 30 nov. 2004
Constructor Summary | |
---|---|
ChangeBoundsCommand(GraphNode node,
PortConstraint constraint)
Constructor |
|
ChangeBoundsCommand(GraphNode node,
PortConstraint constraint,
boolean childAttach)
Constructor |
|
ChangeBoundsCommand(GraphNode node,
org.eclipse.draw2d.geometry.Rectangle constraint)
Constructor |
|
ChangeBoundsCommand(GraphNode node,
org.eclipse.draw2d.geometry.Rectangle constraint,
boolean childAttach)
Constructor |
Method Summary | |
---|---|
boolean |
canExecute()
|
void |
execute()
|
void |
redo()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
---|
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 ChangeBoundsCommand(GraphNode node, org.eclipse.draw2d.geometry.Rectangle constraint)
node
- the node to resizeconstraint
- the new rectangle that contain the figurepublic ChangeBoundsCommand(GraphNode node, PortConstraint constraint)
node
- the node to resizeconstraint
- the new rectangle that contain the figurepublic ChangeBoundsCommand(GraphNode node, PortConstraint constraint, boolean childAttach)
node
- the node to resizeconstraint
- the new rectangle that contain the figurechildAttach
- true if the children of the node should have the same
attachementpublic ChangeBoundsCommand(GraphNode node, org.eclipse.draw2d.geometry.Rectangle constraint, boolean childAttach)
node
- the node to resizeconstraint
- the new rectangle that contain the figurechildAttach
- true if the children of the node should have the same
attachementMethod Detail |
---|
public boolean canExecute()
canExecute
in class org.eclipse.gef.commands.Command
Command.canExecute()
public void execute()
execute
in class org.eclipse.gef.commands.Command
Command.execute()
public void redo()
redo
in class org.eclipse.gef.commands.Command
Command.redo()
public void undo()
undo
in class org.eclipse.gef.commands.Command
Command.undo()
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.