mWaba.gui.control
Class ScrollTrack

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Container
              |
              +--mWaba.gui.mControl
                    |
                    +--mWaba.gui.control.TrackControl
                          |
                          +--mWaba.gui.control.ScrollTrack

public class ScrollTrack
extends TrackControl


Field Summary
protected  int actual
           
protected  int current
           
protected  int scrollable
           
protected  int visible
           
 
Fields inherited from class mWaba.gui.control.TrackControl
LessThanThumb, MoreThanThumb, OnThumb, type
 
Fields inherited from class mWaba.gui.mControl
_debug, AlwaysEnabled, AlwaysRecalculateSize, backGround, borderWidth, CapturesPen, columns, debugGui, defaultAddMeCellConstraints, defaultAddMeControlConstraints, DidHoldDown, Disabled, doubleBuffer, doubleClickTime, dragging, dragResolution, DrawFlat, emptySize, firstPress, fixedPreferredSize, fixedSize, ForceResize, foreGround, globalDrawFlat, globalEditable, globalEnabled, globalSmallControls, GotPenDown, GotPreferredSize, holdDownPause, holdTick, ImageChanged, Invisible, KeepImage, kids, listeners, modifiers, myFont, myFrame, NoFocus, NotAnEditor, NotEditable, PenTransparent, preferredSize, PreferredSizeOnly, pressPoint, prompt, SendUpKeyEvents, SendUpPenEvents, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, text, Transparent, WantDrag, WantHoldDown
 
Fields inherited from class waba.ui.Container
children, numChildren, tail
 
Fields inherited from class waba.ui.Control
height, next, parent, width, x, y
 
Constructor Summary
ScrollTrack(int st)
           
 
Method Summary
protected  void calculatePreferredSize()
           
 void doPaint(waba.fx.Graphics g, waba.fx.Rect area)
           
 void generate(int what, int value)
           
 waba.fx.Rect getThumbArea()
           
 int getTrackTo()
           
 void recalculate()
           
 void resizeTo(int width, int height)
           
 void setPositions(int vs, int ac, int cur, boolean repaint)
           
 void setThumbPos(int x, int y)
           
 
Methods inherited from class mWaba.gui.control.TrackControl
dragged, generatePage, penHeld, penPressed, startDragging, stopDragging, whichArea
 
Methods inherited from class mWaba.gui.mControl
add, addListener, addToFront, amFlat, amOnTopFrame, amSmall, callBack, checkHasModifier, checkPenTransparent, consume, contains, doBackground, doBorder, doPaintChildren, doPaintData, editable, enabled, fixSizeAt, getBackground, getChildren, getChildren, getControlBuffer, getControlBuffer, getDim, getFont, getFontMetrics, getForeground, getFrame, getFrameOrContainer, getGraphics, getNext, getPosInFrame, getPreferredSize, getSurface, gotFocus, handedPenEvent, handOffPenEvent, handOffPenEvent, hasModifier, inheritModifiers, isOnMe, lostFocus, make, makeFrameTopMost, modify, modifyAll, modifyAll, notifyAction, onControlEvent, onEvent, onKeyEvent, onLabelPenEvent, onPaint, onPenEvent, paintBackground, paintChildren, penClicked, penDoubleClicked, penReleased, postEvent, recalculateSize, redisplay, reduceClip, remove, removeListener, repaint, repaintDataNow, repaintNow, repaintNow, requestCallBack, requestResizeTo, resetRect, restore, sendToListeners, set, setNext, setParent, setRect, show, shown, ticked, visible
 
Methods inherited from class waba.ui.Container
findChild
 
Methods inherited from class waba.ui.Control
addTimer, contains, createGraphics, getFontMetrics, getMainWindow, getParent, getRect, removeTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visible

protected int visible

actual

protected int actual

current

protected int current

scrollable

protected int scrollable
Constructor Detail

ScrollTrack

public ScrollTrack(int st)
Method Detail

doPaint

public void doPaint(waba.fx.Graphics g,
                    waba.fx.Rect area)
Overrides:
doPaint in class mControl

calculatePreferredSize

protected void calculatePreferredSize()
Overrides:
calculatePreferredSize in class mControl

getThumbArea

public waba.fx.Rect getThumbArea()
Overrides:
getThumbArea in class TrackControl

setThumbPos

public void setThumbPos(int x,
                        int y)
Overrides:
setThumbPos in class TrackControl

generate

public void generate(int what,
                     int value)
Overrides:
generate in class TrackControl

recalculate

public void recalculate()

resizeTo

public void resizeTo(int width,
                     int height)
Overrides:
resizeTo in class mControl

setPositions

public void setPositions(int vs,
                         int ac,
                         int cur,
                         boolean repaint)

getTrackTo

public int getTrackTo()
Overrides:
getTrackTo in class TrackControl