Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperScrollbar
Source: src/com/multiversesocial/hyperview/HyperScrollbar.java
Vertical specific Horizontal specific ------------------------------------------------------------------
sbar.gifpublic class HyperScrollbar extends Gadget implements HyperConstants
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
Graphics arrowDownGraphics | No comment in source; assigned in makeBitMaps(). | ||
Image arrowDownImage | No comment in source; assigned in makeBitMaps(); used in rethinkDimensions(). | ||
int arrowHeight | = 15 | No comment in source; assigned in HyperScrollbar(); used in makeBitMaps(), rethinkDimensions(). | |
Image arrowImage | No comment in source; not referenced by name in this type’s methods. | ||
Graphics arrowLeftGraphics | No comment in source; assigned in makeBitMaps(). | ||
Image arrowLeftImage | No comment in source; assigned in makeBitMaps(); used in rethinkDimensions(). | ||
Graphics arrowRightGraphics | No comment in source; assigned in makeBitMaps(). | ||
Image arrowRightImage | No comment in source; assigned in makeBitMaps(); used in rethinkDimensions(). | ||
Graphics arrowUpGraphics | No comment in source; assigned in makeBitMaps(). | ||
Image arrowUpImage | No comment in source; assigned in makeBitMaps(); used in rethinkDimensions(). | ||
int arrowWidth | = 15 | No comment in source; assigned in HyperScrollbar(); used in makeBitMaps(), rethinkDimensions(). | |
Color backColor | No comment in source; name appears in 5 other source file(s): Gadget, GetString, HyperComponent, NetXecWaitStrGetS …. | ||
Color bGColor | No comment in source; assigned in HyperScrollbar(); used in updateThumbPane(), onClick(). | ||
Graphics bltGraphics | No comment in source; assigned in makeBitMaps(). | ||
Image bltImage | No comment in source; assigned in makeBitMaps(). | ||
Color fGColor | No comment in source; assigned in HyperScrollbar(). | ||
int font | No comment in source; assigned in HyperScrollbar(), fontSet(). | ||
int grabMask | No comment in source; assigned in HyperScrollbar(); used in onClick(). | ||
static final String imageName | = "sbar.gif" | No comment in source; not referenced by name in this type’s methods. | |
volatile int lattags | No comment in source; not referenced by name in this type’s methods. | ||
LeftArrowMethod leftArrowMethod | No comment in source; assigned in HyperScrollbar(); used in mouseWheelMoved(), onClick(), inKey(). | ||
int leftArrowX | No comment in source; assigned in rethinkDimensions(). | ||
int leftArrowX2 | No comment in source; assigned in rethinkDimensions(). | ||
int leftArrowY | No comment in source; assigned in rethinkDimensions(). | ||
int leftArrowY2 | No comment in source; assigned in rethinkDimensions(). | ||
Color lineColorA | No comment in source; assigned in makeBitMaps(); used in rethinkDimensions(), drawOutline(). | ||
Color lineColorB | No comment in source; assigned in makeBitMaps(); used in rethinkDimensions(), drawOutline(), drawOutline2(). | ||
Color lineColorC | No comment in source; assigned in makeBitMaps(); used in rethinkDimensions(), drawOutline2(). | ||
LowerArrowMethod lowerArrowMethod | No comment in source; assigned in HyperScrollbar(); used in mouseWheelMoved(), onClick(), inKey(). | ||
int lowerArrowX | No comment in source; assigned in rethinkDimensions(). | ||
int lowerArrowX2 | No comment in source; assigned in rethinkDimensions(). | ||
int lowerArrowY | No comment in source; assigned in rethinkDimensions(). | ||
int lowerArrowY2 | No comment in source; assigned in rethinkDimensions(). | ||
int maxVal | No comment in source; assigned in HyperScrollbar(). | ||
Dispatch method | No comment in source; not referenced by name in this type’s methods. | ||
int minVal | No comment in source; assigned in HyperScrollbar(). | ||
volatile HyperMouse mouse | No comment in source; assigned in HyperScrollbar(); used in onClick(), onRelease(). | ||
RightArrowMethod rightArrowMethod | No comment in source; assigned in HyperScrollbar(); used in mouseWheelMoved(), onClick(), inKey(). | ||
int rightArrowX | Horizontal specific | ||
int rightArrowX2 | Horizontal specific | ||
int rightArrowY | Horizontal specific | ||
int rightArrowY2 | Horizontal specific | ||
int scrollFlags | No comment in source; assigned in HyperScrollbar(), makeBitMaps(); used in rethinkDimensions(), updateThumbPane(), mouseWheelMoved(), onClick(), inKey(). | ||
int Step | No comment in source; assigned in HyperScrollbar(). | ||
GetString stringBox | No comment in source; not referenced by name in this type’s methods. | ||
Graphics thumbGraphics | No comment in source; assigned in makeBitMaps(). | ||
int thumbHeight | = 15 | No comment in source; assigned in HyperScrollbar(); used in makeBitMaps(), rethinkDimensions(), updateThumbPane(), onClick(). | |
Image thumbImage | No comment in source; assigned in makeBitMaps(); used in rethinkDimensions(), updateThumbPane(), onClick(). | ||
int thumbMaxX | No comment in source; assigned in rethinkDimensions(); used in updateThumbPane(), onClick(). | ||
int thumbMaxY | No comment in source; assigned in rethinkDimensions(); used in updateThumbPane(), onClick(). | ||
int thumbMinX | No comment in source; assigned in rethinkDimensions(); used in updateThumbPane(), onClick(). | ||
int thumbMinY | No comment in source; assigned in rethinkDimensions(); used in updateThumbPane(), onClick(). | ||
int thumbPaneHeight | No comment in source; assigned in rethinkDimensions(). | ||
ThumbPaneMethod thumbPaneMethod | No comment in source; assigned in HyperScrollbar(); used in onClick(), onRelease(). | ||
int thumbPaneWidth | No comment in source; assigned in rethinkDimensions(). | ||
int thumbPaneX | No comment in source; assigned in rethinkDimensions(); used in onClick(). | ||
int thumbPaneX2 | No comment in source; assigned in rethinkDimensions(); used in onClick(). | ||
int thumbPaneY | No comment in source; assigned in rethinkDimensions(); used in onClick(). | ||
int thumbPaneY2 | No comment in source; assigned in rethinkDimensions(); used in onClick(). | ||
volatile double thumbRatio | No comment in source; assigned in HyperScrollbar(). | ||
int thumbWidth | = 15 | No comment in source; assigned in HyperScrollbar(); used in makeBitMaps(), rethinkDimensions(), updateThumbPane(), onClick(). | |
int thumbX | No comment in source; assigned in rethinkDimensions(), updateThumbPane(), onClick(). | ||
int thumbX2 | No comment in source; not referenced by name in this type’s methods. | ||
int thumbY | No comment in source; assigned in rethinkDimensions(), updateThumbPane(), onClick(). | ||
int thumbY2 | No comment in source; not referenced by name in this type’s methods. | ||
int ThumbYOffset | = arrowHeight + 4 | No comment in source; used in rethinkDimensions(). | |
UpperArrowMethod upperArrowMethod | No comment in source; assigned in HyperScrollbar(); used in mouseWheelMoved(), onClick(), inKey(). | ||
int upperArrowX | Vertical specific | ||
int upperArrowX2 | Vertical specific | ||
int upperArrowY | Vertical specific | ||
int upperArrowY2 | Vertical specific |
| Signature | Description | Source |
|---|---|---|
HyperScrollbar(HyperView tView, int destX, int destY, int tMinVal, int tMaxVal, int tFlags) | 37 statement(s); calls super(), curView.statusText(), makeBitMaps(), curView.addGadget(); creates Color, LeftArrowMethod, UpperArrowMethod. |
| Signature | Description | Source |
|---|---|---|
public void drawOutline() | Event handlers | |
public void drawOutline2() | 6 statement(s); calls graphics.setColor(), graphics.drawLine(). | |
public void fontSet(int val) | Sets font = val. | |
public void inKey() | Cont ContHyperScrollbarHit keyboard analog: arrow nudges. | |
public void makeBitMaps(int tMinVal, int tMaxVal, int tFlags) | makeBitMaps - loads images, then calls rethinkDimensions | |
public void mouseWheelMoved(MouseWheelEvent e) | 2 statement(s); calls e.getWheelRotation(), upperArrowMethod.function(), lowerArrowMethod.function(), leftArrowMethod.function(), rightArrowMethod.function(). | |
public void onClick() | 1 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawImage(), thumbPaneMethod.function(), upperArrowMethod.function() …. | |
public void onRelease() | Cont ContHyperScrollbarHit LMB-up: clear grab and settle thumb. | |
public void rethinkDimensions(int tMinVal, int tMaxVal) | rethinkDimensions - recalculates layout, fills track with black | |
public void setAPen(int val) | Sets fGPen = val. | |
public void setBPen(int val) | Sets bGPen = val. | |
public void updateThumbPane(int tOffset, int tMaxOffset) | updateThumbPane - accurate thumb positioning (rounded, not truncated) |
Fields: conFont, cursorGraphics, cursorHeight, cursorImage, cursorName, cursorScrollXOffset, cursorScrollYOffset, cursorWidth, cursorX, cursorY, displayInfo, flipCount, gadFlags, gadFlags2, gadNumber, keyboard, lastCursorX, lastCursorY, locked, parentTitlebar, stringHeight, stringWidth, stringX, stringY, tc1, tc2, tc3, tc4
Methods: addDispatch(Dispatch), allKeyMsgENA(), cleanUp(), drawCursor(), getForeground(), inString(String), isEnabled(), isShowing(), isVisible(), keyReleaseENA(), keyTypedENA(), layerDisable(), layerENA(), makeBitmap(Font), onMouseOver(), setEnabled(boolean), setForeground(int), setName(String), setVisible(boolean), toFront(), toString(), updateText()
Fields: asynchGraphics1, asynchGraphics2, asynchImage1, asynchImage2, attachedGob, attachedIndex, backGround, bgMemoryImageSource, bGPen, bottomMax, clickX, clickY, collisionClassMask, curAttached, currentZIndex, curView, depth, destGob, destGraphics, dispatchHoldCount, drawMode, dX, dY, dZ, fgMemoryImageSource, fGPen, gobEventFlags, gobFlags, gobFlags2, gobGadIndex, gobHx, gobHy, gobHz, gobName, gobNumber, gobOrbitRadius, gobPic, gobTypeFlags, graphics, gravity, height, heightBase, hSin, hyp, infoString, lClickX, lClickY, leftMin, maxAttached, memoryCounter, moveNum, mX, mX2, mY, mY2, oldX, oldY, oldZ, orbitGob, rightMax, scanLine, selectGraphics, selectImage, selectTime, spline, tint, topMin, totalAttached, width, widthBase, wSin, x, x2, y, y2, z
Methods: addGob(Gob), addSpline(Spline), center(), collisionOff(), collisionOn(), disable(), enable(), getGraphics(), getImageFromJar(String), getPixels(), gobZInit(), initScanline(int), inView(), isInView(), isMemoryImageSource(), move(int, int), move(Gadget, int, int), moveNext(), onDisplay(), printGobAttr(HyperView), printScanLines(), remGob(), remove(), zENA(), zOff()
Fields: attachment, index, linkFlags, name, next, parentList, prev
Methods: inList()
instantiation — Externalizer.java, line 170
170 scrollBar = new HyperScrollbar(tView,435,147,1,100,SCROLLBAR_VERTICAL);
declaration — FontPane.java, line 5
5 HyperScrollbar scrollBar;