com.vwp.jLCD
Class ScrollerWidget

java.lang.Object
  extended by com.vwp.jLCD.Widget
      extended by com.vwp.jLCD.ScrollerWidget

public class ScrollerWidget
extends Widget


Field Summary
static int SCROLL_HORIZONTAL
           
static int SCROLL_VERTICAL
          scroll direction: scroll the widget in horizontal direction
 
Constructor Summary
ScrollerWidget(int left, int top, int right, int bottom, int direction, int speed, java.lang.String text)
          This creates a text widget that scrolls its contents continuously
 
Method Summary
 int getBottom()
           
 java.lang.String getDirection()
           
 int getLeft()
           
 int getRight()
           
 int getSpeed()
           
 java.lang.String getText()
           
 int getTop()
           
 java.lang.String getType()
           
 void setBottom(int bottom)
           
 void setDirection(java.lang.String direction)
           
 void setLeft(int left)
           
 void setRight(int right)
           
 void setSpeed(int speed)
           
 void setText(java.lang.String text)
           
 void setTop(int top)
           
 
Methods inherited from class com.vwp.jLCD.Widget
getID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCROLL_HORIZONTAL

public static final int SCROLL_HORIZONTAL
See Also:
Constant Field Values

SCROLL_VERTICAL

public static final int SCROLL_VERTICAL
scroll direction: scroll the widget in horizontal direction

See Also:
Constant Field Values
Constructor Detail

ScrollerWidget

public ScrollerWidget(int left,
                      int top,
                      int right,
                      int bottom,
                      int direction,
                      int speed,
                      java.lang.String text)
This creates a text widget that scrolls its contents continuously

Parameters:
left - left position of text
top - top position of text
right - right end of text to display
bottom - bottom end of text to display
direction - scroll direction SCROLL_HORIZONTAL or SCROLL_VERTICAL
speed - the scroll speed, this number defines the number of frames that have to elapse before a scroll movement is done
text - the text to display
Method Detail

getRight

public int getRight()

setRight

public void setRight(int right)

getBottom

public int getBottom()

setBottom

public void setBottom(int bottom)

getDirection

public java.lang.String getDirection()

setDirection

public void setDirection(java.lang.String direction)

getSpeed

public int getSpeed()

setSpeed

public void setSpeed(int speed)

getLeft

public int getLeft()

setLeft

public void setLeft(int left)

getTop

public int getTop()

setTop

public void setTop(int top)

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getType

public java.lang.String getType()
Specified by:
getType in class Widget