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

ServerChannelPane

HyperView V3.2 — class
version V3.2 class

Summary

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

Source file: ServerChannelPane.java

Hierarchy

Extends: BasicPane

Implements: ChannelView

Referenced HyperView classes

Media files used

Declaration & members

public class ServerChannelPane extends BasicPane implements ChannelView

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

Fields (29)

DeclarationValue / initializerDescriptionSource
static HyperChannel[] channel<Channel Info> Channel data is linked via-> HyperChannelRegistry.synch()line 31
static int channelID= 0No comment in source; name appears in 2 other source file(s): ChannelControlPane, HyperChannelRegistry.line 33
static HyperLinkedList[] channelInputVectorListNo comment in source; name appears in 3 other source file(s): ChannelControlPane, HyperChannelRegistry, HyperNBInputHandler.line 35
static HyperLinkedList channelIOListNo comment in source; name appears in 5 other source file(s): ChannelControlPane, HyperChannel, HyperChannelRegistry, HyperNBInputHandler ….line 37
static HyperLinkedList[] channelOutputVectorListNo comment in source; name appears in 3 other source file(s): ChannelControlPane, HyperChannelRegistry, HyperNBOutputHandler.line 36
HyperChannelRegistry channelRegistry= nullNo comment in source; assigned in ServerChannelPane().line 27
volatile int currentChannel= -1No comment in source; used in updateChannelView().line 28
GetString dataGetStringNo comment in source; assigned in ServerChannelPane().line 44
static boolean[] impendingChannelIONo comment in source; name appears in 4 other source file(s): ChannelControlPane, HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler.line 32
volatile boolean[] inChannelNo comment in source; assigned in ServerChannelPane(), cleanUp(); used in updateChannelView(), inChannel().line 41
Color ioPaneColor0= nullNo comment in source; assigned in ServerChannelPane(); used in updateChannelView().line 11
Color ioPaneColor1= nullNo comment in source; assigned in ServerChannelPane(); used in updateChannelView().line 12
Color ioPaneColor2= nullNo comment in source; assigned in ServerChannelPane(); used in updateChannelView().line 13
int ioPaneHeight= 0No comment in source; assigned in ServerChannelPane(); 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 ServerChannelPane().line 46
String lastIOString= nullNo comment in source; assigned in updateChannelView().line 10
ServerChannelPane.LeaveChannelDispatch leaveChannelDispatchNo comment in source; name appears in 1 other source file(s): ChannelControlPane.line 51
Gadget leaveChannelGadgetNo comment in source; assigned in ServerChannelPane().line 47
ServerChannelPane.NewChannelDispatch newChannelDispatchNo comment in source; assigned in ServerChannelPane().line 50
Gadget newChannelGadgetNo comment in source; assigned in ServerChannelPane().line 45
Gadget nextChannelGadgetNo comment in source; assigned in ServerChannelPane().line 49
PortNode portNodeNo comment in source; used in getNode().line 25
Gadget sendChannelGadgetNo comment in source; assigned in ServerChannelPane().line 48
HyperChannelNodeLink[] serverChannelJoinedListNo comment in source; assigned in ServerChannelPane().line 43
static int totalChannels= 0No comment in source; assigned in updateChannelView(); name appears in 5 other source file(s): ChannelControlPane, HyperChannel, HyperChannelRegistry, HyperNBInputHandler ….line 34

Constructors (2)

SignatureDescriptionSource
ServerChannelPane(HyperView tView)2 statement(s); calls super(), ioPaneColor1.brighter(), ioPaneColor1.darker().darker(), ioPaneColor1.darker(), move() …; creates Color, GetString, Gadget.line 53
ServerChannelPane(HyperView tView, int tInt, int tInt2)1 statement(s); calls this().line 133

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 Gadget.cleanUp()
line 252
public HyperConnectionNode getNode(HyperChannel tChannel)Returns portNode.connectionHandler.getNode(tChannel).line 269
public synchronized boolean inChannel(HyperChannel tChannel)Returns inChannel[tChannel.id].line 245
public int updateChannelView(String tChannelName, Graphics tGraphics, ByteBuffer tBuffer)37 statement(s); calls tGraphics.setColor(), tGraphics.fillRect(), tGraphics.drawLine(), tGraphics.drawString(), tBuffer.hasRemaining() ….
Implements ChannelView.updateChannelView()
line 138

Nested & additional classes

NewChannelDispatch (nested type, lines 276–334)

class NewChannelDispatch extends Dispatch

Fields (0)

None declared.

Constructors (1)

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

Methods (1)

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

JoinChannelDispatch (nested type, lines 336–402)

class JoinChannelDispatch extends Dispatch

Fields (1)

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

Constructors (1)

SignatureDescriptionSource
JoinChannelDispatch(ServerChannelPane tPane)2 statement(s); calls super().line 340

Methods (1)

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

LeaveChannelDispatch (nested type, lines 404–441)

class LeaveChannelDispatch extends Dispatch

Fields (1)

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

Constructors (1)

SignatureDescriptionSource
LeaveChannelDispatch(ServerChannelPane tPane)2 statement(s); calls super().line 408

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 413

SendChannelDispatch (nested type, lines 443–482)

class SendChannelDispatch extends Dispatch

Fields (0)

None declared.

Constructors (1)

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

Methods (1)

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

ServerChannelPaneAbort (nested type, lines 484–518)

class ServerChannelPaneAbort extends Abort

Fields (1)

DeclarationValue / initializerDescriptionSource
ServerChannelPane parentPane= nullNo comment in source; assigned in ServerChannelPaneAbort(), begin().line 486

Constructors (2)

SignatureDescriptionSource
ServerChannelPaneAbort(ServerChannelPane tPane)2 statement(s); calls super().line 487
ServerChannelPaneAbort(HyperView tView, ServerChannelPane tPane)2 statement(s); calls super().line 493

Methods (1)

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

SetNextChannel (nested type, lines 520–559)

class SetNextChannel extends Dispatch

Fields (1)

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

Constructors (1)

SignatureDescriptionSource
SetNextChannel(ServerChannelPane tPane)2 statement(s); calls super().line 524

Methods (1)

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

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, 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 — GetChannels.java, line 22

   22  new ServerChannelPane(curView);  // Add Pane to View.

subclass — ChannelControlPane.java, line 8

    8  public class ChannelControlPane extends ServerChannelPane implements ChannelView
    9  {

declaration — HyperChannel.java, line 405

  404     // Join for ChannelView  interface
  405  public void join(ServerChannelPane tPane)
  406  {
Hits--