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

HyperComponent

HyperView V3.2 — class
version V3.2 class

Summary

HyperComponent — HyperView 3.2 project class.

Source file: HyperComponent.java

Hierarchy

Extends: Gadget

Implements: none

Referenced HyperView classes

Media files used

Declaration & members

public class HyperComponent extends Gadget

Declared in src/com/multiversesocial/hyperview/HyperComponent.java, lines 5–104. 3 field(s), 5 constructor(s), 3 method(s). Every member has an anchor you can link to (e.g. HyperComponent.html#<id>).

Fields (3)

DeclarationValue / initializerDescriptionSource
Color stringColor= nullNo comment in source; used in paint(), paintSelect().line 7
int stringXOffSet= 0No comment in source; not referenced by name in this type’s methods.line 8
int stringYOffset= 0No comment in source; not referenced by name in this type’s methods.line 9

Constructors (5)

SignatureDescriptionSource
HyperComponent()1 statement(s); calls super().line 11
HyperComponent(HyperView tView)2 statement(s); calls this().line 16
HyperComponent(HyperView tView, int tX, int tY)1 statement(s); calls this(); creates Color.line 22
HyperComponent(HyperView tView, String tString, int tX, int tY, int tWidth, int tHeight)1 statement(s); calls this(); creates Color.line 28
HyperComponent(HyperView tView, String tString, int tX, int tY, int tWidth, int tHeight, Color tFGColor, Color tBGColor)22 statement(s); calls super(), curView.screenGraphics.getFontMetrics(conFont).stringWidth(), curView.screenGraphics.getFontMetrics(), curView.screenGraphics.getFontMetrics(conFont).getHeight(), backColor.darker() ….line 35

Methods (3)

SignatureDescriptionSource
public void cleanUp()1 statement(s); calls super.cleanUp().
Overrides Gadget.cleanUp()
line 100
public synchronized void paint(Graphics tg)14 statement(s); calls tg.setFont(), tg.setColor(), tg.fillRect(), tg.drawLine(), tg.drawString().line 65
public synchronized void paintSelect(Graphics tg)14 statement(s); calls tg.setFont(), tg.setColor(), backColor.darker(), tg.fillRect(), tc3.darker() ….line 83

Inherited members

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

From Gadget (35 fields, 25 methods)

Fields: backColor, conFont, cursorGraphics, cursorHeight, cursorImage, cursorName, cursorScrollXOffset, cursorScrollYOffset, cursorWidth, cursorX, cursorY, displayInfo, fGColor, flipCount, font, gadFlags, gadFlags2, gadNumber, keyboard, lastCursorX, lastCursorY, lineColorA, lineColorB, lineColorC, locked, method, parentTitlebar, stringHeight, stringWidth, stringX, stringY, tc1, tc2, tc3, tc4

Methods: addDispatch(Dispatch), allKeyMsgENA(), drawCursor(), drawOutline(), drawOutline2(), getForeground(), inKey(), inString(String), isEnabled(), isShowing(), isVisible(), keyReleaseENA(), keyTypedENA(), layerDisable(), layerENA(), makeBitmap(Font), mouseWheelMoved(MouseWheelEvent), onMouseOver(), setEnabled(boolean), setForeground(int), setName(String), setVisible(boolean), toFront(), toString(), updateText()

From Gob (76 fields, 27 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(), onClick(), onDisplay(), onRelease(), 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 — HyperCompTest.java, line 20

   20  HyperComponent hc = new
   21   HyperComponent(curView," Test ",10,10,100,50,Color.white,Color.blue);
Hits--