|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vwp.jLCD.Widget
com.vwp.jLCD.StringWidget
com.vwp.jLCD.ScrollerWidget
public class ScrollerWidget
| 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 |
|---|
public static final int SCROLL_HORIZONTAL
public static final int SCROLL_VERTICAL
| Constructor Detail |
|---|
public ScrollerWidget(int x,
int y,
int right,
int bottom,
int direction,
int speed,
String text)
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| Method Detail |
|---|
public int getRight()
public void setRight(int right)
public int getBottom()
public void setBottom(int bottom)
public String getDirection()
public void setDirection(String direction)
public int getSpeed()
public void setSpeed(int speed)
public int getLeft()
public void setLeft(int left)
public int getTop()
public void setTop(int top)
public void setText(String text)
setText in class StringWidgettext - the new text to set
public void setText(String text,
int align)
setText in class StringWidgettext - the new text to setalign - the text alignment to usepublic String getType()
getType in class StringWidget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||