|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.ControlBase
ewe.ui.Control
ewe.ui.TrackControl
ewe.ui.ScrollTrack
| Field Summary | |
protected int |
actual
|
protected int |
current
|
int |
minThumb
|
protected int |
options
The options specified in the constructor. |
protected int |
scrollable
|
protected int |
visible
|
| Fields inherited from class ewe.ui.TrackControl |
followTracking, LessThanThumb, MoreThanThumb, OnThumb, type |
| Fields inherited from class ewe.ui.Control |
_debug, backGround, beforeRemoved, borderColor, borderStyle, borderWidth, children, columns, constraints, DoPaintMethod, dragging, dragResolution, dragTime, exitKeys, fieldTransfer, font, foreGround, haveNativePaint, height, holdDownPause, holdTick, hotKey, image, lastSelected, listeners, maxHeight, maxWidth, menuState, minHeight, minWidth, modifiers, MyClass, name, next, np, parent, penStatus, popupSound, popupSoundClip, preferredHeight, preferredWidth, prev, prompt, promptControl, rows, ss, standardBorder, standardEdge, startDragResolution, tags, tail, text, toolTip, width, x, y |
| Fields inherited from class ewe.ui.ControlBase |
clipItems, clipObject, clipOwner, curPoint, currentPenEvent, debugControl, debugFlag, DidHoldDown, doubleBuffer, doubleClickTime, firstPress, globalDrawFlat, globalEditable, globalEnabled, globalPalmStyle, globalSmallControls, GotPenDown, PenIsOn, pressPoint, TAG_LAST_USER_DATA, TAG_USER_DATA, TAKE_FIRST_PRESS, unnamed, useNativeTextInput |
| Fields inherited from interface ewe.ui.IScroll |
Higher, Horizontal, Lower, OPTION_INDICATOR_ONLY, PageHigher, PageLower, ScrollHigher, ScrollLower, TrackTo, Vertical |
| Fields inherited from interface ewe.ui.UIConstants |
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN |
| Fields inherited from interface ewe.ui.CellConstants |
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST |
| Fields inherited from interface ewe.ui.ControlConstants |
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown |
| Fields inherited from interface ewe.fx.ImageRefresher |
KEEP_VISIBLE |
| Constructor Summary | |
ScrollTrack(int type)
Create a new ScrollTrack. |
|
ScrollTrack(int type,
int trackOptions)
Create a new ScrollTrack. |
|
| Method Summary | |
protected void |
calculateSizes()
Override this to calculate the preferred, minimum and maximum size of your control. |
void |
doPaint(Graphics g,
Rect area)
|
void |
generate(int what,
int value)
|
Rect |
getThumbArea()
|
Rect |
getThumbArea(Rect r)
|
int |
getTrackTo()
This is called when the "thumb" area is moved. |
void |
recalculate()
|
void |
resizeTo(int width,
int height)
This will change the width and height values. |
void |
setPositions(int vs,
int ac,
int cur,
boolean repaint)
|
void |
setThumbPos(int x,
int y)
|
| Methods inherited from class ewe.ui.TrackControl |
dragged, generatePage, penHeld, penPressed, setFollowTracking, startDragging, stopDragging, whichArea |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public int minThumb
protected int options
protected int visible
protected int actual
protected int current
protected int scrollable
| Constructor Detail |
public ScrollTrack(int type)
type - Either IScroll.Horizontal or IScroll.Vertical
public ScrollTrack(int type,
int trackOptions)
type - Either IScroll.Horizontal or IScroll.VerticaltrackOptions - Any of the IScroll.OPTION_XXX values OR'ed together| Method Detail |
public void doPaint(Graphics g,
Rect area)
doPaint in class Controlprotected void calculateSizes()
Control
calculateSizes in class Controlpublic Rect getThumbArea()
getThumbArea in class TrackControlpublic Rect getThumbArea(Rect r)
public void setThumbPos(int x,
int y)
setThumbPos in class TrackControl
public void generate(int what,
int value)
generate in class TrackControlpublic void recalculate()
public void resizeTo(int width,
int height)
Control
resizeTo in class Control
public void setPositions(int vs,
int ac,
int cur,
boolean repaint)
public int getTrackTo()
TrackControl
getTrackTo in class TrackControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||