Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.AsteroidsDispatch
Source: src/com/multiversesocial/hyperview/AsteroidsDispatch.java
An example of and Event Dispatch as the result of clicking on a Gadget. This version
hdf.gifpublic class AsteroidsDispatch extends Dispatch
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
Asteroids asteroids | = null | The actual Asteroids game which extends ViewPane. |
| Signature | Description | Source |
|---|---|---|
AsteroidsDispatch(HyperView tView) | 1 statement(s); calls super(). |
| Signature | Description | Source |
|---|---|---|
public boolean run() | 13 statement(s); calls asteroids.halt(), curView.setTitle(), curView.setBackImage(), asteroids.start(), curView.addAbortRight() …; creates Asteroids. |
Fields: backImage, backImageName, bGPen, clickedGad, curView, cz, fGPen, flags, flags2, focus, gads, GetStringFlag, getStringList, gob, grabbedGad, ID, menuBase, name, noname, num, retVal, savedFlags, sz, tbyte, textBGPen, textFadedColor, textFadeFrame, textFGPen, textFlag, textFont, textLinger, textOrigin, textRestart, textStr, textTimer, textX, textY, tGad, title, titleBltGraphics, titleBltImage, titleGraphics, titleImage, totalGads, totalGetStrings, totalGobs, totalViewStrings, tz
Methods: begin(HyperView), cleanUp(), setID(int), setView(HyperView)
instantiation — ViewMain.java, line 194
193 // Add the Dispatch to the Gadget 194 asteroidsDispatchGadget.addDispatch(new AsteroidsDispatch(this)); // Note
The launcher pattern for a ported applet’s pane: create, start, wait for the first frame, show, give keyboard focus, runView(), halt(). See the Applet Migration Guide.