Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperComponent
Source: src/com/multiversesocial/hyperview/HyperComponent.java
HyperComponent — HyperView 3.2 project class.
public class HyperComponent extends Gadget
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
Color stringColor | = null | No comment in source; used in paint(), paintSelect(). | |
int stringXOffSet | = 0 | No comment in source; not referenced by name in this type’s methods. | |
int stringYOffset | = 0 | No comment in source; not referenced by name in this type’s methods. |
| Signature | Description | Source |
|---|---|---|
HyperComponent() | 1 statement(s); calls super(). | |
HyperComponent(HyperView tView) | 2 statement(s); calls this(). | |
HyperComponent(HyperView tView, int tX, int tY) | 1 statement(s); calls this(); creates Color. | |
HyperComponent(HyperView tView, String tString, int tX, int tY, int tWidth, int tHeight) | 1 statement(s); calls this(); creates Color. | |
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() …. |
| Signature | Description | Source |
|---|---|---|
public void cleanUp() | 1 statement(s); calls super.cleanUp(). | |
public synchronized void paint(Graphics tg) | 14 statement(s); calls tg.setFont(), tg.setColor(), tg.fillRect(), tg.drawLine(), tg.drawString(). | |
public synchronized void paintSelect(Graphics tg) | 14 statement(s); calls tg.setFont(), tg.setColor(), backColor.darker(), tg.fillRect(), tc3.darker() …. |
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()
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()
Fields: attachment, index, linkFlags, name, next, parentList, prev
Methods: inList()
instantiation — HyperCompTest.java, line 20
20 HyperComponent hc = new 21 HyperComponent(curView," Test ",10,10,100,50,Color.white,Color.blue);