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

AsteroidsDispatch

HyperView V3.2 — class
version V3.2 class

Summary

An example of and Event Dispatch as the result of clicking on a Gadget. This version

Source file: AsteroidsDispatch.java

Hierarchy

Extends: Dispatch

Implements: none

Referenced HyperView classes

Media files used

Declaration & members

public class AsteroidsDispatch extends Dispatch

Declared in src/com/multiversesocial/hyperview/AsteroidsDispatch.java, lines 9–91. 1 field(s), 1 constructor(s), 1 method(s). Every member has an anchor you can link to (e.g. AsteroidsDispatch.html#<id>).

Fields (1)

DeclarationValue / initializerDescriptionSource
Asteroids asteroids= nullThe actual Asteroids game which extends ViewPane.line 11

Constructors (1)

SignatureDescriptionSource
AsteroidsDispatch(HyperView tView)1 statement(s); calls super().line 13

Methods (1)

SignatureDescriptionSource
public boolean run()13 statement(s); calls asteroids.halt(), curView.setTitle(), curView.setBackImage(), asteroids.start(), curView.addAbortRight() …; creates Asteroids.
Overrides Dispatch.run()
line 18

Inherited members

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

From Dispatch (48 fields, 4 methods)

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)

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

instantiation — ViewMain.java, line 194

  193      // Add the Dispatch to the Gadget
  194  asteroidsDispatchGadget.addDispatch(new AsteroidsDispatch(this)); // Note

Applet hosting

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.

Hits--