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
-
dx
- The number of pixels to be skipped in the x-direction.
-
dy
- The number of pixels to be skipped in the y-direction.
-
nextText
- The text that is being displayed when 'text' is ready animating.
-
strx
- The current x-position of the text being displayed.
-
stry
- The current y-position of the text being displayed.
-
text
- The text that is being animated.
-
AnimatedTextWidget()
- Constructor.
-
advance()
- Advance the animation,
when this AnimatedTextWidget is not disabled.
-
getDx()
- Get the number of pixels to be skipped in the x-direction.
-
getDy()
- Get the number of pixels to be skipped in the y-direction.
-
getNextText()
- Get the text that will be displayed when the current
message is scrolled off the screen.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getText()
- Get the value of the text.
-
paint(Graphics)
- Paint the message.
-
setDirection(int, int)
- Set the direction.
-
setDx(int)
- Set the number of pixels to be skipped in the x-direction.
-
setDy(int)
- Set the number of pixels to be skipped in the y-direction.
-
setNextText(String)
- Set the next text.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setText(String)
- Set the text.
text
public String text
- The text that is being animated.
- See Also:
- getText, setText
nextText
public String nextText
- The text that is being displayed when 'text' is ready animating.
- See Also:
- getNextText, setNextText
strx
public float strx
- The current x-position of the text being displayed.
stry
public float stry
- The current y-position of the text being displayed.
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
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
AnimatedTextWidget
public AnimatedTextWidget()
- Constructor.
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class AnimatedWidget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class AnimatedWidget
getText
public String getText()
- Get the value of the text.
- Overrides:
- getText in class Widget
- See Also:
- text
setText
public void setText(String text)
- Set the text. The text will change immediately.
- Overrides:
- setText in class Widget
- See Also:
- text
getNextText
public String getNextText()
- Get the text that will be displayed when the current
message is scrolled off the screen.
- See Also:
- nextText
getDx
public int getDx()
- Get the number of pixels to be skipped in the x-direction.
- See Also:
- dx
setDx
public void setDx(int dx)
- Set the number of pixels to be skipped in the x-direction.
- See Also:
- dx
getDy
public int getDy()
- Get the number of pixels to be skipped in the y-direction.
- See Also:
- dy
setDy
public void setDy(int dy)
- Set the number of pixels to be skipped in the y-direction.
- See Also:
- dy
setDirection
public void setDirection(int dx,
int dy)
- Set the direction.
- See Also:
- dx, dy
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
advance
public void advance()
- Advance the animation,
when this AnimatedTextWidget is not disabled.
- Overrides:
- advance in class AnimatedWidget
paint
public synchronized void paint(Graphics g)
- Paint the message.
- Overrides:
- paint in class Widget
All Packages Class Hierarchy This Package Previous Next Index