Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperFrame
Source: src/com/multiversesocial/hyperview/HyperFrame.java
(C) 2000 Tony Swain All rights reserved. Tony's simple license you are free to use this for any legal purpose.
public class HyperFrame extends JFrame implements OrangeStub, OrangeContext, Runnable, AWTEventListener
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
private String[] args | No comment in source; assigned in makeOrange(); used in HyperFrame(), parseArgs(), eventDispatched(). | ||
int contextFlags | = 0 | No comment in source; assigned in setFlags(); used in getFlags(). | |
static String fileSeparator | = System.getProperty("file.separator") | No comment in source; assigned in HyperFrame(); name appears in 8 other source file(s): Directory, Enfora2218WhackButton, Externalizer, HyperFileList …. | |
int height | No comment in source; used in makeOrange(), eventDispatched(). | ||
Thread hyperFrameTask | No comment in source; assigned in start(), halt(); used in run(). | ||
int id | No comment in source; assigned in HyperFrame(); used in getID(). | ||
static int instances | = 0 | No comment in source; assigned in makeOrange(), eventDispatched(). | |
static long lastRun | = 0 | No comment in source; assigned in eventDispatched(); name appears in 12 other source file(s): AWTEventManager, CollisionManager, HyperConnectionHandler, HyperExternalConnectionHandler …. | |
Menu menu | No comment in source; not referenced by name in this type’s methods. | ||
MenuBar menuBar | No comment in source; not referenced by name in this type’s methods. | ||
String name | No comment in source; assigned in HyperFrame(), makeOrange(); used in getParameter(), getAudioClip(), getImage(), play(), getOrange(). | ||
static long now | = 0 | No comment in source; assigned in eventDispatched(). | |
Orange orange | No comment in source; assigned in makeOrange(); used in init(), eventDispatched(), run(), orangeResize(), initComponentBase() …. | ||
Dimension orangeSize | No comment in source; assigned in eventDispatched(). | ||
static final String PARAMETER_PROPERTY_PREFIX | = "parameter." | No comment in source; used in parseArgs(), getParameter(). | |
boolean peerMenuEna | = false | No comment in source; used in makeOrange(). | |
Properties properties | No comment in source; assigned in makeOrange(). | ||
String startDir | No comment in source; assigned in HyperFrame(). | ||
Hashtable streamMap | = new java.util.Hashtable() | No comment in source; assigned in setStream(); used in expunge(), getStream(). | |
int width | No comment in source; used in makeOrange(), eventDispatched(). |
| Signature | Description | Source |
|---|---|---|
public HyperFrame(STDInputHandler tStdIn, int tID, String[] args, int tWidth, int tHeight) | 6 statement(s); calls super(), System.getProperty(), makeOrange(); creates ServerViewMain. | |
public HyperFrame(Orange tOrange, int tID, String[] args, int tWidth, int tHeight) | 5 statement(s); calls super(), System.getProperty(), makeOrange(). | |
public HyperFrame(Object tObject, int tID, Orange tOrange, String[] args) | 7 statement(s); calls super(), System.getProperty(), setTitle(), makeOrange(). | |
public HyperFrame(Object tObject, Orange tOrange, int tID, int tWidth, int tHeight) | 7 statement(s); calls super(), System.getProperty(), setTitle(), makeOrange(). | |
public HyperFrame(Orange tOrange, int tID, String[] args) | 6 statement(s); calls super(), System.getProperty(), setTitle(), makeOrange(). | |
public HyperFrame(Orange tOrange, int tID, int tWidth, int tHeight) | 5 statement(s); calls super(), System.getProperty(), setTitle(), makeOrange(). |
| Signature | Description | Source |
|---|---|---|
static { … } | Implicit default constructor generated by the compiler (not written in the source). | |
public void eventDispatched(AWTEvent tAWTEvent) | 8 statement(s); calls tAWTEvent.getID(), mouse.notifyAll(), System.currentTimeMillis(), keyboard.notifyAll(), ((HyperView)orange).mouseWheelMoved() …; creates Dimension, HyperFrame. | |
public void expunge() | 3 statement(s); calls showStatus(), orange.expunge(), streamMap.clear(). | |
public AudioClip getAudioClip(URL tURL) | 2 statement(s); calls orange.getAudioClip(). | |
public AudioClip getAudioClip(URL url, String name) | 2 statement(s); calls orange.getAudioClip(). | |
public URL getCodeBase() | 2 statement(s); calls System.getProperty(), e.printStackTrace(); creates URL. | |
public Component getComponent(String tString) | Returns null. | |
public HyperLinkedList getComponentList() | Returns null. | |
public URL getDocumentBase() | In HyperFrame.java | |
public int getFlags() | 2 statement(s); calls orange.getFlags(). | |
public int getID() | Returns id. | |
public Image getImage(URL tURL) | Returns Toolkit.getDefaultToolkit().getImage(tURL). | |
public Image getImage(URL url, String name) | 1 statement(s); calls Toolkit.getDefaultToolkit().getImage(), Toolkit.getDefaultToolkit(); creates URL. | |
public HyperLinkedList getInputStream(String tString) | Returns null. | |
public Orange getOrange(String name) | 2 statement(s); calls name.equals(). | |
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) | Returns System.getProperty(PARAMETER_PROPERTY_PREFIX + name.toLowerCase()). | |
public String[][] getParameterInfo() | Returns new String[0][0]. | |
public Runnable getRunnable() | Returns null. | |
public AudioClip getSound(URL url) | 2 statement(s); calls orange.getAudioClip(). | |
public InputStream getStream(String key) | 3 statement(s); calls streamMap.containsKey(), streamMap.get(), orange.getStream(). | |
public Iterator<String> getStreamKeys() | 2 statement(s); calls keys.iterator(); creates Vector<String>. | |
public Thread getThread() | Returns Thread.currentThread(). | |
public synchronized void halt() | 5 statement(s); calls tThread.interrupt(), Toolkit.getDefaultToolkit().removeAWTEventListener(), Toolkit.getDefaultToolkit(). | |
public void init() | Add this method to HyperFrame.java (OrangeContext requires it) | |
public void initComponentBase() | 2 statement(s); calls showStatus(), orange.initComponentBase(). | |
public boolean isActive() | Returns true. | |
private void makeOrange(STDInputHandler tHandler, Orange tOrange, int tID, String[] tArgs, int tWidth, int tHeight) | 38 statement(s); calls tOrange.setStub(), orange.getClass().getName(), orange.getClass(), System.getProperties(), properties.put() …; creates MenuBar, Menu, MenuItem. | |
public void orangeResize(int tWidth, int tHeight) | 1 statement(s); calls orange.setSize(). | |
private static void parseArgs(String[] args, Properties tProperties) | 1 statement(s); calls arg.indexOf(), tProperties.put(), arg.toLowerCase(), arg.substring(0, ind).toLowerCase(), arg.substring(). | |
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(). | |
protected void processEvent(AWTEvent evt) | 1 statement(s). | |
public void run() | 14 statement(s); calls Thread.currentThread(), getToolkit().getSystemEventQueue(), getToolkit(), eventQue.peekEvent(), eventQue.getNextEvent() …. | |
public void setFlags(int tInt) | 2 statement(s); calls orange.setFlags(). | |
public void setInputStream(String key, InputStream tStream) throws IOException | 1 statement(s); calls setStream(). | |
public void setStream(String key, InputStream stream) throws IOException | 4 statement(s); calls streamMap.remove(), streamMap.put(), orange.setStream(); creates IOException, java.util.Hashtable. | |
public void setStub(OrangeStub stub) | 1 statement(s); calls orange.setStub(). | |
public void showDocument(URL url) | 1 statement(s); calls showDocument(). | |
public void showDocument(URL url, String target) | 4 statement(s); calls showStatus(), orange.showDocument(), java.awt.Desktop.isDesktopSupported(), java.awt.Desktop.getDesktop(), desktop.isSupported() …. | |
public void showDocument(URL tURL, String tBMLFileName, int tFlags) | 2 statement(s); calls showStatus(), Integer.toHexString(), orange.showDocument(), showDocument(). | |
public void showFlags() | 1 statement(s); calls showStatus(), Integer.toHexString(), getFlags(). | |
public void showStatus(String tStatus) | 2 statement(s); calls tStatus.endsWith(). | |
public synchronized void start() | 2 statement(s); calls hyperFrameTask.start(); creates Thread. |
instantiation — HyperView.java, line 6726
6726 new HyperFrame( viewMain, tID,(String[])null, 640, 480 );
The window and AppletStub replacement for a ported applet (which extends ViewMain). It calls setStub(), init() and start(), and its eventDispatched() feeds mouse events to HyperMouse and key events to HyperKeyboard (lines 187–293). See the Applet Migration Guide.