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 Pose
s. Being a Command means that it can be undone and redone.
An extra challenge is that some Pose
are children of other Pose
s, 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 Pose
s.
- See Also:
-
Constructor Summary
ConstructorDescriptionRotatePoseCommand
(List<Pose> subjects, javax.vecmath.Vector3d v) Create a new command to rotate a list ofPose
s. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addEdit
(UndoableEdit anEdit) This default implementation returns false.boolean
canRedo()
void
redo()
void
undo()
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
Method Details
-
getPresentationName
- Specified by:
getPresentationName
in interfaceUndoableEdit
- Overrides:
getPresentationName
in classAbstractUndoableEdit
-
redo
public void redo()- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
-
undo
public void undo()- Specified by:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
-
addEdit
This default implementation returns false.- Specified by:
addEdit
in interfaceUndoableEdit
- Overrides:
addEdit
in classAbstractUndoableEdit
- Parameters:
anEdit
- the edit to be added- Returns:
- false
- See Also:
-
canRedo
public boolean canRedo()- Specified by:
canRedo
in interfaceUndoableEdit
- Overrides:
canRedo
in classAbstractUndoableEdit
-