Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperScrollbar
Source: src/com/multiversesocial/hyperview/HyperScrollbar.java

HyperScrollbar

HyperView V3.2 — class
version V3.2 class

Summary

Vertical specific Horizontal specific ------------------------------------------------------------------

Source file: HyperScrollbar.java

Hierarchy

Extends: Gadget

Implements: HyperConstants

Referenced HyperView classes

Media files used

Declaration & members

public class HyperScrollbar extends Gadget implements HyperConstants

Declared in src/com/multiversesocial/hyperview/HyperScrollbar.java, lines 11–537. 71 field(s), 1 constructor(s), 12 method(s). Every member has an anchor you can link to (e.g. HyperScrollbar.html#<id>).

Fields (71)

DeclarationValue / initializerDescriptionSource
Graphics arrowDownGraphicsNo comment in source; assigned in makeBitMaps().line 28
Image arrowDownImageNo comment in source; assigned in makeBitMaps(); used in rethinkDimensions().line 22
int arrowHeight= 15No comment in source; assigned in HyperScrollbar(); used in makeBitMaps(), rethinkDimensions().line 45
Image arrowImageNo comment in source; not referenced by name in this type’s methods.line 18
Graphics arrowLeftGraphicsNo comment in source; assigned in makeBitMaps().line 25
Image arrowLeftImageNo comment in source; assigned in makeBitMaps(); used in rethinkDimensions().line 19
Graphics arrowRightGraphicsNo comment in source; assigned in makeBitMaps().line 26
Image arrowRightImageNo comment in source; assigned in makeBitMaps(); used in rethinkDimensions().line 20
Graphics arrowUpGraphicsNo comment in source; assigned in makeBitMaps().line 27
Image arrowUpImageNo comment in source; assigned in makeBitMaps(); used in rethinkDimensions().line 21
int arrowWidth= 15No comment in source; assigned in HyperScrollbar(); used in makeBitMaps(), rethinkDimensions().line 44
Color backColorNo comment in source; name appears in 5 other source file(s): Gadget, GetString, HyperComponent, NetXecWaitStrGetS ….line 64
Color bGColorNo comment in source; assigned in HyperScrollbar(); used in updateThumbPane(), onClick().line 63
Graphics bltGraphicsNo comment in source; assigned in makeBitMaps().line 61
Image bltImageNo comment in source; assigned in makeBitMaps().line 60
Color fGColorNo comment in source; assigned in HyperScrollbar().line 63
int fontNo comment in source; assigned in HyperScrollbar(), fontSet().line 68
int grabMaskNo comment in source; assigned in HyperScrollbar(); used in onClick().line 24
static final String imageName= "sbar.gif" (constant)No comment in source; not referenced by name in this type’s methods.line 13
volatile int lattagsNo comment in source; not referenced by name in this type’s methods.line 67
LeftArrowMethod leftArrowMethodNo comment in source; assigned in HyperScrollbar(); used in mouseWheelMoved(), onClick(), inKey().line 54
int leftArrowXNo comment in source; assigned in rethinkDimensions().line 37
int leftArrowX2No comment in source; assigned in rethinkDimensions().line 37
int leftArrowYNo comment in source; assigned in rethinkDimensions().line 37
int leftArrowY2No comment in source; assigned in rethinkDimensions().line 37
Color lineColorANo comment in source; assigned in makeBitMaps(); used in rethinkDimensions(), drawOutline().line 64
Color lineColorBNo comment in source; assigned in makeBitMaps(); used in rethinkDimensions(), drawOutline(), drawOutline2().line 64
Color lineColorCNo comment in source; assigned in makeBitMaps(); used in rethinkDimensions(), drawOutline2().line 64
LowerArrowMethod lowerArrowMethodNo comment in source; assigned in HyperScrollbar(); used in mouseWheelMoved(), onClick(), inKey().line 57
int lowerArrowXNo comment in source; assigned in rethinkDimensions().line 33
int lowerArrowX2No comment in source; assigned in rethinkDimensions().line 33
int lowerArrowYNo comment in source; assigned in rethinkDimensions().line 33
int lowerArrowY2No comment in source; assigned in rethinkDimensions().line 33
int maxValNo comment in source; assigned in HyperScrollbar().line 15
Dispatch methodNo comment in source; not referenced by name in this type’s methods.line 66
int minValNo comment in source; assigned in HyperScrollbar().line 14
volatile HyperMouse mouseNo comment in source; assigned in HyperScrollbar(); used in onClick(), onRelease().line 17
RightArrowMethod rightArrowMethodNo comment in source; assigned in HyperScrollbar(); used in mouseWheelMoved(), onClick(), inKey().line 56
int rightArrowXHorizontal specificline 36
int rightArrowX2Horizontal specificline 36
int rightArrowYHorizontal specificline 36
int rightArrowY2Horizontal specificline 36
int scrollFlagsNo comment in source; assigned in HyperScrollbar(), makeBitMaps(); used in rethinkDimensions(), updateThumbPane(), mouseWheelMoved(), onClick(), inKey().line 16
int StepNo comment in source; assigned in HyperScrollbar().line 68
GetString stringBoxNo comment in source; not referenced by name in this type’s methods.line 69
Graphics thumbGraphicsNo comment in source; assigned in makeBitMaps().line 29
int thumbHeight= 15No comment in source; assigned in HyperScrollbar(); used in makeBitMaps(), rethinkDimensions(), updateThumbPane(), onClick().line 47
Image thumbImageNo comment in source; assigned in makeBitMaps(); used in rethinkDimensions(), updateThumbPane(), onClick().line 23
int thumbMaxXNo comment in source; assigned in rethinkDimensions(); used in updateThumbPane(), onClick().line 41
int thumbMaxYNo comment in source; assigned in rethinkDimensions(); used in updateThumbPane(), onClick().line 40
int thumbMinXNo comment in source; assigned in rethinkDimensions(); used in updateThumbPane(), onClick().line 41
int thumbMinYNo comment in source; assigned in rethinkDimensions(); used in updateThumbPane(), onClick().line 40
int thumbPaneHeightNo comment in source; assigned in rethinkDimensions().line 50
ThumbPaneMethod thumbPaneMethodNo comment in source; assigned in HyperScrollbar(); used in onClick(), onRelease().line 58
int thumbPaneWidthNo comment in source; assigned in rethinkDimensions().line 50
int thumbPaneXNo comment in source; assigned in rethinkDimensions(); used in onClick().line 51
int thumbPaneX2No comment in source; assigned in rethinkDimensions(); used in onClick().line 52
int thumbPaneYNo comment in source; assigned in rethinkDimensions(); used in onClick().line 51
int thumbPaneY2No comment in source; assigned in rethinkDimensions(); used in onClick().line 52
volatile double thumbRatioNo comment in source; assigned in HyperScrollbar().line 70
int thumbWidth= 15No comment in source; assigned in HyperScrollbar(); used in makeBitMaps(), rethinkDimensions(), updateThumbPane(), onClick().line 46
int thumbXNo comment in source; assigned in rethinkDimensions(), updateThumbPane(), onClick().line 39
int thumbX2No comment in source; not referenced by name in this type’s methods.line 42
int thumbYNo comment in source; assigned in rethinkDimensions(), updateThumbPane(), onClick().line 39
int thumbY2No comment in source; not referenced by name in this type’s methods.line 42
int ThumbYOffset= arrowHeight + 4No comment in source; used in rethinkDimensions().line 48
UpperArrowMethod upperArrowMethodNo comment in source; assigned in HyperScrollbar(); used in mouseWheelMoved(), onClick(), inKey().line 55
int upperArrowXVertical specificline 32
int upperArrowX2Vertical specificline 32
int upperArrowYVertical specificline 32
int upperArrowY2Vertical specificline 32

Constructors (1)

SignatureDescriptionSource
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.line 75

Methods (12)

SignatureDescriptionSource
public void drawOutline()Event handlers
Overrides Gadget.drawOutline()
line 357
public void drawOutline2()6 statement(s); calls graphics.setColor(), graphics.drawLine().
Overrides Gadget.drawOutline2()
line 367
public void fontSet(int val)Sets font = val.line 125
public void inKey()Cont ContHyperScrollbarHit keyboard analog: arrow nudges.
Overrides Gadget.inKey()
line 485
public void makeBitMaps(int tMinVal, int tMaxVal, int tFlags)makeBitMaps - loads images, then calls rethinkDimensionsline 132
public void mouseWheelMoved(MouseWheelEvent e)2 statement(s); calls e.getWheelRotation(), upperArrowMethod.function(), lowerArrowMethod.function(), leftArrowMethod.function(), rightArrowMethod.function().
Overrides Gadget.mouseWheelMoved()
line 377
public void onClick()1 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawImage(), thumbPaneMethod.function(), upperArrowMethod.function() ….
Overrides Gob.onClick()
line 393
public void onRelease()Cont ContHyperScrollbarHit LMB-up: clear grab and settle thumb.
Overrides Gob.onRelease()
line 521
public void rethinkDimensions(int tMinVal, int tMaxVal)rethinkDimensions - recalculates layout, fills track with blackline 199
public void setAPen(int val)Sets fGPen = val.line 126
public void setBPen(int val)Sets bGPen = val.line 127
public void updateThumbPane(int tOffset, int tMaxOffset)updateThumbPane - accurate thumb positioning (rounded, not truncated)line 322

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

From Gadget (28 fields, 22 methods)

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()

From Gob (76 fields, 25 methods)

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()

From Linkable (7 fields, 1 methods)

Fields: attachment, index, linkFlags, name, next, parentList, prev

Methods: inList()

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

instantiation — Externalizer.java, line 170

  170  scrollBar = new HyperScrollbar(tView,435,147,1,100,SCROLLBAR_VERTICAL);

declaration — FontPane.java, line 5

    5  HyperScrollbar scrollBar;
Hits--