Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperMenu
Source: src/com/multiversesocial/hyperview/HyperMenu.java
Add mutual exclusion logic A stub to hold the Item Strings (allocated later) Menu Pane is the area inside which the Text Filed items are.
public class HyperMenu extends Gadget implements MenuConstants
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
int borderWidth | = 4 | No comment in source; used in HyperMenu(). | |
int curFont | = 2 | Tod: remove implicit values and move to constuctor | |
int curItem | = -1 | Which MenuItem Mouse is over (if) | |
HyperView curView | No comment in source; assigned in HyperMenu(), destroy(); used in setExcludeBit(), addMenuItem(), deleteMenuItem(), setExcludeMask(), unSetExcludeMask() …. | ||
int[] exclude | = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,… | No comment in source; assigned in setExcludeBit(), setExcludeMask(), unSetExcludeMask(). | |
String[] excludeText | No comment in source; assigned in deleteMenuItem(). | ||
int ID | = 0 | A stub to hold the Item Strings (allocated later) | |
int[] itemFlags | = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,… | No comment in source; name appears in 1 other source file(s): HyperSelectItem. | |
Font itemFont | The Font for MenuItems | ||
int itemHeight | = 12 | Maximum string becomes tring Width for all | |
String[] itemText | = new String[32] | No comment in source; assigned in HyperMenu(), addMenuItem(), deleteMenuItem(). | |
int itemTextXOff | = 3 | No comment in source; used in HyperMenu(). | |
int itemTextYOff | = 18 | No comment in source; assigned in HyperMenu(). | |
int itemWidth | = 0 | Width in pixels of the ItemString | |
int maxTextWidth | = 0 | No comment in source; assigned in HyperMenu(). | |
int maxWidth | = 0 | The Maximum Filed width (Becomes MenuPanel Size) | |
Dispatch[] menuDispatch | = new Dispatch[MAX_MENU_ITEMS] | No comment in source; assigned in setDispatchBlock(), setDispatch(). | |
Gadget[] menuGads | = new Gadget[MAX_GADGETS] | No comment in source; not referenced by name in this type’s methods. | |
int menuPaneHeight | No comment in source; assigned in HyperMenu(). | ||
int menuPaneWidth | No comment in source; assigned in HyperMenu(). | ||
int menuPaneX | Menu Pane is the area inside which the Text Filed items are. While the Mouse is in the MenuPane items can be selected. | ||
int menuPaneX2 | No comment in source; assigned in HyperMenu(). | ||
int menuPaneY | No comment in source; assigned in HyperMenu(). | ||
int menuPaneY2 | No comment in source; assigned in HyperMenu(). | ||
Color[] palette | No comment in source; assigned in HyperMenu(). | ||
Graphics screenGraphics | No comment in source; assigned in HyperMenu(), destroy(). | ||
String[] selectText | No comment in source; assigned in deleteMenuItem(). | ||
String[] shortCutKey | For KeyBoard shortcut | ||
HyperMenu[] subMenu | No comment in source; not referenced by name in this type’s methods. | ||
int subMenuFlag | = 0 | 32 Bits 1 for each Menu item (32 Max) | |
Font titleFont | The Font for hyperMenu(); Title | ||
int titleHeight | = 0 | No comment in source; assigned in HyperMenu(). | |
int titleLength | = 0 | width/height of Title String in Pixels | |
int titleWidth | = 0 | No comment in source; assigned in HyperMenu(). | |
int totalItems | = 0 | How many Item Fields are in Menu | |
static int totalMenus | = 0 | ie: this + any SubMenu | |
int zoomDepth | = 1 | Yup, Im going to make the hyperMenus() Zoom in. | |
int zoomStep | = 1 | Should be a nice touch. |
| Signature | Description | Source |
|---|---|---|
HyperMenu() | 1 statement(s); calls super(). | |
HyperMenu(HyperView tView, String tName, String[] itemStrings, int tFlags) | 100 statement(s); calls super(), tName.length(), screenGraphics.getFontMetrics(titleFont).stringWidth(), screenGraphics.getFontMetrics(), screenGraphics.getFontMetrics(titleFont).getHeight() …; creates Color. |
| Signature | Description | Source |
|---|---|---|
static { … } | Implicit default constructor generated by the compiler (not written in the source). | |
public void addMenuItem(String tStr, int tNum) | 1 statement(s); calls this.curView.setMenu(), curView.errOut(). | |
public void deleteMenuItem(int tNum) | 1 statement(s); calls curView.setMenu(), this.curView.errOut(). | |
public void destroy() | 2 statement(s). | |
public int setDispatch(Dispatch d, int tNum) | 2 statement(s); calls curView.statusText(). | |
public void setDispatchBlock(Dispatch[] D) | Sets this.menuDispatch = D. | |
public void setExcludeBit(int tNum, int BitNumber) | 1 statement(s); calls curView.errOut(). | |
public void setExcludeMask(int tNum, int bitMask) | 3 statement(s); calls curView.errOut(). | |
public void unSetExcludeMask(int tNum, int bitMask) | 2 statement(s); calls this.curView.errOut(). |
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()
Fields: asynchGraphics1, asynchGraphics2, asynchImage1, asynchImage2, attachedGob, attachedIndex, backGround, bgMemoryImageSource, bGPen, bottomMax, clickX, clickY, collisionClassMask, curAttached, currentZIndex, 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()
Fields: attachment, index, linkFlags, name, next, parentList, prev
Methods: inList()
instantiation — HyperView.java, line 878
878 menuBase = new HyperMenu(this," HyperMenu() ",menuOpts,0);
declaration — Dispatch.java, line 71
71 HyperMenu menuBase;
instantiation — SplineEditPane.java, line 40
40 HyperMenu tMenu = new HyperMenu(curView," Spline Menu ",splineMenuOpts,0);