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

PortControlPane

HyperView V3.2 — class
version V3.2 class

Summary

GetString ---------

Source file: PortControlPane.java

Hierarchy

Extends: BasicPane

Implements: none

Referenced HyperView classes

Media files used

Declaration & members

public class PortControlPane extends BasicPane

Declared in src/com/multiversesocial/hyperview/PortControlPane.java, lines 6–566. 22 field(s), 1 constructor(s), 3 method(s), plus 6 nested type(s). Every member has an anchor you can link to (e.g. PortControlPane.html#<id>).

Fields (22)

DeclarationValue / initializerDescriptionSource
Gadget addPortGadgetNo comment in source; assigned in PortControlPane().line 28
static int[][] connectionCommandOffset= {{53, 43, 74, 64}, {53, 43, 74, 64}, {0, 43, 21, 64}}No comment in source; used in update().line 14
static int[][] connectionStateOffset= {{99, 19, 110, 30}, {121, 19, 131, 30}, {110, 19, 121, 30}}No comment in source; used in update().line 8
volatile int currentPortNo comment in source; assigned in PortControlPane(), onClick(); used in update().line 40
Gadget defaultGadgetNo comment in source; not referenced by name in this type’s methods.line 32
Gadget deletePortGadgetNo comment in source; assigned in PortControlPane().line 29
volatile int displayFlagsNo comment in source; not referenced by name in this type’s methods.line 42
volatile HyperNumberPop getPortNumberPopNo comment in source; not referenced by name in this type’s methods.line 35
RadioButton linkChannelRadioButtonNo comment in source; assigned in PortControlPane(); used in update().line 26
Gadget loadGadgetNo comment in source; assigned in PortControlPane().line 31
static final int MAX_DISPLAY_PORTS= 16 (constant)No comment in source; used in update().line 21
static final String PORT_PREFIX= "port" (constant)
source: PortInfo.PORT_PREFIX
No comment in source; name appears in 2 other source file(s): PortConstants, PortInfo.line 20
Color portPaneColor0No comment in source; assigned in PortControlPane(); used in update().line 23
Color portPaneColor1No comment in source; assigned in PortControlPane(); used in update().line 24
String[] portStringNo comment in source; name appears in 2 other source file(s): Enfora2218WhackButton, SerialPane.line 38
RadioButton runServerAtStartRadioButtonNo comment in source; assigned in PortControlPane(); used in update(), onClick().line 25
Gadget saveGadgetNo comment in source; assigned in PortControlPane().line 30
HyperScrollbar scrollBarNo comment in source; name appears in 3 other source file(s): Externalizer, FontPane, SerialPane.line 22
Gadget startGadgetNo comment in source; not referenced by name in this type’s methods.line 33
Gadget stopGadgetNo comment in source; not referenced by name in this type’s methods.line 34
int totalPortsNo comment in source; name appears in 1 other source file(s): PortInfo.line 39
static final int UPDATE_DISPLAY= 1 (constant)No comment in source; not referenced by name in this type’s methods.line 41

Constructors (1)

SignatureDescriptionSource
PortControlPane(HyperView tView)39 statement(s); calls super(), PortInfo.open(), portPaneColor0.darker(), a.move(), a.addDispatch() …; creates HyperPop, Color, Gadget.line 44

Methods (3)

SignatureDescriptionSource
static { … }Implicit default constructor generated by the compiler (not written in the source).implicit
public void onClick()16 statement(s); calls PortInfo.getPortNodeIndex(), tPortNode.runState(), HyperConnectionHandler.startConnectionHandler(), any.printStackTrace(), HyperConnectionHandler.getConnectionHandler() …; creates HyperPop.
Overrides Gob.onClick()
line 270
public void update()Beware: assumption here is that there is no need to synch on PortList Monitor.
Overrides BasicPane.update()
line 109

Nested & additional classes

PortPaneListener (nested type, lines 345–353)

class PortPaneListener extends PortListener

Fields (0)

None declared.

Constructors (1)

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

Methods (1)

SignatureDescriptionSource
void onPortChange(int tPortNumber, int tValue)Refresh the port pane when PortInfo notifies a change.
Overrides PortListener.onPortChange()
line 347

AddPort (nested type, lines 355–415)

class AddPort extends Dispatch

Fields (0)

None declared.

Constructors (1)

SignatureDescriptionSource
AddPort(HyperView tView)1 statement(s); calls super().line 358

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)2 statement(s); calls notifyAll(), PopupListener.waitForPopClose(), Integer.parseInt(), HyperConnectionHandler.getConnectionHandler(), PortInfo.updatePort() …; creates HyperNumberPop, HyperPop, PortNode.
Overrides Dispatch.begin()
line 363

DoServerRunAtStartToggle (nested type, lines 417–450)

class DoServerRunAtStartToggle extends Dispatch

Fields (0)

None declared.

Constructors (1)

SignatureDescriptionSource
DoServerRunAtStartToggle(HyperView tView)1 statement(s); calls super().line 420

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)4 statement(s); calls PortInfo.getPortNodeIndex(), runServerAtStartRadioButton.setSelected(), runServerAtStartRadioButton.deSelect(), PortInfo.savePortFlags().
Overrides Dispatch.begin()
line 425

ChannelControlPop (nested type, lines 452–486)

class ChannelControlPop extends Dispatch

Fields (0)

None declared.

Constructors (1)

SignatureDescriptionSource
ChannelControlPop(HyperView tView)1 statement(s); calls super().line 455

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)5 statement(s); calls PortInfo.getPortNodeIndex(), linkChannelRadioButton.setSelected(), linkChannelRadioButton.deSelect(), PortInfo.savePortFlags().
Overrides Dispatch.begin()
line 460

DeletePort (nested type, lines 488–524)

class DeletePort extends Dispatch

Fields (0)

None declared.

Constructors (1)

SignatureDescriptionSource
DeletePort(HyperView tView)1 statement(s); calls super().line 491

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)6 statement(s); calls PortInfo.getPortList(), tPortList.dlDelete(), PortInfo.savePortList(), update().
Overrides Dispatch.begin()
line 496

PortControlPaneAbort (nested type, lines 526–562)

class PortControlPaneAbort extends Abort

Fields (1)

DeclarationValue / initializerDescriptionSource
PortControlPane parentPaneNo comment in source; assigned in PortControlPaneAbort(), begin().line 528

Constructors (2)

SignatureDescriptionSource
PortControlPaneAbort(PortControlPane tPane)2 statement(s); calls super().line 530
PortControlPaneAbort(HyperView tView, PortControlPane tPane)2 statement(s); calls super().line 536

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)<Standard HyperView abort procedure.>
Overrides Abort.begin()
line 542

Inherited members

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

From BasicPane (27 fields, 7 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)

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, 26 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(), 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/).

instantiation — PortControlGadget.java, line 32

   32  portPane = new PortControlPane(tView);
Hits--