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

ChannelControlPane

HyperView V3.2 — class
version V3.2 class

Summary

-------------------------- A reference to the ConnectionHandler

Source file: ChannelControlPane.java

Hierarchy

Extends: ServerChannelPane

Implements: ChannelView

Referenced HyperView classes

Media files used

Declaration & members

public class ChannelControlPane extends ServerChannelPane implements ChannelView

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

Fields (30)

DeclarationValue / initializerDescriptionSource
static HyperChannel[] channel= null<Channel Info> linked via HyperchannelRegistry.synch()line 29
static int channelID= 0No comment in source; name appears in 2 other source file(s): HyperChannelRegistry, ServerChannelPane.line 31
static HyperLinkedList[] channelInputVectorList= nullNo comment in source; name appears in 3 other source file(s): HyperChannelRegistry, HyperNBInputHandler, ServerChannelPane.line 33
static HyperLinkedList channelIOList= nullNo comment in source; name appears in 5 other source file(s): HyperChannel, HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler ….line 35
static HyperLinkedList[] channelOutputVectorList= nullNo comment in source; name appears in 3 other source file(s): HyperChannelRegistry, HyperNBOutputHandler, ServerChannelPane.line 34
HyperChannelRegistry channelRegistryNo comment in source; assigned in ChannelControlPane().line 25
HyperConnectionHandler connectionHandlerA reference to the ConnectionHandlerline 23
volatile int currentChannelNo comment in source; assigned in ChannelControlPane(); used in updateChannelView().line 26
PortNode currentPortNodeNo comment in source; assigned in ChannelControlPane().line 24
GetString dataGetStringNo comment in source; assigned in ChannelControlPane().line 42
static boolean[] impendingChannelIO= nullNo comment in source; name appears in 4 other source file(s): HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler, ServerChannelPane.line 30
volatile boolean[] inChannelNo comment in source; assigned in ChannelControlPane(), cleanUp(); used in updateChannelView(), inChannel().line 39
Color ioPaneColor0= nullNo comment in source; assigned in ChannelControlPane(); used in updateChannelView().line 11
Color ioPaneColor1= nullNo comment in source; assigned in ChannelControlPane(); used in updateChannelView().line 12
Color ioPaneColor2= nullNo comment in source; assigned in ChannelControlPane(); used in updateChannelView().line 13
int ioPaneHeight= 0No comment in source; assigned in ChannelControlPane(); used in updateChannelView().line 17
int ioPaneWidth= 150No comment in source; used in updateChannelView().line 16
int ioPaneX= 6No comment in source; used in updateChannelView().line 14
int ioPaneY= 6No comment in source; used in updateChannelView().line 15
Gadget joinChannelGadgetNo comment in source; assigned in ChannelControlPane().line 44
String lastIOString= nullNo comment in source; assigned in updateChannelView().line 10
ChannelControlPane.LeaveChannelDispatch leaveChannelDispatchNo comment in source; name appears in 1 other source file(s): ServerChannelPane.line 49
Gadget leaveChannelGadgetNo comment in source; assigned in ChannelControlPane().line 45
ChannelControlPane.NewChannelDispatch newChannelDispatchNo comment in source; assigned in ChannelControlPane().line 48
Gadget newChannelGadgetNo comment in source; assigned in ChannelControlPane().line 43
Gadget nextChannelGadgetNo comment in source; assigned in ChannelControlPane().line 47
Gadget sendChannelGadgetNo comment in source; assigned in ChannelControlPane().line 46
HyperChannelNodeLink[] serverChannelJoinedListNo comment in source; assigned in ChannelControlPane().line 41
static int totalChannels= 0No comment in source; assigned in updateChannelView(); name appears in 5 other source file(s): HyperChannel, HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler ….line 32

Constructors (1)

SignatureDescriptionSource
ChannelControlPane(HyperView tView)5 statement(s); calls super(), PortInfo.getPortNode(), Integer.parseInt(), ioPaneColor1.brighter(), ioPaneColor1.darker().darker() …; creates Color, GetString, Gadget.line 51

Methods (5)

SignatureDescriptionSource
static { … }Implicit default constructor generated by the compiler (not written in the source).implicit
public void cleanUp()4 statement(s); calls super.cleanUp(), channel[z].leave().
Overrides ServerChannelPane.cleanUp()
line 248
public HyperConnectionNode getNode(HyperChannel tChannel)Returns connectionHandler.getNode(tChannel).
Overrides ServerChannelPane.getNode()
line 263
public synchronized boolean inChannel(HyperChannel tChannel)2 statement(s); calls notifyAll().
Overrides ServerChannelPane.inChannel()
line 241
public int updateChannelView(String tChannelName, Graphics tGraphics, ByteBuffer tBuffer)37 statement(s); calls tGraphics.setColor(), tGraphics.fillRect(), tGraphics.drawLine(), tGraphics.drawString(), tBuffer.hasRemaining() ….
Overrides ServerChannelPane.updateChannelView()
line 134

Nested & additional classes

NewChannelDispatch (nested type, lines 270–324)

class NewChannelDispatch extends Dispatch

Fields (0)

None declared.

Constructors (1)

SignatureDescriptionSource
NewChannelDispatch()1 statement(s); calls super().line 272

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)4 statement(s); calls tPop.getString[0].textStr.equals(), HyperChannelRegistry.getChannel(), updateChannelView(), curView.statusText(); creates HyperStringPop, HyperPop.
Overrides Dispatch.begin()
line 277

JoinChannelDispatch (nested type, lines 326–392)

class JoinChannelDispatch extends Dispatch

Fields (1)

DeclarationValue / initializerDescriptionSource
ChannelControlPane parentPane= nullNo comment in source; assigned in JoinChannelDispatch(); used in begin().line 328

Constructors (1)

SignatureDescriptionSource
JoinChannelDispatch(ChannelControlPane tPane)2 statement(s); calls super().line 330

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)4 statement(s); calls tPop.getString[0].textStr.equals(), HyperChannelRegistry.getChannel(), tChannel.setChannelView(), tChannel.join(), updateChannelView() …; creates HyperStringPop, HyperPop.
Overrides Dispatch.begin()
line 335

LeaveChannelDispatch (nested type, lines 394–431)

class LeaveChannelDispatch extends Dispatch

Fields (1)

DeclarationValue / initializerDescriptionSource
ChannelControlPane parentPane= nullNo comment in source; assigned in LeaveChannelDispatch(); used in begin().line 396

Constructors (1)

SignatureDescriptionSource
LeaveChannelDispatch(ChannelControlPane tPane)2 statement(s); calls super().line 398

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)2 statement(s); calls channel[currentChannel].leave(), channel[currentChannel].removeChannelView(), updateChannelView(); creates HyperPop.
Overrides Dispatch.begin()
line 403

SendChannelDispatch (nested type, lines 433–472)

class SendChannelDispatch extends Dispatch

Fields (0)

None declared.

Constructors (1)

SignatureDescriptionSource
SendChannelDispatch()1 statement(s); calls super().line 436

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)2 statement(s); calls tString.length(), tChannel.sendIO(), tString.getBytes(); creates HyperPop.
Overrides Dispatch.begin()
line 441

ChannelControlPaneAbort (nested type, lines 474–508)

class ChannelControlPaneAbort extends Abort

Fields (1)

DeclarationValue / initializerDescriptionSource
ChannelControlPane parentPane= nullNo comment in source; assigned in ChannelControlPaneAbort(), begin().line 476

Constructors (2)

SignatureDescriptionSource
ChannelControlPaneAbort(ChannelControlPane tPane)2 statement(s); calls super().line 477
ChannelControlPaneAbort(HyperView tView, ChannelControlPane tPane)2 statement(s); calls super().line 483

Methods (1)

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

SetNextChannel (nested type, lines 510–549)

class SetNextChannel extends Dispatch

Fields (1)

DeclarationValue / initializerDescriptionSource
ChannelControlPane parentPane= nullNo comment in source; assigned in SetNextChannel().line 512

Constructors (1)

SignatureDescriptionSource
SetNextChannel(ChannelControlPane tPane)2 statement(s); calls super().line 514

Methods (1)

SignatureDescriptionSource
public boolean begin(HyperView tView)4 statement(s); calls updateChannelView().
Overrides Dispatch.begin()
line 518

Inherited members

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

From ServerChannelPane (1 fields, 0 methods)

Fields: portNode

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

instantiation — GetChannelControl.java, line 21

   21  new ChannelControlPane(curView);
Hits--