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

SuperBitmapConsole

HyperView V3.2 — class
version V3.2 class

Summary

REPLACED: char screenChar[][]; and int stringLength[]; Original scrolling / cursor variables - unchanged Title bar buttons

Source file: SuperBitmapConsole.java

Hierarchy

Extends: SuperBitmap

Implements: HyperConsoleConstants, HyperConstants, ConnectionConstants, SplineConstants, TextConstants

Referenced HyperView classes

Media files used

Declaration & members

public class SuperBitmapConsole extends SuperBitmap implements HyperConsoleConstants, HyperConstants, ConnectionConstants, SplineConstants, TextConstants

Declared in src/com/multiversesocial/hyperview/SuperBitmapConsole.java, lines 11–715. 39 field(s), 2 constructor(s), 24 method(s). Every member has an anchor you can link to (e.g. SuperBitmapConsole.html#<id>).

Fields (39)

DeclarationValue / initializerDescriptionSource
private ArrayList<StringBuilder> bufferdynamic rowsline 20
int charX= 0No comment in source; assigned in addWelcomeText(), inKey(), viewColumnUnder(), superColumnUnder(), viewColumnOver() …; used in showPosition().line 46
int charY= 12No comment in source; assigned in SuperBitmapConsole(), addWelcomeText(), inKey(), superColumnUnder(), superColumnOver() …; used in showPosition().line 47
private Rectangle closeButtonRect= new Rectangle(309, 1, 9, 8)No comment in source; used in drawTitleBar(), onClick().line 61
int consoleNumber= 0No comment in source; used in drawTitleBar().line 16
String cursorName= "cursor.gif"No comment in source; used in SuperBitmapConsole().line 56
int curString= 0No comment in source; not referenced by name in this type’s methods.line 17
int curSuperColumn= 0No comment in source; assigned in addWelcomeText(), inKey(), viewColumnUnder(), superColumnUnder(), superColumnOver() …; used in viewColumnOver(), showPosition(), dataOut().line 39
int curSuperRow= 0No comment in source; assigned in addWelcomeText(), inKey(), superColumnUnder(), superColumnOver(), home(); used in dataOut().line 40
int curViewColumn= 0No comment in source; assigned in addWelcomeText(), inKey(), superColumnUnder(), viewColumnOver(), superColumnOver() …; used in showPosition().line 25
int curViewRow= 0No comment in source; assigned in addWelcomeText(), inKey(), superColumnUnder(), superColumnOver(), home().line 26
int lastSourceX= 0No comment in source; assigned in inKey(), viewColumnUnder(), superColumnUnder(), viewColumnOver(), superColumnOver() ….line 50
int lastSourceY= 0No comment in source; assigned in inKey(), superColumnUnder(), superColumnOver(), onClick(), home().line 51
private Rectangle loadButtonRect= new Rectangle(230, 1, 32, 8)Title bar buttonsline 59
InetAddress localHost= nullNo comment in source; assigned in drawTitleBar().line 15
private int maxColsfrom superWidth / cursorWidthline 21
int maxStartColumn= 10No comment in source; assigned in SuperBitmapConsole().line 36
int rowStride= 12Original scrolling / cursor variables - unchangedline 24
private Rectangle saveButtonRect= new Rectangle(265, 1, 32, 8)No comment in source; used in drawTitleBar(), onClick().line 60
int startChar= 0No comment in source; assigned in SuperBitmapConsole(); used in updateText().line 42
int startCursor= 12No comment in source; assigned in SuperBitmapConsole(); used in onClick().line 41
int startRow= 0No comment in source; not referenced by name in this type’s methods.line 43
long startTime= 0No comment in source; name appears in 15 other source file(s): Asteroids, CollisionManager, HyperChannel, HyperConnectionHandler ….line 14
int statusRow= 0No comment in source; not referenced by name in this type’s methods.line 44
int superColumnNumber= 10No comment in source; assigned in SuperBitmapConsole(); used in inKey(), viewColumnOver().line 37
int superRowNumber= MAX_SUPERCOLUMNSinitial capacity, will be dynamicline 38
int textOutputColumn= 0No comment in source; assigned in inKey(), viewColumnUnder(), superColumnUnder(), viewColumnOver(), superColumnOver() …; used in SuperBitmapConsole().line 27
int textOutputColumn2= 0No comment in source; assigned in SuperBitmapConsole(), inKey(), superColumnUnder(), superColumnOver().line 28
int textOutputLastCol= 0No comment in source; assigned in SuperBitmapConsole(); used in viewColumnOver().line 29
int textOutputRow= 0No comment in source; assigned in updateText(); used in SuperBitmapConsole().line 30
int textOutputRow2= 0No comment in source; assigned in SuperBitmapConsole(), updateText().line 31
int tint= 0No comment in source; assigned in viewColumnUnder(), superColumnUnder(), viewColumnOver().line 48
int tint2= 0No comment in source; assigned in inKey(), viewColumnUnder(), viewColumnOver(), superColumnOver().line 49
private int titleBarHeight= 10No comment in source; used in SuperBitmapConsole(), drawTitleBar(), addWelcomeText(), onClick(), home().line 62
char tmpChar= '\u0000'No comment in source; assigned in inKey().line 54
KeyEvent tmpKey= nullNo comment in source; assigned in inKey().line 53
String tmpString= ""No comment in source; name appears in 3 other source file(s): HyperFileList, HyperKeyboard, HyperSelectItem.line 55
int viewColumnNumber= 10No comment in source; assigned in SuperBitmapConsole(); used in inKey(), superColumnUnder(), superColumnOver(), updateText().line 33
int viewRowNumber= 1No comment in source; assigned in SuperBitmapConsole(); used in inKey(), superColumnOver(), updateText().line 34

Constructors (2)

SignatureDescriptionSource
public SuperBitmapConsole(HyperView tView)1 statement(s); calls this().line 66
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<>.line 70

Methods (24)

SignatureDescriptionSource
private void addWelcomeText()10 statement(s); calls buffer.size(), buffer.get(i).setLength(), buffer.get(), buffer.get(i).append().line 200
public void center()---------- Original utility methods (unchanged) ----------
Overrides Gob.center()
line 631
public void dataOut(String str)4 statement(s); calls curView.hyperViewOut().line 709
public void defaultMemoryImage()5 statement(s); calls curView.createImage(), setMemoryImage(); creates MemoryImageSource.line 684
public void drawCursor()1 statement(s); calls graphics.drawImage().
Overrides Gadget.drawCursor()
line 516
public synchronized void drawOutline()Cont ContGetStringPaint outline path (GETSTRING_OUTLINE_ENA).
Overrides Gadget.drawOutline()
line 642
public synchronized void drawOutline2()8 statement(s); calls lineColorA.darker(), lineColorB.darker(), graphics.setColor(), graphics.drawLine().
Overrides Gadget.drawOutline2()
line 661
private void drawTitleBar()32 statement(s); calls superGraphics.setColor(), superGraphics.fillRect(), superGraphics.drawLine(), superGraphics.setFont(), InetAddress.getLocalHost() ….line 154
private void ensureRowExists(int row)2 statement(s); calls buffer.size(), buffer.add(); creates StringBuilder.line 223
private char getCharAt(int row, int col)4 statement(s); calls buffer.size(), buffer.get(), sb.length(), sb.charAt().line 230
private int getRowLength(int row)2 statement(s); calls buffer.size(), buffer.get(row).length(), buffer.get().line 246
public void home()15 statement(s); calls carriageReturn(), graphics.drawImage(), updateText(), showPosition().line 612
public void inKey()2 statement(s); calls tmpKey.getKeyChar(), graphics.drawImage(), graphics.setColor(), graphics.fillRect(), setCharAt() …; creates StringBuilder.
Overrides Gadget.inKey()
line 253
public synchronized void onClick()Title bar buttons
Overrides SuperBitmap.onClick()
line 554
public synchronized void onMouseOver()2 statement(s).
Overrides Gadget.onMouseOver()
line 607
public synchronized void saveText()1 statement(s); calls buffer.size(), curView.hyperViewOut(), buffer.get(i).toString(), buffer.get().line 679
private void setCharAt(int row, int col, char ch)4 statement(s); calls ensureRowExists(), buffer.get(), sb.length(), sb.append(), sb.setCharAt().line 237
public void setMemoryImage(MemoryImageSource mis)2 statement(s).line 705
public synchronized void showPosition()4 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawString().line 697
public synchronized void superColumnOver()19 statement(s); calls carriageReturn(), lineFeed(), graphics.drawImage(), updateText(), showPosition().line 486
public synchronized void superColumnUnder()21 statement(s); calls getRowLength(), Math.abs(), scrollUp().line 429
public synchronized void updateText()1 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawString(), buffer.size(), buffer.get() ….
Overrides Gadget.updateText()
line 521
public synchronized void viewColumnOver()4 statement(s); calls scrollRight(), superColumnOver(), graphics.drawImage(), updateText(), showPosition().line 464
public synchronized void viewColumnUnder()6 statement(s); calls curView.toolkit.beep(), scrollLeft(), superColumnUnder(), graphics.drawImage(), updateText() ….line 406

Inherited members

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

From SuperBitmap (29 fields, 15 methods)

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

From Gadget (33 fields, 20 methods)

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

From Gob (75 fields, 25 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, 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()

From Linkable (6 fields, 1 methods)

Fields: attachment, 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 — 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);
Hits--