Class Zarbiff
Class Zarbiff
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----Zarbiff
-
public class
Zarbiff
-
extends Frame
Main program which is executed to run ZARBIFF.
The static Main method is where control actually begins. This
method creates an actual Zarbiff object. This object is the control
panel. It contains the menus and buttons. All events eventually reach
the control panel and are handled here unless they are caught by one
of the children.
-
Zarbiff()
-
-
activateWindow(GraphWindow)
-
null for none active
-
clipboard()
-
Get the graph which is stored in the clipboard.
-
getfilter(String)
-
Get a filter from a file.
-
getpict(String)
-
Load an image from a file.
-
handleEvent(Event)
-
Main event-handling method.
-
initToolbar()
-
initToolbar must be called to set up the toolbar
at some point after the main window is set up so image loading
works.
-
keyDown(Event, int)
-
Handle a key down event.
-
main(String[])
-
Kind of like C.
-
newWindow()
-
Create a new document window.
-
newWindow(GraphInterface, String)
-
Create a new document window to view the already existing graph g.
-
restoreWindow(GraphWindow)
-
-
setLocalDir(String)
-
Set the directory where the user's local .zarbiff file and custom
filters reside.
-
setclipboard(GraphInterface)
-
Set the graph which is stored in the clipboard.
Zarbiff
public Zarbiff()
clipboard
public GraphInterface clipboard()
-
Get the graph which is stored in the clipboard.
setclipboard
public void setclipboard(GraphInterface g)
-
Set the graph which is stored in the clipboard.
keyDown
public boolean keyDown(Event evt,
int key)
-
Handle a key down event. Checks for special keys associated with
the non-cusomizable menus. Otherwise looks up a filter to run in
the keyboard table.
-
Overrides:
-
keyDown in class Component
handleEvent
public boolean handleEvent(Event evt)
-
Main event-handling method. Handles menus, and window
selection/deletion.
-
Overrides:
-
handleEvent in class Component
restoreWindow
public void restoreWindow(GraphWindow _gw)
activateWindow
public void activateWindow(GraphWindow _gw)
-
null for none active
newWindow
public GraphWindow newWindow()
-
Create a new document window.
newWindow
public GraphWindow newWindow(GraphInterface g,
String title)
-
Create a new document window to view the already existing graph g.
getpict
public Image getpict(String filename)
-
Load an image from a file. Must be in the frame so the loading
routines know where the image is destined to be displayed.
getfilter
public Filter getfilter(String filename)
-
Get a filter from a file.
setLocalDir
public void setLocalDir(String dir)
-
Set the directory where the user's local .zarbiff file and custom
filters reside.
initToolbar
public void initToolbar()
-
initToolbar must be called to set up the toolbar
at some point after the main window is set up so image loading
works.
main
public static void main(String args[])
-
Kind of like C. This is the method that executes when the user types
`java Zarbiff someargument'. If they include an argument this is given
to this method in the args[] array.