All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.util.StatusScroller

java.lang.Object
   |
   +----symantec.itools.awt.util.StatusScroller

public class StatusScroller
extends Object
implements Runnable

Variable Index

 o context
 o delay
 o index
 o isRepeat
 o isRightToLeft
 o isScrollClean
 o sslength
 o statusString
 o thread
 o wblength
 o workingBuffer

Constructor Index

 o StatusScroller()
Default Constructor

Method Index

 o clear()
Clears the status area
 o getAutoStart()
Determines if the scrolling will automatically start when the applet is loaded.
 o getDelay()
The time between the display of each character in milliseconds
 o getRepeat()
One behavior of the scrolling If true the text will continue scrolling over and over; if false, the text will scroll off and back on, then stop.
 o getRightToLeft()
The direction the text will scroll.
 o getScrollClean()
One behavior of the scrolling.
 o getString()
The string currently being used for scrolling
 o makePadding(int)
Returns a String with howBig number of spaces as the content
 o run()
The main logic loop
 o scrollString()
Handles the manipulation of the string buffer to give the desired scrolling effect.
 o setAppletContext(Applet)
StatusScroller needs an AppletContext in order to set the status area This version takes an Applet object and gets the needed AppletContext from it.
 o setAppletContext(AppletContext)
StatusScroller needs an AppletContext in order to set the status area This version takes an AppletContext object directly.
 o setAutoStart(boolean)
Determines if the scrolling will automatically start when the applet is loaded.
 o setDelay(int)
Set the time between the display of each character in milliseconds.
 o setRepeat(boolean)
Controlls one behavior of the scrolling If true the text will continue scrolling over and over; if false, the text will scroll off and back on, then stop.
 o setRightToLeft(boolean)
Controlls the direction the text will scroll.
 o setScrollClean(boolean)
Controlls one behavior of the scrolling.
 o setString(String)
Sets the string to use for scrolling
 o start()
Start the status text scrolling
 o stop()
Stops the status text from scrolling
 o updateWorkingBuffer()
Updates the string buffer depending on the settings

Variables

 o isRightToLeft
  protected boolean isRightToLeft
 o isRepeat
  protected boolean isRepeat
 o isScrollClean
  protected boolean isScrollClean
 o context
  protected AppletContext context
 o thread
  protected Thread thread
 o delay
  protected int delay
 o wblength
  protected int wblength
 o sslength
  protected int sslength
 o index
  protected int index
 o statusString
  protected String statusString
 o workingBuffer
  protected StringBuffer workingBuffer

Constructors

 o StatusScroller
  public StatusScroller()
Default Constructor

Methods

 o start
  public void start()
Start the status text scrolling

See Also:
run
 o stop
  public void stop()
Stops the status text from scrolling

See Also:
start
 o clear
  public void clear()
Clears the status area

 o setString
  public void setString(String s)
Sets the string to use for scrolling

Parameters:
String - s
See Also:
getString
 o getString
  public String getString()
The string currently being used for scrolling

Returns:
String
See Also:
setString
 o setRightToLeft
  public void setRightToLeft(boolean b)
Controlls the direction the text will scroll. If true, the text will scroll from the Right to the Left; if false, the text will scroll from the Left to the Right.

Parameters:
boolean - b
See Also:
getRightToLeft
 o getRightToLeft
  public boolean getRightToLeft()
The direction the text will scroll. If true, the text will scroll from the Right to the Left; if false, the text will scroll from the Left to the Right.

Returns:
boolean
See Also:
setRightToLeft
 o setScrollClean
  public void setScrollClean(boolean b)
Controlls one behavior of the scrolling. If true, the text will scroll completely off before scrolling on again; if false, the text will scroll from head to tail or tail to head (depending on the direction) directly.

Parameters:
boolean - b
See Also:
getScrollClean, getRightToLeft
 o getScrollClean
  public boolean getScrollClean()
One behavior of the scrolling. If true, the text will scroll completely off before scrolling on again; if false, the text will scroll from head to tail or tail to head (depending on the direction) directly.

Returns:
boolean
See Also:
setScrollClean, getRightToLeft
 o setAutoStart
  public void setAutoStart(boolean f)
Determines if the scrolling will automatically start when the applet is loaded. If true the text will start scrolling as soon as the applet is loaded; if false, the text will not scroll until start() is called.

Parameters:
boolean - f
See Also:
getAutoStart, start, stop
 o getAutoStart
  public boolean getAutoStart()
Determines if the scrolling will automatically start when the applet is loaded. If true the text will start scrolling as soon as the applet is loaded; if false, the text will not scroll until start() is called.

Returns:
boolean Wether or not the text will scroll as soon as the applet is loaded.
See Also:
setAutoStart, start, stop
 o setRepeat
  public void setRepeat(boolean f)
Controlls one behavior of the scrolling If true the text will continue scrolling over and over; if false, the text will scroll off and back on, then stop.

Parameters:
boolean - f
See Also:
getRepeat
 o getRepeat
  public boolean getRepeat()
One behavior of the scrolling If true the text will continue scrolling over and over; if false, the text will scroll off and back on, then stop.

Returns:
boolean
See Also:
setRepeat
 o setDelay
  public void setDelay(int d)
Set the time between the display of each character in milliseconds. Minimum delay of 30 miliseconds.

Parameters:
int - d
See Also:
getDelay
 o getDelay
  public int getDelay()
The time between the display of each character in milliseconds

Returns:
int
See Also:
setDelay
 o setAppletContext
  public void setAppletContext(AppletContext c)
StatusScroller needs an AppletContext in order to set the status area This version takes an AppletContext object directly.

Parameters:
AppletContext - c
See Also:
setAppletContext
 o setAppletContext
  public void setAppletContext(Applet a)
StatusScroller needs an AppletContext in order to set the status area This version takes an Applet object and gets the needed AppletContext from it.

Parameters:
Applet - a
See Also:
setAppletContext
 o run
  public void run()
The main logic loop

 o scrollString
  protected String scrollString()
Handles the manipulation of the string buffer to give the desired scrolling effect.

Returns:
String
See Also:
run, setRightToLeft, getRightToLeft
 o makePadding
  protected String makePadding(int howBig)
Returns a String with howBig number of spaces as the content

Parameters:
int - howBig
Returns:
s String
See Also:
updateWorkingBuffer
 o updateWorkingBuffer
  protected void updateWorkingBuffer()
Updates the string buffer depending on the settings

See Also:
setScrollClean

All Packages  Class Hierarchy  This Package  Previous  Next  Index