Class tred.AnimatedImpl
All Packages Class Hierarchy This Package Previous Next Index
Class tred.AnimatedImpl
java.lang.Object
|
+----tred.AnimatedImpl
- public class AnimatedImpl
- extends Object
- implements Animated
Animated implementation to replay Item moves.
-
addPanel(EditorObject)
-
-
export(EditorObject, MyPrintStream)
- This method is invoked when an object panel is exported.
-
moveBackward()
-
-
moveBegin()
-
-
moveEnd()
-
-
moveForward()
-
-
moveObject(EditorObject, EditorObject, EditorObject)
- This method keeps record of movements on the screen.
-
reset()
-
-
touchAll()
-
reset
public void reset()
moveObject
public void moveObject(EditorObject obj,
EditorObject fromObj,
EditorObject toObj)
- This method keeps record of movements on the screen. It invokes the
method move of object obj and determines if the movement was legal. If
the move request was accepted and there was object toObj (!=null) the
movement was recorded so that it could be replayed. If there is no object
toObj the movement is not recorded but the object might have changed it's
location.
moveBackward
public void moveBackward()
moveForward
public void moveForward()
moveEnd
public void moveEnd()
moveBegin
public void moveBegin()
touchAll
public void touchAll()
export
public void export(EditorObject panel,
MyPrintStream printStream)
- This method is invoked when an object panel is exported. Method
searches the panel's before list and determines which states are
exported or exports all states if there is no special states
defined.
- Parameters:
- panel - is the EditorPanel to be exported.
- MyPrintStream - is the stream where output is printed.
addPanel
public void addPanel(EditorObject panel)
All Packages Class Hierarchy This Package Previous Next Index