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

SerialPane

HyperView V3.2 — class
version V3.2 class

Summary

A Visual front end for the serial port driver. This is the base class for different modems. extend this for each modem. (T) JDK 26 Compliant Version

Source file: SerialPane.java

Hierarchy

Extends: BasicPane

Implements: Runnable

Referenced HyperView classes

Media files used

Declaration & members

public class SerialPane extends BasicPane implements Runnable

Declared in src/com/multiversesocial/hyperview/SerialPane.java, lines 9–239. 18 field(s), 2 constructor(s), 4 method(s), plus 2 nested type(s). Every member has an anchor you can link to (e.g. SerialPane.html#<id>).

Fields (18)

DeclarationValue / initializerDescriptionSource
Gadget atGadNo comment in source; assigned in SerialPane().line 15
Gadget bpsGadNo comment in source; assigned in SerialPane().line 15
SerialPane.BPSGroup bpsGroupNo comment in source; assigned in SerialPane().line 14
static final int[] bpsRate= {115200, 57600, 38400, 19200, 14400, 9600, 4800, 2400, 1200, 300}No comment in source; not referenced by name in this type’s methods.line 21
int bpsRate1No comment in source; not referenced by name in this type’s methods.line 16
int bpsRate2No comment in source; not referenced by name in this type’s methods.line 17
static final String[] bpsRateString= {" 115200 ", " 57600 ", " 38400 ", " 19200 ", " 14400 ", " 9600 ", " 4800 ", " 240…No comment in source; used in SerialPane().line 27
Gadget closeGadNo comment in source; assigned in SerialPane().line 15
Gadget connectGadNo comment in source; assigned in SerialPane().line 15
Gadget echoGadNo comment in source; assigned in SerialPane().line 15
BasicPane messagePaneNo comment in source; assigned in SerialPane().line 13
static String portString= "COM1"No comment in source; used in SerialPane(); name appears in 2 other source file(s): Enfora2218WhackButton, PortControlPane.line 19
volatile boolean running= falseNo comment in source; assigned in start(), halt(); used in run().line 34
HyperScrollbar scrollBarNo comment in source; assigned in SerialPane().line 18
SerialHandler serialPortHandlerNo comment in source; assigned in SerialPane().line 11
Gadget statusGadNo comment in source; assigned in SerialPane().line 15
Thread taskNo comment in source; assigned in start(), halt(); used in run().line 33
public static final String VERSION= " V1.1" (constant)No comment in source; name appears in 1 other source file(s): Externalizer.line 12

Constructors (2)

SignatureDescriptionSource
SerialPane(HyperView tView)1 statement(s); calls this().line 36
SerialPane(HyperView tView, int tSX, int tSY)71 statement(s); calls super(), addGob(), fColor.brighter(), fColor.darker(), messagePane.move() …; creates Color, BPSGroup, GetString.line 41

Methods (4)

SignatureDescriptionSource
static { … }Implicit default constructor generated by the compiler (not written in the source).implicit
public synchronized void halt()REPLACED: stop() -> halt() - JDK 26 compatibleline 152
public void run()2 statement(s); calls Thread.currentThread(), notifyAll(), wait(), Thread.currentThread().interrupt(), curView.serialPortHandler.showBuffer().
Implements Runnable.run()
line 164
public synchronized void start()4 statement(s); calls task.setName(), System.currentTimeMillis(), task.start(); creates Thread.line 143

Nested & additional classes

CloseSerialPane (nested type, lines 193–202)

class CloseSerialPane extends Dispatch

Fields (0)

None declared.

Constructors (1)

SignatureDescriptionSource
CloseSerialPane()Implicit default constructor generated by the compiler (not written in the source).line 193

Methods (1)

SignatureDescriptionSource
public boolean run()4 statement(s).
Overrides Dispatch.run()
line 195

BPSGroup (nested type, lines 204–238)

class BPSGroup extends RadioGroup

Fields (0)

None declared.

Constructors (1)

SignatureDescriptionSource
BPSGroup(HyperView tView, String tString, int tX, int tY, String[] tString2)1 statement(s); calls super().line 206

Methods (1)

SignatureDescriptionSource
public void onClick()7 statement(s); calls super.onClick(), tSerialHandler.setBPSRate1(); creates HyperPop.
Overrides RadioGroup.onClick()
line 211

Inherited members

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

From BasicPane (27 fields, 8 methods)

Fields: charHeight, deviceColor0, deviceColor1, deviceColor2, fontHeight, frameColor, frameColor1, frameColor2, frameColor3, frameWidth, itemColor0, itemColor1, itemColor2, menuPaneColor, mpHeight, mpWidth, mpX, mpX2, mpY, mpY2, selectedColor0, selectedColor1, selectedColor2, textColor, textPaneColor, textPaneHeight, textPaneWidth

Methods: drawString(String, int, int), drawString(String, int, int, int), drawStrings(StringArr, int, int), erase(), makeBitMap(Font), setFont(Font), setPaneColor(int), update()

From Gadget (35 fields, 26 methods)

Fields: backColor, conFont, cursorGraphics, cursorHeight, cursorImage, cursorName, cursorScrollXOffset, cursorScrollYOffset, cursorWidth, cursorX, cursorY, displayInfo, fGColor, flipCount, font, gadFlags, gadFlags2, gadNumber, keyboard, 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(), 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/).

subclass — Enfora2218WhackPane.java, line 4

    4  public class Enfora2218WhackPane extends SerialPane
    5  {
Hits--