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

Class marimba.gui.AnimatedTextWidget

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

public class AnimatedTextWidget
extends AnimatedWidget
Scrolling text widget.
Version:
1.16, 11/15/96
Author:
Arthur van Hoff

Variable Index

 o dx
The number of pixels to be skipped in the x-direction.
 o dy
The number of pixels to be skipped in the y-direction.
 o nextText
The text that is being displayed when 'text' is ready animating.
 o strx
The current x-position of the text being displayed.
 o stry
The current y-position of the text being displayed.
 o text
The text that is being animated.

Constructor Index

 o AnimatedTextWidget()
Constructor.

Method Index

 o advance()
Advance the animation, when this AnimatedTextWidget is not disabled.
 o getDx()
Get the number of pixels to be skipped in the x-direction.
 o getDy()
Get the number of pixels to be skipped in the y-direction.
 o getNextText()
Get the text that will be displayed when the current message is scrolled off the screen.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getText()
Get the value of the text.
 o paint(Graphics)
Paint the message.
 o setDirection(int, int)
Set the direction.
 o setDx(int)
Set the number of pixels to be skipped in the x-direction.
 o setDy(int)
Set the number of pixels to be skipped in the y-direction.
 o setNextText(String)
Set the next text.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setText(String)
Set the text.

Variables

 o text
  public String text
The text that is being animated.
See Also:
getText, setText
 o nextText
  public String nextText
The text that is being displayed when 'text' is ready animating.
See Also:
getNextText, setNextText
 o strx
  public float strx
The current x-position of the text being displayed.
 o stry
  public float stry
The current y-position of the text being displayed.
 o dx
  public int dx
The number of pixels to be skipped in the x-direction. This also determines the direction of the animation.
See Also:
getDx, setDx, setDirection
 o dy
  public int dy
The number of pixels to be skipped in the y-direction. This also determines the direction of the animation.
See Also:
getDy, setDy, setDirection

Constructors

 o AnimatedTextWidget
  public AnimatedTextWidget()
Constructor.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class AnimatedWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class AnimatedWidget
 o getText
  public String getText()
Get the value of the text.
Overrides:
getText in class Widget
See Also:
text
 o setText
  public void setText(String text)
Set the text. The text will change immediately.
Overrides:
setText in class Widget
See Also:
text
 o getNextText
  public String getNextText()
Get the text that will be displayed when the current message is scrolled off the screen.
See Also:
nextText
 o getDx
  public int getDx()
Get the number of pixels to be skipped in the x-direction.
See Also:
dx
 o setDx
  public void setDx(int dx)
Set the number of pixels to be skipped in the x-direction.
See Also:
dx
 o getDy
  public int getDy()
Get the number of pixels to be skipped in the y-direction.
See Also:
dy
 o setDy
  public void setDy(int dy)
Set the number of pixels to be skipped in the y-direction.
See Also:
dy
 o setDirection
  public void setDirection(int dx,
                           int dy)
Set the direction.
See Also:
dx, dy
 o setNextText
  public void setNextText(String text)
Set the next text. The text won't be displayed immediately, it will be displayed as soon as the current message is scrolled off screen.
See Also:
nextText
 o advance
  public void advance()
Advance the animation, when this AnimatedTextWidget is not disabled.
Overrides:
advance in class AnimatedWidget
 o paint
  public synchronized void paint(Graphics g)
Paint the message.
Overrides:
paint in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index