mWaba.gui.control
Class TrackControl

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

public abstract class TrackControl
extends mControl
implements ITrack


Field Summary
protected static int LessThanThumb
           
protected static int MoreThanThumb
           
protected static int OnThumb
           
 int 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
TrackControl()
           
 
Method Summary
 void dragged(DragContext dc)
           
 void generate(int what, int value)
           
 void generatePage()
           
abstract  waba.fx.Rect getThumbArea()
           
abstract  int getTrackTo()
           
 void penHeld(Point p)
           
 void penPressed(Point p)
           
abstract  void setThumbPos(int x, int y)
           
 void startDragging(DragContext dc)
           
 void stopDragging(DragContext dc)
           
 int whichArea(Point p)
           
 
Methods inherited from class mWaba.gui.mControl
add, addListener, addToFront, amFlat, amOnTopFrame, amSmall, calculatePreferredSize, callBack, checkHasModifier, checkPenTransparent, consume, contains, doBackground, doBorder, doPaint, 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, resizeTo, 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

LessThanThumb

protected static final int LessThanThumb

MoreThanThumb

protected static final int MoreThanThumb

OnThumb

protected static final int OnThumb

type

public int type
Constructor Detail

TrackControl

public TrackControl()
Method Detail

getThumbArea

public abstract waba.fx.Rect getThumbArea()

setThumbPos

public abstract void setThumbPos(int x,
                                 int y)

getTrackTo

public abstract int getTrackTo()

whichArea

public int whichArea(Point p)

generate

public void generate(int what,
                     int value)

generatePage

public void generatePage()

penPressed

public void penPressed(Point p)
Overrides:
penPressed in class mControl

penHeld

public void penHeld(Point p)
Overrides:
penHeld in class mControl

startDragging

public void startDragging(DragContext dc)
Overrides:
startDragging in class mControl

stopDragging

public void stopDragging(DragContext dc)
Overrides:
stopDragging in class mControl

dragged

public void dragged(DragContext dc)
Overrides:
dragged in class mControl