- /**
- * Update (or instantiate) vScroller and hScroller.
- */
- private void updateScrollers() {
- // Setup vertical scroller
- if (vScroller == null) {
- vScroller = new TVScroller(this, getWidth() - 1, 0,
- getHeight() - 1);
- vScroller.setValue(0);
- vScroller.setTopValue(0);
- }
- vScroller.setX(getWidth() - 1);
- vScroller.setHeight(getHeight() - 1);
- vScroller.setBigChange(getHeight() - 1);
-
- // Setup horizontal scroller
- if (hScroller == null) {
- hScroller = new THScroller(this, 0, getHeight() - 1,
- getWidth() - 1);
- hScroller.setValue(0);
- hScroller.setLeftValue(0);
- }
- hScroller.setY(getHeight() - 1);
- hScroller.setWidth(getWidth() - 1);
- hScroller.setBigChange(getWidth() - 1);
- }
-