Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperEditBuffer
Source: src/com/multiversesocial/hyperview/HyperEditBuffer.java
177, 216, 254
cursor.gifpublic class HyperEditBuffer extends Gadget implements Externalizable
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
static final int APPEND_MODE | = 1 | No comment in source; used in inKey(). | |
int charHeight | = 0 | No comment in source; assigned in makeBitMap(). | |
int charWidth | = 0 | No comment in source; assigned in makeBitMap(). | |
int curCol | = 0 | No comment in source; assigned in inKey(), readExternal(); used in writeExternal(). | |
int curRow | = 0 | No comment in source; assigned in readExternal(); used in inKey(), writeExternal(). | |
int cursorHeight | = 0 | No comment in source; assigned in HyperEditBuffer(); used in inKey(), paint(). | |
Image cursorImage | = null | No comment in source; assigned in HyperEditBuffer(); used in inKey(). | |
String cursorName | = "cursor.gif" | No comment in source; used in HyperEditBuffer(). | |
int cursorWidth | = 0 | No comment in source; assigned in HyperEditBuffer(); used in inKey(). | |
int cursorX | = 0 | No comment in source; assigned in HyperEditBuffer(), inKey(). | |
int cursorY | = 0 | No comment in source; assigned in HyperEditBuffer(); used in inKey(). | |
int editFlags | = APPEND_MODE | No comment in source; assigned in readExternal(); used in inKey(), writeExternal(). | |
short[][] emulationFlag | = null | No comment in source; assigned in HyperEditBuffer(); used in inKey(). | |
String fileName | = "" | No comment in source; assigned in HyperEditBuffer(), readExternal(); used in writeExternal(). | |
int fontHeight | = 0 | No comment in source; name appears in 9 other source file(s): Asteroids, BasicPane, ChannelControlPane, FontBase …. | |
int frameWidth | = 5 | No comment in source; used in HyperEditBuffer(), makeBitMap(). | |
HyperKeyboard keyboard | = null | No comment in source; assigned in HyperEditBuffer(); used in inKey(). | |
int keyCode | = 0 | No comment in source; assigned in inKey(). | |
int lineStart | = 0 | No comment in source; not referenced by name in this type’s methods. | |
int maxCols | = 80 | No comment in source; assigned in HyperEditBuffer(), readExternal(); used in makeBitMap(), writeExternal(), paint(). | |
int maxRows | = 50 | No comment in source; assigned in HyperEditBuffer(), readExternal(); used in makeBitMap(), writeExternal(), paint(). | |
HyperEditBuffer next | = null | No comment in source; not referenced by name in this type’s methods. | |
static final int ON_DISPLAY | = 2 | No comment in source; not referenced by name in this type’s methods. | |
HyperEditBuffer previous | = null | No comment in source; not referenced by name in this type’s methods. | |
StringBuffer[] screenBuffer | = null | No comment in source; assigned in HyperEditBuffer(), readExternal(); used in inKey(), writeExternal(), paint(). | |
String[] screenText | = null | No comment in source; not referenced by name in this type’s methods. | |
Color textColor | = Color.white | No comment in source; used in inKey(), paint(). | |
Color textPaneColor | = Color.black | No comment in source; used in makeBitMap(), inKey(), paint(). | |
int textPaneHeight | = 0 | No comment in source; assigned in makeBitMap(). | |
int textPaneWidth | = 0 | No comment in source; assigned in makeBitMap(). | |
int textX | = 0 | No comment in source; assigned in HyperEditBuffer(), inKey(). | |
int textY | = 0 | No comment in source; assigned in HyperEditBuffer(); used in inKey(). | |
char tmpChar | = '\u0000' | No comment in source; assigned in inKey(). | |
KeyEvent tmpKey | = null | No comment in source; assigned in inKey(). | |
int topBarHeight | = 10 | No comment in source; used in HyperEditBuffer(), makeBitMap(). | |
String version | = "1.0" | No comment in source; assigned in readExternal(); used in writeExternal(). |
| Signature | Description | Source |
|---|---|---|
HyperEditBuffer() | 1 statement(s); calls this(), HyperView.getCurView(). | |
HyperEditBuffer(HyperView tView) | 1 statement(s); calls this(). | |
HyperEditBuffer(HyperView tView, String tFileName) | 3 statement(s); calls super(). | |
HyperEditBuffer(HyperView tView, int tWidth, int tHeight) | 1 statement(s); calls this(). | |
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. |
| Signature | Description | Source |
|---|---|---|
public void inKey() | 2 statement(s); calls tmpKey.getKeyChar(), tmpKey.getKeyCode(), HyperKeyboard.isPrintable(), graphics.setColor(), graphics.fillRect() …. | |
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() …. | |
public void paint(Graphics g) | 9 statement(s); calls pg.setColor(), pg.fillRect(), pg.setFont(), pg.drawString(), screenBuffer[i].toString(). | |
public void readExternal(ObjectInput in) | 1 statement(s); calls in.readUTF(), in.readInt(), any.printStackTrace(); creates StringBuffer. | |
public void writeExternal(ObjectOutput out) | 1 statement(s); calls out.writeUTF(), out.writeInt(), screenBuffer[i].toString(), any.printStackTrace(). |
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()
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, parentList, prev
Methods: inList()
instantiation — HyperEditDispatch.java, line 21
21 heb = new HyperEditBuffer(curView,80,24,(Font)null,(String)null);