Class DisplayList
java.lang.Object
|
+----DisplayList
- public class DisplayList
- extends Object
- implements Parsable
A list of displays that are each a separate window
This code is (c) 1996 Leemon Baird
<leemon@cs.cmu.edu>,
http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely.
If the code is modified, please state so in the comments.
- Version:
- 1.01, 24 July 96
- Author:
- Leemon Baird
-
displays
- The list of displays
-
embed
- Is each display embedded in the HTML page?
-
DisplayList()
- constructor that does nothing
-
DisplayList(int[], int[], int[], int[], Boolean[], Display[], Applet)
- This constructor takes the same parameters that parse() parses, and
initializes this object just as if it had been created by parsing instead.
-
BNF(int)
-
-
destroy()
- when the simulator is destroyed, it asks the DisplayList to
dispose of every Display's window.
-
getParameters(int)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
-
getWatchManager()
- Get the WatchManager being used
-
initialize(int)
- Initialize, either partially or completely.
-
parse(Parser, int)
- Parse the input file to get the parameters for this object.
-
setWatchManager(WatchManager, String)
- Set the WatchManager, and create the window
-
unparse(Unparser, int)
- Output a description of this object that can be parsed with parse().
displays
public Display displays[]
- The list of displays
embed
public Boolean embed[]
- Is each display embedded in the HTML page?
DisplayList
public DisplayList()
- constructor that does nothing
DisplayList
public DisplayList(int x[],
int y[],
int width[],
int height[],
Boolean embedDisp[],
Display displayList[],
Applet applet)
- This constructor takes the same parameters that parse() parses, and
initializes this object just as if it had been created by parsing instead.
All the arrays should be the same length. They give the (x,y) coordinates
of the upper-left corner of each display, its width and height,
whether it should be embedded, and the Display it contains. The last
parameter is the applet that owns this display list.
getParameters
public Object[][] getParameters(int lang)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
- See Also:
- getParameters
BNF
public String BNF(int lang)
unparse
public void unparse(Unparser u,
int lang)
- Output a description of this object that can be parsed with parse().
parse
public Object parse(Parser p,
int lang) throws ParserException
- Parse the input file to get the parameters for this object.
- Throws: ParserException
- parser didn't find the required token
getWatchManager
public WatchManager getWatchManager()
- Get the WatchManager being used
setWatchManager
public void setWatchManager(WatchManager wm,
String name)
- Set the WatchManager, and create the window
destroy
public void destroy()
- when the simulator is destroyed, it asks the DisplayList to
dispose of every Display's window.
initialize
public void initialize(int level)
- Initialize, either partially or completely.
- See Also:
- initialize