Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.ViewPane
Source: src/com/multiversesocial/hyperview/ViewPane.java
Timer timeOut = null; ViewPane(HyperView tView, int tx,int ty, Onscreen X/Y location.
public class ViewPane extends Gadget
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
Font f1 | = null | No comment in source; assigned in ViewPane(), setFont(), cleanUp(); used in erase(). | |
int fontHeight | = 12 | No comment in source; assigned in ViewPane(), setFont(); used in drawStrings(), erase(). | |
Color frameColor1 | = null | No comment in source; assigned in ViewPane(), cleanUp(); used in makeBitMap(), erase(). | |
Color frameColor2 | = null | No comment in source; assigned in ViewPane(), cleanUp(); used in makeBitMap(), erase(). | |
Color frameColor3 | = null | No comment in source; assigned in ViewPane(), cleanUp(); used in makeBitMap(), erase(). | |
HyperKeyboard keyboard | = null | No comment in source; not referenced by name in this type’s methods. | |
Color menuPaneColor | = null | No comment in source; assigned in ViewPane(), cleanUp(); used in makeBitMap(), drawStrings(), eraseMenuPane(), erase(). | |
int mpHeight | = 0 | No comment in source; assigned in makeBitMap(); used in drawStrings(), eraseMenuPane(), erase(), getSize(). | |
int mpWidth | = 0 | No comment in source; assigned in makeBitMap(); used in drawStrings(), eraseMenuPane(), erase(), getSize(). | |
int mpX | = 5 | MenuPane area offset | |
int mpX2 | = 0 | No comment in source; assigned in makeBitMap(). | |
int mpY | = 5 | MenuPane area offset | |
int mpY2 | = 0 | No comment in source; assigned in makeBitMap(). | |
String selectString | = "Clicked" | No comment in source; used in erase(). | |
Color textColor | = null | No comment in source; assigned in ViewPane(), cleanUp(); used in drawStrings(). | |
String titleString | = "ViewPane #" | No comment in source; assigned in setTitle(). | |
int viewPaneNumber | = -1 | No comment in source; name appears in 1 other source file(s): HyperFileList. |
| Signature | Description | Source |
|---|---|---|
ViewPane() | 11 statement(s); calls super(). | |
ViewPane(HyperView tView, int tx, int ty, int tWidth, int tHeight) | 1 statement(s); calls this(). | |
ViewPane(HyperView tView, int tx, int ty, int tWidth, int tHeight, Color fc1, Color fc2, Color fc3, Color mpc) | 36 statement(s); calls super(), curView.guru(), addDispatch(), method.setID(), makeBitMap() …; creates Dispatch. |
| Signature | Description | Source |
|---|---|---|
public void cleanUp() | 7 statement(s); calls super.cleanUp(). | |
public void drawString(String str, int tx, int ty) | 1 statement(s); calls graphics.drawString(). | |
public void drawString(String str, int tPen, int tx, int ty) | 2 statement(s); calls graphics.setColor(), graphics.drawString(). | |
public void drawStrings(String[] str, int tX, int tY) | 6 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawString(). | |
public void erase() | 27 statement(s); calls graphics.setColor(), graphics.drawLine(), graphics.fillRect(), selectGraphics.setColor(), selectGraphics.drawLine() …; creates java.io.PrintStream. | |
public void eraseMenuPane() | 2 statement(s); calls graphics.setColor(), graphics.fillRect(). | |
Dimension getSize() | Returns new Dimension(mpWidth, mpHeight). | |
public synchronized void makeBitMap() | 1 statement(s); calls curView.createImage(), selectImage.getGraphics(), asynchImage1.getGraphics(), asynchGraphics1.setFont(), asynchImage2.getGraphics() …. | |
public void reSize(int tWidth, int tHeight) | 3 statement(s); calls makeBitMap(). | |
public synchronized void setFont(int n) | 3 statement(s); calls graphics.setFont(). | |
public void setTitle(String str) | Sets titleString = str. |
Fields: backColor, conFont, cursorGraphics, cursorHeight, cursorImage, cursorName, cursorScrollXOffset, cursorScrollYOffset, cursorWidth, cursorX, cursorY, displayInfo, fGColor, flipCount, font, gadFlags, gadFlags2, gadNumber, 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 — ViewMain.java, line 54
54 viewPane1 = new ViewPane(this,1,17,200,100);
subclass — Asteroids.java, line 107
107 public class Asteroids extends ViewPane implements Runnable
108 {
declaration — DirGadgetDispatch.java, line 5
5 ViewPane vp1 = null;
The drawing surface for a ported applet (as in Asteroids): the applet’s animation runs in a ViewPane subclass that overrides update(), inKey() and, for the mouse, onClick()/onRelease()/onMouseOver()/mouseWheelMoved(). See the Applet Migration Guide.