Class tred.MatrixPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tred.MatrixPanel

java.lang.Object
   |
   +----tred.EditorObject
           |
           +----tred.Element
                   |
                   +----tred.MatrixPanel

public class MatrixPanel
extends Element
implementation to Matrix.

Variable Index

 o pop

Method Index

 o getState(String)
This method is invoked in order to get the state of Matrix for export.
 o move(EditorObject, int, int)
This is the special move method for Matrix and is invoked by AnimImpl in order to handle all the movements one Matrix movement needs to do.
 o move(int, int)
This method is implemented to be subclassed.
 o paint(Graphics)
This method is invoked when this panel is draw into the screen.

Variables

 o pop
  protected Button pop

Methods

 o move
  public void move(EditorObject object,
                   int x,
                   int y)
This is the special move method for Matrix and is invoked by AnimImpl in order to handle all the movements one Matrix movement needs to do. There could be several move operations (many items could be moved) in one Matrix move operation. The pop-method marks the beginning and end of the pop operation and when a backward/forward button in pressed we have to make all the move operations between those states as a one move operation. To make this method compatible with all the other move methods, the animImpl class delivers also parameters which are ignored.
Parameters:
object - move backward if object is null, move forward if not. (this is the way pop-method marks the beginning/end)
x - not needed
y - not needed
Overrides:
move in class EditorObject
 o getState
  protected String getState(String str)
This method is invoked in order to get the state of Matrix for export.
Parameters:
str - is the substitute string for empty slot.
Returns:
the current state (string of items in the slots) of this Matrix.
Overrides:
getState in class EditorObject
See Also:
export
 o move
  public void move(int newx,
                   int newy)
This method is implemented to be subclassed.
Overrides:
move in class Element
 o paint
  public boolean paint(Graphics g)
This method is invoked when this panel is draw into the screen.
Overrides:
paint in class Element

All Packages  Class Hierarchy  This Package  Previous  Next  Index