Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.Orange
Source: src/com/multiversesocial/hyperview/Orange.java
========== Orange lifecycle methods ========== ========== OrangeStub methods ========== Initialize component base
public class Orange extends Component implements OrangeContext, OrangeStub, Haltable
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
CTrapBridge cTrap | No comment in source; assigned in expunge(); used in start(), halt(). | ||
int flags1 | No comment in source; assigned in setFlags(); used in getFlags(), showFlags(). | ||
int flags2 | No comment in source; not referenced by name in this type’s methods. | ||
OrangeContext orangeContext | No comment in source; assigned in setStub(). | ||
OrangeStub orangeStub | No comment in source; assigned in setStub(); used in getAppletStub(), getCodeBase(), getDocumentBase(), getParameter(), isActive(). | ||
Hashtable streamMap | = new java.util.Hashtable() | No comment in source; assigned in setStream(); used in expunge(), getStream(), getStreamKeys(). |
| Signature | Description | Source |
|---|---|---|
public Orange() | 1 statement(s); calls super(). |
| Signature | Description | Source |
|---|---|---|
static void delay(int tMillis) | 3 statement(s); calls tWaitObject.wait(); creates Object. | |
public void expunge() | 3 statement(s); calls showStatus(), cTrap.expunge(), streamMap.clear(). | |
public AccessibleContext getAccessibleContext() | Returns super.getAccessibleContext(). | |
public OrangeContext getAppletContext() | Returns this. | |
public OrangeStub getAppletStub() | Returns this.orangeStub. | |
public AudioClip getAudioClip(URL url) | 2 statement(s); creates AudioClip. | |
public AudioClip getAudioClip(URL url, String name) | 2 statement(s); calls getAudioClip(); creates URL. | |
public URL getCodeBase() | 2 statement(s); calls orangeStub.getCodeBase(). | |
public Component getComponent(String tString) | 2 statement(s); calls tString.equals(), getName(). | |
public HyperLinkedList getComponentList() | 4 statement(s); calls list.dlStore(); creates HyperLinkedList, Linkable. | |
public URL getDocumentBase() | 2 statement(s); calls orangeStub.getDocumentBase(). | |
public int getFlags() | Returns flags1. | |
public int getID() | Returns System.identityHashCode(this). | |
public Image getImage(URL url) | 2 statement(s); calls Toolkit.getDefaultToolkit().getImage(), Toolkit.getDefaultToolkit(). | |
public Image getImage(URL url, String name) | 2 statement(s); calls Toolkit.getDefaultToolkit().getImage(), Toolkit.getDefaultToolkit(); creates URL. | |
public HyperLinkedList getInputStream(String tString) | Returns new HyperLinkedList(). | |
public Locale getLocale() | Returns super.getLocale(). | |
public Orange getOrange(String name) | 2 statement(s); calls name.equals(), getClass().getName(), getClass(). | |
public OrangeContext getOrangeContext() | Returns this. | |
public Enumeration<Orange> getOranges() | 3 statement(s); calls oranges.add(), oranges.elements(); creates Vector<Orange>. | |
public String getParameter(String name) | 2 statement(s); calls orangeStub.getParameter(). | |
public String[][] getParameterInfo() | Returns new String[0][0]. | |
public Runnable getRunnable() | Returns ()->{
}. | |
public AudioClip getSound(URL url) | Returns getAudioClip(url). | |
public InputStream getStream(String key) | 2 statement(s); calls streamMap.get(). | |
public Iterator<String> getStreamKeys() | 3 statement(s); calls streamMap.keys(), e.hasMoreElements(), keys.add(), e.nextElement(), keys.iterator(); creates Vector<String>. | |
public Thread getThread() | Returns Thread.currentThread(). | |
public void halt() | 2 statement(s); calls showStatus(), cTrap.halt(). | |
public void init() | 2 statement(s); calls showStatus(), initComponentBase(). | |
public void initComponentBase() | Initialize component base | |
public boolean isActive() | 2 statement(s); calls orangeStub.isActive(). | |
public static AudioClip newAudioClip(URL url) | 2 statement(s); creates AudioClip. | |
public void orangeResize(int width, int height) | 1 statement(s); calls resize(). | |
public void play(URL url) | 2 statement(s); calls getAudioClip(), clip.play(). | |
public void play(URL url, String name) | 2 statement(s); calls getAudioClip(), clip.play(). | |
public void setFlags(int tInt) | Sets this.flags1 = tInt. | |
public void setInputStream(String key, InputStream tStream) throws IOException | 1 statement(s); calls setStream(). | |
public void setSize(Dimension d) | Keep these (or add if not present): | |
public void setSize(int width, int height) | 1 statement(s); calls super.setSize(). | |
public void setStream(String key, InputStream stream) throws IOException | 3 statement(s); calls streamMap.remove(), streamMap.put(); creates IOException, java.util.Hashtable. | |
public void setStub(OrangeStub stub) | 2 statement(s); calls stub.getOrangeContext(). | |
public void showDocument(URL url) | 1 statement(s); calls showDocument(). | |
public void showDocument(URL url, String target) | 3 statement(s); calls showStatus(), java.awt.Desktop.isDesktopSupported(), java.awt.Desktop.getDesktop(), desktop.isSupported(), desktop.browse() …. | |
public void showDocument(URL tURL, String tBMLFileName, int tFlags) | 2 statement(s); calls showStatus(), Integer.toHexString(), showDocument(). | |
public void showFlags() | 1 statement(s); calls Integer.toHexString(). | |
public void showStatus(String msg) | 1 statement(s). | |
public void start() | 2 statement(s); calls showStatus(), cTrap.start(). |
subclass — HyperView.java, line 24
24 public abstract class HyperView extends Orange implements Runnable, 25 HyperConstants,ConnectionConstants,GetStringConstants,MenuConstants, 26 KeyboardConstants,AnimationConstants,TextConstants,SplineConstants,ThreadReport,Externalizable, 27 MouseWheelListener,MessagePortConstants,Scrollable,FlagBit
declaration — HyperFrame.java, line 26
26 Orange orange;
declaration — SoundClip.java, line 10
10 public SoundClip(String name, Orange orange)
11 {
The applet-like base class (replaces java.applet.Applet): HyperView extends it, so a ported applet that extends ViewMain keeps init()/start()/halt()/expunge(), getParameter(), getCodeBase(), getDocumentBase(), getImage() and getAudioClip(). See the Applet Migration Guide.