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

HyperEditBuffer

HyperView V3.2 — class
version V3.2 class

Summary

177, 216, 254

Source file: HyperEditBuffer.java

Hierarchy

Extends: Gadget

Implements: Externalizable

Referenced HyperView classes

Media files used

Declaration & members

public class HyperEditBuffer extends Gadget implements Externalizable

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

Fields (36)

DeclarationValue / initializerDescriptionSource
static final int APPEND_MODE= 1 (constant)No comment in source; used in inKey().line 11
int charHeight= 0No comment in source; assigned in makeBitMap().line 39
int charWidth= 0No comment in source; assigned in makeBitMap().line 38
int curCol= 0No comment in source; assigned in inKey(), readExternal(); used in writeExternal().line 29
int curRow= 0No comment in source; assigned in readExternal(); used in inKey(), writeExternal().line 30
int cursorHeight= 0No comment in source; assigned in HyperEditBuffer(); used in inKey(), paint().line 47
Image cursorImage= nullNo comment in source; assigned in HyperEditBuffer(); used in inKey().line 48
String cursorName= "cursor.gif"No comment in source; used in HyperEditBuffer().line 49
int cursorWidth= 0No comment in source; assigned in HyperEditBuffer(); used in inKey().line 46
int cursorX= 0No comment in source; assigned in HyperEditBuffer(), inKey().line 44
int cursorY= 0No comment in source; assigned in HyperEditBuffer(); used in inKey().line 45
int editFlags= APPEND_MODENo comment in source; assigned in readExternal(); used in inKey(), writeExternal().line 13
short[][] emulationFlag= nullNo comment in source; assigned in HyperEditBuffer(); used in inKey().line 18
String fileName= ""No comment in source; assigned in HyperEditBuffer(), readExternal(); used in writeExternal().line 20
int fontHeight= 0No comment in source; name appears in 9 other source file(s): Asteroids, BasicPane, ChannelControlPane, FontBase ….line 40
int frameWidth= 5No comment in source; used in HyperEditBuffer(), makeBitMap().line 36
HyperKeyboard keyboard= nullNo comment in source; assigned in HyperEditBuffer(); used in inKey().line 21
int keyCode= 0No comment in source; assigned in inKey().line 24
int lineStart= 0No comment in source; not referenced by name in this type’s methods.line 25
int maxCols= 80No comment in source; assigned in HyperEditBuffer(), readExternal(); used in makeBitMap(), writeExternal(), paint().line 15
int maxRows= 50No comment in source; assigned in HyperEditBuffer(), readExternal(); used in makeBitMap(), writeExternal(), paint().line 14
HyperEditBuffer next= nullNo comment in source; not referenced by name in this type’s methods.line 41
static final int ON_DISPLAY= 2 (constant)No comment in source; not referenced by name in this type’s methods.line 12
HyperEditBuffer previous= nullNo comment in source; not referenced by name in this type’s methods.line 42
StringBuffer[] screenBuffer= nullNo comment in source; assigned in HyperEditBuffer(), readExternal(); used in inKey(), writeExternal(), paint().line 17
String[] screenText= nullNo comment in source; not referenced by name in this type’s methods.line 16
Color textColor= Color.whiteNo comment in source; used in inKey(), paint().line 33
Color textPaneColor= Color.blackNo comment in source; used in makeBitMap(), inKey(), paint().line 32
int textPaneHeight= 0No comment in source; assigned in makeBitMap().line 35
int textPaneWidth= 0No comment in source; assigned in makeBitMap().line 34
int textX= 0No comment in source; assigned in HyperEditBuffer(), inKey().line 27
int textY= 0No comment in source; assigned in HyperEditBuffer(); used in inKey().line 28
char tmpChar= '\u0000'No comment in source; assigned in inKey().line 22
KeyEvent tmpKey= nullNo comment in source; assigned in inKey().line 23
int topBarHeight= 10No comment in source; used in HyperEditBuffer(), makeBitMap().line 37
String version= "1.0"No comment in source; assigned in readExternal(); used in writeExternal().line 19

Constructors (5)

SignatureDescriptionSource
HyperEditBuffer()1 statement(s); calls this(), HyperView.getCurView().line 51
HyperEditBuffer(HyperView tView)1 statement(s); calls this().line 56
HyperEditBuffer(HyperView tView, String tFileName)3 statement(s); calls super().line 61
HyperEditBuffer(HyperView tView, int tWidth, int tHeight)1 statement(s); calls this().line 67
HyperEditBuffer(HyperView tView, int tMaxCols, int tMaxRows, Font tFont, String tFileName)25 statement(s); calls super(), curView.screenGraphics.getFontMetrics(conFont).stringWidth(), curView.screenGraphics.getFontMetrics(), curView.screenGraphics.getFontMetrics(conFont).getHeight(), curView.createImage() …; creates StringBuffer, URL, PrintStream.line 72

Methods (5)

SignatureDescriptionSource
public void inKey()2 statement(s); calls tmpKey.getKeyChar(), tmpKey.getKeyCode(), HyperKeyboard.isPrintable(), graphics.setColor(), graphics.fillRect() ….
Overrides Gadget.inKey()
line 192
public void makeBitMap(Font tmpFont)40 statement(s); calls curView.screenGraphics.getFontMetrics(conFont).charWidth(), curView.screenGraphics.getFontMetrics(), curView.screenGraphics.getFontMetrics(conFont).getHeight(), curView.createImage(), gobPic.getGraphics() ….line 123
public void paint(Graphics g)9 statement(s); calls pg.setColor(), pg.fillRect(), pg.setFont(), pg.drawString(), screenBuffer[i].toString().line 301
public void readExternal(ObjectInput in)1 statement(s); calls in.readUTF(), in.readInt(), any.printStackTrace(); creates StringBuffer.
Implements Externalizable.readExternal()
line 248
public void writeExternal(ObjectOutput out)1 statement(s); calls out.writeUTF(), out.writeInt(), screenBuffer[i].toString(), any.printStackTrace().
Implements Externalizable.writeExternal()
line 272

Inherited members

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

From Gadget (28 fields, 25 methods)

Fields: backColor, conFont, cursorGraphics, cursorScrollXOffset, cursorScrollYOffset, 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(), cleanUp(), drawCursor(), drawOutline(), drawOutline2(), getForeground(), 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 (6 fields, 1 methods)

Fields: attachment, index, linkFlags, name, 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 — HyperEditDispatch.java, line 21

   21  heb = new HyperEditBuffer(curView,80,24,(Font)null,(String)null);
Hits--