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

RadioButton

HyperView V3.2 — class
version V3.2 class

Summary

RadioGroup parentGroup = null;

Source file: RadioButton.java

Hierarchy

Extends: Gadget

Implements: RadioButtonConstants

Referenced HyperView classes

Media files used

Declaration & members

public class RadioButton extends Gadget implements RadioButtonConstants

Declared in src/com/multiversesocial/hyperview/RadioButton.java, lines 5–203. 19 field(s), 7 constructor(s), 6 method(s). Every member has an anchor you can link to (e.g. RadioButton.html#<id>).

Fields (19)

DeclarationValue / initializerDescriptionSource
int buttonHeight= 11No comment in source; assigned in paint(); used in RadioButton().line 22
int buttonWidth= 11No comment in source; assigned in paint().line 21
int buttonX= 0No comment in source; assigned in RadioButton(), paint().line 17
int buttonX2= 0No comment in source; assigned in RadioButton(), paint().line 19
int buttonY= 0No comment in source; assigned in RadioButton(), paint().line 18
int buttonY2= 0No comment in source; assigned in RadioButton(), paint().line 20
String name= nullNo comment in source; assigned in RadioButton().line 14
int num= 0No comment in source; not referenced by name in this type’s methods.line 10
int radioFlags= 0No comment in source; assigned in RadioButton(), setSelected(), deSelect(), onClick(); used in paint(), isSelected().line 13
int sourceX= 76No comment in source; assigned in paint().line 23
int sourceX2= sourceX + buttonWidthNo comment in source; assigned in paint().line 24
int sourceY= 8No comment in source; assigned in paint().line 25
int sourceY2= sourceY + buttonHeightNo comment in source; assigned in paint().line 26
int stringX= 0No comment in source; assigned in RadioButton(), paint().line 15
int stringY= 0No comment in source; assigned in RadioButton(), paint().line 16
Color textColor= Color.whiteNo comment in source; name appears in 10 other source file(s): BasicPane, HyperBoolPop, HyperEditBuffer, HyperFileList ….line 8
byte textPosition= STRING_LEFTNo comment in source; assigned in RadioButton().line 12
int tint= 0No comment in source; not referenced by name in this type’s methods.line 9
int totalButtons= 0No comment in source; name appears in 1 other source file(s): RadioGroup.line 11

Constructors (7)

SignatureDescriptionSource
RadioButton()1 statement(s); calls super().line 28
RadioButton(String tName)1 statement(s); calls this(), HyperView.getCurView().line 33
RadioButton(HyperView tView, String tName)1 statement(s); calls this().line 38
RadioButton(HyperView tView, String tName, int tFlags)1 statement(s); calls this().line 43
RadioButton(HyperView tView, String tName, int tFlags, byte tTextPosition)1 statement(s); calls this().line 48
RadioButton(HyperView tView, int tX, int tY, String tName)1 statement(s); calls this().line 54
RadioButton(HyperView tView, int tX, int tY, String tName, int tFlags, byte tTextPosition)30 statement(s); calls super(), curView.screenGraphics.getFontMetrics(conFont).stringWidth(), curView.screenGraphics.getFontMetrics(), curView.screenGraphics.getFontMetrics(conFont).getHeight(), makeBitMap() ….line 60

Methods (6)

SignatureDescriptionSource
public void deSelect()2 statement(s); calls paint().line 186
public boolean isSelected()Returns ((radioFlags & RB_SELECTED) != 0) ? true : false.line 192
public void makeBitMap()15 statement(s); calls curView.createImage(), gobPic.getGraphics(), graphics.setFont(), curView.color[9].darker(), tc1.darker() ….line 119
public void onClick()2 statement(s); calls paint().
Overrides Gob.onClick()
line 197
public void paint(Graphics g)1 statement(s); calls g.drawImage(), curView.delay().line 144
public void setSelected()2 statement(s); calls paint().line 179

Inherited members

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

From Gadget (33 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, 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 (75 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, 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 (6 fields, 1 methods)

Fields: attachment, index, linkFlags, 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 — Externalizer.java, line 2655

 2654     //
 2655  jSource  = new RadioButton(tView,6,48," Java  source ");

declaration — PortControlPane.java, line 25

   25  RadioButton runServerAtStartRadioButton;
Hits--