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
-
context
-
-
delay
-
-
index
-
-
isRepeat
-
-
isRightToLeft
-
-
isScrollClean
-
-
sslength
-
-
statusString
-
-
thread
-
-
wblength
-
-
workingBuffer
-
-
StatusScroller()
- Default Constructor
-
clear()
- Clears the status area
-
getAutoStart()
- Determines if the scrolling will automatically start when the applet is loaded.
-
getDelay()
- The time between the display of each character in milliseconds
-
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.
-
getRightToLeft()
- The direction the text will scroll.
-
getScrollClean()
- One behavior of the scrolling.
-
getString()
- The string currently being used for scrolling
-
makePadding(int)
- Returns a String with howBig number of spaces as the content
-
run()
- The main logic loop
-
scrollString()
- Handles the manipulation of the string buffer to give the
desired scrolling effect.
-
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.
-
setAppletContext(AppletContext)
- StatusScroller needs an AppletContext in order to set the status area
This version takes an AppletContext object directly.
-
setAutoStart(boolean)
- Determines if the scrolling will automatically start when the applet is loaded.
-
setDelay(int)
- Set the time between the display of each character in milliseconds.
-
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.
-
setRightToLeft(boolean)
- Controlls the direction the text will scroll.
-
setScrollClean(boolean)
- Controlls one behavior of the scrolling.
-
setString(String)
- Sets the string to use for scrolling
-
start()
- Start the status text scrolling
-
stop()
- Stops the status text from scrolling
-
updateWorkingBuffer()
- Updates the string buffer depending on the settings
isRightToLeft
protected boolean isRightToLeft
isRepeat
protected boolean isRepeat
isScrollClean
protected boolean isScrollClean
context
protected AppletContext context
thread
protected Thread thread
delay
protected int delay
wblength
protected int wblength
sslength
protected int sslength
index
protected int index
statusString
protected String statusString
workingBuffer
protected StringBuffer workingBuffer
StatusScroller
public StatusScroller()
- Default Constructor
start
public void start()
- Start the status text scrolling
- See Also:
- run
stop
public void stop()
- Stops the status text from scrolling
- See Also:
- start
clear
public void clear()
- Clears the status area
setString
public void setString(String s)
- Sets the string to use for scrolling
- Parameters:
- String - s
- See Also:
- getString
getString
public String getString()
- The string currently being used for scrolling
- Returns:
- String
- See Also:
- setString
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
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
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
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
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
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
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
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
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
getDelay
public int getDelay()
- The time between the display of each character in milliseconds
- Returns:
- int
- See Also:
- setDelay
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
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
run
public void run()
- The main logic loop
scrollString
protected String scrollString()
- Handles the manipulation of the string buffer to give the
desired scrolling effect.
- Returns:
- String
- See Also:
- run, setRightToLeft, getRightToLeft
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
updateWorkingBuffer
protected void updateWorkingBuffer()
- Updates the string buffer depending on the settings
- See Also:
- setScrollClean
All Packages Class Hierarchy This Package Previous Next Index