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
-
fps
- The frames per second that are displayed.
-
frame
- The current frame of the animation that is displayed.
-
AnimatedWidget()
-
-
advance()
- Advance the animation.
-
disable(boolean)
- When disabling also stop the animation,
otherwise start the animation again.
-
getFps()
- Get the frames per second.
-
getFrame()
- Get the current frame.
-
getIntegerValue()
- Get the Frames per second.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getValue()
- Get the Frames per second.
-
handleEvent(Event)
- Handle mouse events.
-
paramString(StringBuffer)
- Debugging
-
setFps(int)
- Set the Frames Per Second.
-
setFPS(int)
- Another method for setting Frames Per Second,
'fps' in capitals.
-
setFrame(int)
- Set the current frame.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setValue(int)
- Set the current frame.
-
setValue(Object)
- Set the current frame.
-
start()
- Start the animation.
-
stop()
- Stop the animation.
-
tick(long, Object)
- Advance the animation.
fps
public int fps
- The frames per second that are displayed.
- See Also:
- getFps, getValue, getIntegerValue, setFps
frame
public int frame
- The current frame of the animation that is displayed.
- See Also:
- getFrame, setFrame, setValue
AnimatedWidget
public AnimatedWidget()
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class Widget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class Widget
getIntegerValue
public int getIntegerValue()
- Get the Frames per second.
- See Also:
- fps
getValue
public Object getValue()
- Get the Frames per second.
- Overrides:
- getValue in class Widget
- See Also:
- fps
setValue
public void setValue(Object value)
- Set the current frame.
- Overrides:
- setValue in class Widget
- See Also:
- frame
setValue
public void setValue(int frame)
- Set the current frame.
- See Also:
- frame
getFps
public int getFps()
- Get the frames per second.
- See Also:
- fps, getIntegerValue
setFps
public void setFps(int fps)
- Set the Frames Per Second.
- See Also:
- fps, setFPS
setFPS
public void setFPS(int fps)
- Another method for setting Frames Per Second,
'fps' in capitals.
- See Also:
- setFps
disable
public void disable(boolean disabled)
- When disabling also stop the animation,
otherwise start the animation again.
- Overrides:
- disable in class Widget
getFrame
public int getFrame()
- Get the current frame.
- See Also:
- frame
setFrame
public void setFrame(int frame)
- Set the current frame.
- See Also:
- frame, setValue
start
public void start()
- Start the animation.
- Overrides:
- start in class Widget
- See Also:
- stop, advance
stop
public void stop()
- Stop the animation.
- Overrides:
- stop in class Widget
- See Also:
- start, advance
advance
public void advance()
- Advance the animation.
- See Also:
- start, stop
tick
public long tick(long tm,
Object arg)
- Advance the animation.
- Overrides:
- tick in class Widget
handleEvent
public boolean handleEvent(Event evt)
- Handle mouse events.
- Overrides:
- handleEvent in class Widget
paramString
public void paramString(StringBuffer buf)
- Debugging
- Overrides:
- paramString in class Widget
All Packages Class Hierarchy This Package Previous Next Index