Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.SuperBitmapConsole
Source: src/com/multiversesocial/hyperview/SuperBitmapConsole.java
REPLACED: char screenChar[][]; and int stringLength[]; Original scrolling / cursor variables - unchanged Title bar buttons
Extends: SuperBitmap
Implements: HyperConsoleConstants, HyperConstants, ConnectionConstants, SplineConstants, TextConstants
cursor.gifpublic class SuperBitmapConsole extends SuperBitmap implements HyperConsoleConstants, HyperConstants, ConnectionConstants, SplineConstants, TextConstants
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
private ArrayList<StringBuilder> buffer | dynamic rows | ||
int charX | = 0 | No comment in source; assigned in addWelcomeText(), inKey(), viewColumnUnder(), superColumnUnder(), viewColumnOver() …; used in showPosition(). | |
int charY | = 12 | No comment in source; assigned in SuperBitmapConsole(), addWelcomeText(), inKey(), superColumnUnder(), superColumnOver() …; used in showPosition(). | |
private Rectangle closeButtonRect | = new Rectangle(309, 1, 9, 8) | No comment in source; used in drawTitleBar(), onClick(). | |
int consoleNumber | = 0 | No comment in source; used in drawTitleBar(). | |
String cursorName | = "cursor.gif" | No comment in source; used in SuperBitmapConsole(). | |
int curString | = 0 | No comment in source; not referenced by name in this type’s methods. | |
int curSuperColumn | = 0 | No comment in source; assigned in addWelcomeText(), inKey(), viewColumnUnder(), superColumnUnder(), superColumnOver() …; used in viewColumnOver(), showPosition(), dataOut(). | |
int curSuperRow | = 0 | No comment in source; assigned in addWelcomeText(), inKey(), superColumnUnder(), superColumnOver(), home(); used in dataOut(). | |
int curViewColumn | = 0 | No comment in source; assigned in addWelcomeText(), inKey(), superColumnUnder(), viewColumnOver(), superColumnOver() …; used in showPosition(). | |
int curViewRow | = 0 | No comment in source; assigned in addWelcomeText(), inKey(), superColumnUnder(), superColumnOver(), home(). | |
int lastSourceX | = 0 | No comment in source; assigned in inKey(), viewColumnUnder(), superColumnUnder(), viewColumnOver(), superColumnOver() …. | |
int lastSourceY | = 0 | No comment in source; assigned in inKey(), superColumnUnder(), superColumnOver(), onClick(), home(). | |
private Rectangle loadButtonRect | = new Rectangle(230, 1, 32, 8) | Title bar buttons | |
InetAddress localHost | = null | No comment in source; assigned in drawTitleBar(). | |
private int maxCols | from superWidth / cursorWidth | ||
int maxStartColumn | = 10 | No comment in source; assigned in SuperBitmapConsole(). | |
int rowStride | = 12 | Original scrolling / cursor variables - unchanged | |
private Rectangle saveButtonRect | = new Rectangle(265, 1, 32, 8) | No comment in source; used in drawTitleBar(), onClick(). | |
int startChar | = 0 | No comment in source; assigned in SuperBitmapConsole(); used in updateText(). | |
int startCursor | = 12 | No comment in source; assigned in SuperBitmapConsole(); used in onClick(). | |
int startRow | = 0 | No comment in source; not referenced by name in this type’s methods. | |
long startTime | = 0 | No comment in source; name appears in 15 other source file(s): Asteroids, CollisionManager, HyperChannel, HyperConnectionHandler …. | |
int statusRow | = 0 | No comment in source; not referenced by name in this type’s methods. | |
int superColumnNumber | = 10 | No comment in source; assigned in SuperBitmapConsole(); used in inKey(), viewColumnOver(). | |
int superRowNumber | = MAX_SUPERCOLUMNS | initial capacity, will be dynamic | |
int textOutputColumn | = 0 | No comment in source; assigned in inKey(), viewColumnUnder(), superColumnUnder(), viewColumnOver(), superColumnOver() …; used in SuperBitmapConsole(). | |
int textOutputColumn2 | = 0 | No comment in source; assigned in SuperBitmapConsole(), inKey(), superColumnUnder(), superColumnOver(). | |
int textOutputLastCol | = 0 | No comment in source; assigned in SuperBitmapConsole(); used in viewColumnOver(). | |
int textOutputRow | = 0 | No comment in source; assigned in updateText(); used in SuperBitmapConsole(). | |
int textOutputRow2 | = 0 | No comment in source; assigned in SuperBitmapConsole(), updateText(). | |
int tint | = 0 | No comment in source; assigned in viewColumnUnder(), superColumnUnder(), viewColumnOver(). | |
int tint2 | = 0 | No comment in source; assigned in inKey(), viewColumnUnder(), viewColumnOver(), superColumnOver(). | |
private int titleBarHeight | = 10 | No comment in source; used in SuperBitmapConsole(), drawTitleBar(), addWelcomeText(), onClick(), home(). | |
char tmpChar | = '\u0000' | No comment in source; assigned in inKey(). | |
KeyEvent tmpKey | = null | No comment in source; assigned in inKey(). | |
String tmpString | = "" | No comment in source; name appears in 3 other source file(s): HyperFileList, HyperKeyboard, HyperSelectItem. | |
int viewColumnNumber | = 10 | No comment in source; assigned in SuperBitmapConsole(); used in inKey(), superColumnUnder(), superColumnOver(), updateText(). | |
int viewRowNumber | = 1 | No comment in source; assigned in SuperBitmapConsole(); used in inKey(), superColumnOver(), updateText(). |
| Signature | Description | Source |
|---|---|---|
public SuperBitmapConsole(HyperView tView) | 1 statement(s); calls this(). | |
public SuperBitmapConsole(HyperView tView, int tWidth, int tHeight, int pX, int pY) | 54 statement(s); calls super(), curView.screenGraphics.getFontMetrics(conFont).stringWidth(), curView.screenGraphics.getFontMetrics(), curView.screenGraphics.getFontMetrics(conFont).getHeight(), curView.createImage() …; creates URL, PrintStream, ArrayList<>. |
| Signature | Description | Source |
|---|---|---|
private void addWelcomeText() | 10 statement(s); calls buffer.size(), buffer.get(i).setLength(), buffer.get(), buffer.get(i).append(). | |
public void center() | ---------- Original utility methods (unchanged) ---------- | |
public void dataOut(String str) | 4 statement(s); calls curView.hyperViewOut(). | |
public void defaultMemoryImage() | 5 statement(s); calls curView.createImage(), setMemoryImage(); creates MemoryImageSource. | |
public void drawCursor() | 1 statement(s); calls graphics.drawImage(). | |
public synchronized void drawOutline() | Cont ContGetStringPaint outline path (GETSTRING_OUTLINE_ENA). | |
public synchronized void drawOutline2() | 8 statement(s); calls lineColorA.darker(), lineColorB.darker(), graphics.setColor(), graphics.drawLine(). | |
private void drawTitleBar() | 32 statement(s); calls superGraphics.setColor(), superGraphics.fillRect(), superGraphics.drawLine(), superGraphics.setFont(), InetAddress.getLocalHost() …. | |
private void ensureRowExists(int row) | 2 statement(s); calls buffer.size(), buffer.add(); creates StringBuilder. | |
private char getCharAt(int row, int col) | 4 statement(s); calls buffer.size(), buffer.get(), sb.length(), sb.charAt(). | |
private int getRowLength(int row) | 2 statement(s); calls buffer.size(), buffer.get(row).length(), buffer.get(). | |
public void home() | 15 statement(s); calls carriageReturn(), graphics.drawImage(), updateText(), showPosition(). | |
public void inKey() | 2 statement(s); calls tmpKey.getKeyChar(), graphics.drawImage(), graphics.setColor(), graphics.fillRect(), setCharAt() …; creates StringBuilder. | |
public synchronized void onClick() | Title bar buttons | |
public synchronized void onMouseOver() | 2 statement(s). | |
public synchronized void saveText() | 1 statement(s); calls buffer.size(), curView.hyperViewOut(), buffer.get(i).toString(), buffer.get(). | |
private void setCharAt(int row, int col, char ch) | 4 statement(s); calls ensureRowExists(), buffer.get(), sb.length(), sb.append(), sb.setCharAt(). | |
public void setMemoryImage(MemoryImageSource mis) | 2 statement(s). | |
public synchronized void showPosition() | 4 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawString(). | |
public synchronized void superColumnOver() | 19 statement(s); calls carriageReturn(), lineFeed(), graphics.drawImage(), updateText(), showPosition(). | |
public synchronized void superColumnUnder() | 21 statement(s); calls getRowLength(), Math.abs(), scrollUp(). | |
public synchronized void updateText() | 1 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawString(), buffer.size(), buffer.get() …. | |
public synchronized void viewColumnOver() | 4 statement(s); calls scrollRight(), superColumnOver(), graphics.drawImage(), updateText(), showPosition(). | |
public synchronized void viewColumnUnder() | 6 statement(s); calls curView.toolkit.beep(), scrollLeft(), superColumnUnder(), graphics.drawImage(), updateText() …. |
Fields: bitmapFlags, deltaX, deltaY, frameColorA, frameColorB, frameColorC, frameWidth, frameX, frameX2, frameY, frameY2, horizontalScrollbar, index, keyboard, lastSuperTopRow, memoryImage, memoryImageSource, mouse, rasterBits, sourceX, sourceX2, sourceY, sourceY2, superGraphics, superHeight, superImage, superWidth, verticalScrollbar, ViewImage
Methods: carrageReturn(Object), carriageReturn(Object), copyHyperRaster(), lineFeed(Object), rethinkDisplay(int, int), scrollDown(int), scrollHome(), scrollLeft(), scrollLeft(int, Object), scrollRight(int, Object), scrollRight(int), scrollRight(), scrollUp(int), scrollUp(Object), upDateBitmap()
Fields: backColor, conFont, cursorGraphics, cursorHeight, cursorImage, 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(), cleanUp(), getForeground(), inString(String), isEnabled(), isShowing(), isVisible(), keyReleaseENA(), keyTypedENA(), layerDisable(), layerENA(), makeBitmap(Font), mouseWheelMoved(MouseWheelEvent), setEnabled(boolean), setForeground(int), setName(String), setVisible(boolean), toFront(), toString()
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, topMin, totalAttached, width, widthBase, wSin, x, x2, y, y2, z
Methods: addGob(Gob), addSpline(Spline), collisionOff(), collisionOn(), disable(), enable(), getGraphics(), getImageFromJar(String), getPixels(), gobZInit(), initScanline(int), inView(), isInView(), isMemoryImageSource(), move(int, int), move(Gadget, int, int), moveNext(), onDisplay(), onRelease(), printGobAttr(HyperView), printScanLines(), remGob(), remove(), zENA(), zOff()
Fields: attachment, linkFlags, name, next, parentList, prev
Methods: inList()
instantiation — DispatchNewCLI.java, line 13
13 SuperBitmapConsole sbmc = new 14 SuperBitmapConsole(tView,320,200,0,280);
declaration — HyperView.java, line 126
126 SuperBitmapConsole tmpCon;
instantiation — NewCLI.java, line 14
14 SuperBitmapConsole sbmc = new 15 SuperBitmapConsole(curView,320,200,0,280);