All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.multimedia.NervousText
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----symantec.itools.multimedia.NervousText
- public class NervousText
- extends Canvas
- implements Runnable
NervousText control.
Creates animated text in which each letter moves independently of all other letters.
-
NervousText()
- Create defalut NervousText object.
-
addNotify()
- Tells this component that it has been added to a container.
-
getText()
- Obtain the text that is currently being displayed.
-
hide()
- Makes this component invisible.
-
isPaused()
- Obtain animator's current state.
-
paint(Graphics)
- Paints this component using the given graphics context.
-
pause(boolean)
- Temporarily suspend the animation of the nervous text.
-
removeNotify()
- Tells this component that it is being removed from a container.
-
run()
- NervousText thread body.
-
setPaused(boolean)
- Temporarily suspend the animation of the nervous text.
-
setText(String)
- Specify the text that will be displayed by NervousText.
-
show()
- Makes this component visible.
NervousText
public NervousText()
- Create defalut NervousText object. Default object contains the word "text".
addNotify
public void addNotify()
- Tells this component that it has been added to a container.
This is a standard Java AWT method which gets called by the AWT when
this component is added to a container. Typically, it is used to
create this component's peer.
It has been overridden here to start the nervous text thread.
- Overrides:
- addNotify in class Canvas
- See Also:
- removeNotify
removeNotify
public synchronized void removeNotify()
- Tells this component that it is being removed from a container.
This is a standard Java AWT method which gets called by the AWT when
this component is removed from a container. Typically, it is used to
destroy the peers of this component and all its subcomponents.
It has been overridden here to stop the nervous text thread.
- Overrides:
- removeNotify in class Component
- See Also:
- addNotify
show
public synchronized void show()
- Makes this component visible.
This is a standard Java AWT method which gets called to show this
component. If this component was invisible due to a previous hide()
call it make this component visible again.
- Overrides:
- show in class Component
- See Also:
- hide
hide
public synchronized void hide()
- Makes this component invisible.
This is a standard Java AWT method which gets called to hide
this component. A hidden component cannot be seen by the user nor
does it take up space in its container, but it does continue to
exist.
- Overrides:
- hide in class Component
- See Also:
- show
setText
public void setText(String str)
- Specify the text that will be displayed by NervousText.
- Parameters:
- str - text to be shown as nervous text
getText
public String getText()
- Obtain the text that is currently being displayed.
- Returns:
- text that is being shown by this component
run
public void run()
- NervousText thread body. This method is called by the Java virtual
machine to when this thread starts.
pause
public void pause(boolean f)
- Temporarily suspend the animation of the nervous text.
- Parameters:
- f - pause the animation of true
isPaused
public boolean isPaused()
- Obtain animator's current state.
- Returns:
- true if the animator is paused, false if it is running
setPaused
public void setPaused(boolean f)
- Temporarily suspend the animation of the nervous text. Identical
to pause(boolean).
- Parameters:
- f - pause the animation of true
paint
public void paint(Graphics g)
- Paints this component using the given graphics context.
This is a standard Java AWT method which typically gets called
by the AWT to handle painting this component. It paints this component
using the given graphics context. The graphics context clipping region
is set to the bounding rectangle of this component and its <0,0>
coordinate is this component's top-left corner.
- Parameters:
- g - the graphics context used for painting
- Overrides:
- paint in class Canvas
- See Also:
- repaint, update
All Packages Class Hierarchy This Package Previous Next Index