Package com.j3d.engine.react.actions
Class AbstractAction
java.lang.Object
com.j3d.engine.react.actions.AbstractAction
- All Implemented Interfaces:
Action<Void>,VoidAction
- Direct Known Subclasses:
ConstructorAction
AbstractAction is an abstract class that implements the Action interface with default behaviors.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
now
-
-
Constructor Details
-
AbstractAction
public AbstractAction()
-
-
Method Details
-
run
Description copied from interface:ActionExecutes the action. -
undo
public void undo()Description copied from interface:ActionUndoes the action. -
isReversible
public boolean isReversible()Description copied from interface:ActionChecks if the action is reversible.- Specified by:
isReversiblein interfaceAction<Void>- Returns:
- true if the action can be undone, false otherwise.
-
getDescription
Description copied from interface:ActionProvides a description of the action. This description is printed to both the debug console and the history log (UI).- Specified by:
getDescriptionin interfaceAction<Void>- Returns:
- A string describing the action.
-
getTime
Description copied from interface:ActionReturns the time at which the action was performed.
-