|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCommand
com.pnp.xfeature.commands.ChangeConstraintCommand
public class ChangeConstraintCommand
The Command class used to move/reposition/rescale a node of a feature model diagram
| Constructor Summary | |
|---|---|
ChangeConstraintCommand()
default constructor, calls the superclass constructor |
|
ChangeConstraintCommand(java.lang.String label)
default constructor, calls the superclass constructor |
|
| Method Summary | |
|---|---|
void |
execute()
sets the new position of the node via call of setConstraintOffset() method of FeatureNodeModel class |
boolean |
isAttachedParentSelected()
getter method for attachedParentSelected |
void |
redo()
sets the new position of the node via call of setConstraintOffset() method of FeatureNodeModel class |
void |
setAttachedParentSelected(boolean attachedParentSelected)
setter method for attachedParentSelected |
void |
setConstraint(Rectangle rect)
sets the contstraint value to the internal private variable |
void |
setModel(java.lang.Object model)
sets the model of the processed node to the internal private variable and gets the current value of constraints |
void |
undo()
sets the old position of the node via call of setConstraintOffset() method of FeatureNodeModel class |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeConstraintCommand()
public ChangeConstraintCommand(java.lang.String label)
label - new name of the feature| Method Detail |
|---|
public void setConstraint(Rectangle rect)
rect - public void setModel(java.lang.Object model)
model - public void execute()
org.eclipse.gef.commands.Command#execute()public void undo()
org.eclipse.gef.commands.Command#undo()public void redo()
org.eclipse.gef.commands.Command#redo()public boolean isAttachedParentSelected()
public void setAttachedParentSelected(boolean attachedParentSelected)
attachedParentSelected - specifies whether the selected node is atached to its parent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||