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

ViewPane

HyperView V3.2 — class
version V3.2 class

Summary

Timer timeOut = null; ViewPane(HyperView tView, int tx,int ty, Onscreen X/Y location.

Source file: ViewPane.java

Hierarchy

Extends: Gadget

Implements: none

Referenced HyperView classes

Media files used

Declaration & members

public class ViewPane extends Gadget

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

Fields (17)

DeclarationValue / initializerDescriptionSource
Font f1= nullNo comment in source; assigned in ViewPane(), setFont(), cleanUp(); used in erase().line 18
int fontHeight= 12No comment in source; assigned in ViewPane(), setFont(); used in drawStrings(), erase().line 16
Color frameColor1= nullNo comment in source; assigned in ViewPane(), cleanUp(); used in makeBitMap(), erase().line 11
Color frameColor2= nullNo comment in source; assigned in ViewPane(), cleanUp(); used in makeBitMap(), erase().line 12
Color frameColor3= nullNo comment in source; assigned in ViewPane(), cleanUp(); used in makeBitMap(), erase().line 13
HyperKeyboard keyboard= nullNo comment in source; not referenced by name in this type’s methods.line 20
Color menuPaneColor= nullNo comment in source; assigned in ViewPane(), cleanUp(); used in makeBitMap(), drawStrings(), eraseMenuPane(), erase().line 14
int mpHeight= 0No comment in source; assigned in makeBitMap(); used in drawStrings(), eraseMenuPane(), erase(), getSize().line 10
int mpWidth= 0No comment in source; assigned in makeBitMap(); used in drawStrings(), eraseMenuPane(), erase(), getSize().line 10
int mpX= 5MenuPane area offsetline 9
int mpX2= 0No comment in source; assigned in makeBitMap().line 10
int mpY= 5MenuPane area offsetline 9
int mpY2= 0No comment in source; assigned in makeBitMap().line 10
String selectString= "Clicked"No comment in source; used in erase().line 7
Color textColor= nullNo comment in source; assigned in ViewPane(), cleanUp(); used in drawStrings().line 15
String titleString= "ViewPane #"No comment in source; assigned in setTitle().line 6
int viewPaneNumber= -1No comment in source; name appears in 1 other source file(s): HyperFileList.line 8

Constructors (3)

SignatureDescriptionSource
ViewPane()11 statement(s); calls super().line 22
ViewPane(HyperView tView, int tx, int ty, int tWidth, int tHeight)1 statement(s); calls this().line 36
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.line 45

Methods (11)

SignatureDescriptionSource
public void cleanUp()7 statement(s); calls super.cleanUp().
Overrides Gadget.cleanUp()
line 301
public void drawString(String str, int tx, int ty)1 statement(s); calls graphics.drawString().line 206
public void drawString(String str, int tPen, int tx, int ty)2 statement(s); calls graphics.setColor(), graphics.drawString().line 211
public void drawStrings(String[] str, int tX, int tY)6 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawString().line 217
public void erase()27 statement(s); calls graphics.setColor(), graphics.drawLine(), graphics.fillRect(), selectGraphics.setColor(), selectGraphics.drawLine() …; creates java.io.PrintStream.line 235
public void eraseMenuPane()2 statement(s); calls graphics.setColor(), graphics.fillRect().line 229
Dimension getSize()Returns new Dimension(mpWidth, mpHeight).line 296
public synchronized void makeBitMap()1 statement(s); calls curView.createImage(), selectImage.getGraphics(), asynchImage1.getGraphics(), asynchGraphics1.setFont(), asynchImage2.getGraphics() ….line 152
public void reSize(int tWidth, int tHeight)3 statement(s); calls makeBitMap().line 199
public synchronized void setFont(int n)3 statement(s); calls graphics.setFont().line 191
public void setTitle(String str)Sets titleString = str.line 291

Inherited members

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

From Gadget (34 fields, 25 methods)

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

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 — 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;

Applet hosting

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.

Hits--