Class marimba.gui.AnimatedWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.AnimatedWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.AnimatedWidget

public class AnimatedWidget
extends Widget
implements TimerClient
A basic animated widget.
Version:
1.12, 12/19/96
Author:
Arthur van Hoff

Variable Index

 o fps
The frames per second that are displayed.
 o frame
The current frame of the animation that is displayed.

Constructor Index

 o AnimatedWidget()

Method Index

 o advance()
Advance the animation.
 o disable(boolean)
When disabling also stop the animation, otherwise start the animation again.
 o getFps()
Get the frames per second.
 o getFrame()
Get the current frame.
 o getIntegerValue()
Get the Frames per second.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getValue()
Get the Frames per second.
 o handleEvent(Event)
Handle mouse events.
 o paramString(StringBuffer)
Debugging
 o setFps(int)
Set the Frames Per Second.
 o setFPS(int)
Another method for setting Frames Per Second, 'fps' in capitals.
 o setFrame(int)
Set the current frame.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setValue(int)
Set the current frame.
 o setValue(Object)
Set the current frame.
 o start()
Start the animation.
 o stop()
Stop the animation.
 o tick(long, Object)
Advance the animation.

Variables

 o fps
  public int fps
The frames per second that are displayed.
See Also:
getFps, getValue, getIntegerValue, setFps
 o frame
  public int frame
The current frame of the animation that is displayed.
See Also:
getFrame, setFrame, setValue

Constructors

 o AnimatedWidget
  public AnimatedWidget()

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class Widget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class Widget
 o getIntegerValue
  public int getIntegerValue()
Get the Frames per second.
See Also:
fps
 o getValue
  public Object getValue()
Get the Frames per second.
Overrides:
getValue in class Widget
See Also:
fps
 o setValue
  public void setValue(Object value)
Set the current frame.
Overrides:
setValue in class Widget
See Also:
frame
 o setValue
  public void setValue(int frame)
Set the current frame.
See Also:
frame
 o getFps
  public int getFps()
Get the frames per second.
See Also:
fps, getIntegerValue
 o setFps
  public void setFps(int fps)
Set the Frames Per Second.
See Also:
fps, setFPS
 o setFPS
  public void setFPS(int fps)
Another method for setting Frames Per Second, 'fps' in capitals.
See Also:
setFps
 o disable
  public void disable(boolean disabled)
When disabling also stop the animation, otherwise start the animation again.
Overrides:
disable in class Widget
 o getFrame
  public int getFrame()
Get the current frame.
See Also:
frame
 o setFrame
  public void setFrame(int frame)
Set the current frame.
See Also:
frame, setValue
 o start
  public void start()
Start the animation.
Overrides:
start in class Widget
See Also:
stop, advance
 o stop
  public void stop()
Stop the animation.
Overrides:
stop in class Widget
See Also:
start, advance
 o advance
  public void advance()
Advance the animation.
See Also:
start, stop
 o tick
  public long tick(long tm,
                   Object arg)
Advance the animation.
Overrides:
tick in class Widget
 o handleEvent
  public boolean handleEvent(Event evt)
Handle mouse events.
Overrides:
handleEvent in class Widget
 o paramString
  public void paramString(StringBuffer buf)
Debugging
Overrides:
paramString in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index