com.vwp.jLCD
Class ScrollerWidget

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

public class ScrollerWidget
extends StringWidget


Field Summary
static int SCROLL_HORIZONTAL
           
static int SCROLL_VERTICAL
          scroll direction: scroll the widget in horizontal direction
 
Fields inherited from class com.vwp.jLCD.Widget
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
 
Constructor Summary
ScrollerWidget(int x, int y, int right, int bottom, int direction, int speed, String text)
          This creates a text widget that scrolls its contents continuously
 
Method Summary
 int getBottom()
           
 String getDirection()
           
 int getLeft()
          Deprecated. use getX() instead
 int getRight()
           
 int getSpeed()
           
 int getTop()
          Deprecated. use getY() instead
 String getType()
           
 void setBottom(int bottom)
           
 void setDirection(String direction)
           
 void setLeft(int left)
          Deprecated. use setX() instead
 void setRight(int right)
           
 void setSpeed(int speed)
           
 void setText(String text)
          Set a new text left-aligned to the widget
 void setText(String text, int align)
          Set a new text to the widget
 void setTop(int top)
          Deprecated. use setX() instead
 
Methods inherited from class com.vwp.jLCD.StringWidget
getText, getX, getY, setX, setY
 
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 x,
                      int y,
                      int right,
                      int bottom,
                      int direction,
                      int speed,
                      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 String getDirection()

setDirection

public void setDirection(String direction)

getSpeed

public int getSpeed()

setSpeed

public void setSpeed(int speed)

getLeft

public int getLeft()
Deprecated. use getX() instead


setLeft

public void setLeft(int left)
Deprecated. use setX() instead


getTop

public int getTop()
Deprecated. use getY() instead


setTop

public void setTop(int top)
Deprecated. use setX() instead


setText

public void setText(String text)
Set a new text left-aligned to the widget

Overrides:
setText in class StringWidget
Parameters:
text - the new text to set

setText

public void setText(String text,
                    int align)
Set a new text to the widget

Overrides:
setText in class StringWidget
Parameters:
text - the new text to set
align - the text alignment to use

getType

public String getType()
Overrides:
getType in class StringWidget