Module com.marginallyclever.ro3
Class RotatePoseCommand
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
com.marginallyclever.ro3.apps.viewport.viewporttool.move.RotatePoseCommand
- All Implemented Interfaces:
Serializable,UndoableEdit
A Command to rotate a list of Poses. Being a Command means that it can be undone and redone.
An extra challenge is that some Pose are children of other Poses, so the rotation
of a parent is automatically applied to the children.
An extra challenge is the collective point of rotation for a group of Poses.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRotatePoseCommand(List<Pose> subjects, javax.vecmath.Vector3d v) Create a new command to rotate a list ofPoses. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEdit(UndoableEdit anEdit) This default implementation returns false.booleancanRedo()voidredo()voidundo()Methods inherited from class javax.swing.undo.AbstractUndoableEdit
canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
RotatePoseCommand
-
-
Method Details
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
redo
public void redo()- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit
-
undo
public void undo()- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit
-
addEdit
This default implementation returns false.- Specified by:
addEditin interfaceUndoableEdit- Overrides:
addEditin classAbstractUndoableEdit- Parameters:
anEdit- the edit to be added- Returns:
- false
- See Also:
-
canRedo
public boolean canRedo()- Specified by:
canRedoin interfaceUndoableEdit- Overrides:
canRedoin classAbstractUndoableEdit
-