com.vwp.jLCD
Class ScrollerWidget
java.lang.Object
com.vwp.jLCD.Widget
com.vwp.jLCD.ScrollerWidget
public class ScrollerWidget
- extends Widget
|
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 |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 texttop - top position of textright - right end of text to displaybottom - bottom end of text to displaydirection - scroll direction SCROLL_HORIZONTAL or SCROLL_VERTICALspeed - the scroll speed, this number defines the number of frames that have to elapse before a scroll movement is donetext - the text to display
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