Class pmr.simplegraph.SimpleFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.simplegraph.SimpleFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----pmr.simplegraph.SimpleFrame

public class SimpleFrame
extends Frame
A simple Frame with optional menu; might contain an Applet or Panel

Author:
(C) P. Murray-Rust, 1996

Constructor Index

 o SimpleFrame(String)
construct a SimpleFrame.

Method Index

 o action(Event, Object)
This is messy because Java doesn't have a callback mechanism - still under development...
 o addMenuBar()
add a menu bar and display it.
 o getFontMetrics()
 o handleEvent(Event)
 o setExitOnAllKilled(boolean)
configure application so that when all SimpleFrames are killed the applications exits

Constructors

 o SimpleFrame
  public SimpleFrame(String title)
construct a SimpleFrame.

Methods

 o addMenuBar
  public MenuBar addMenuBar()
add a menu bar and display it. The default has "File" and "Help" menus but minimal menu items in them (normally File|Quit and Help|aboutCML. These can be manipulated with the tools in Util (e.g. getMenu)
 o setExitOnAllKilled
  public static void setExitOnAllKilled(boolean e)
configure application so that when all SimpleFrames are killed the applications exits
 o action
  public boolean action(Event e,
                        Object arg)
This is messy because Java doesn't have a callback mechanism - still under development...
Overrides:
action in class Component
 o handleEvent
  public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o getFontMetrics
  public FontMetrics getFontMetrics()

All Packages  Class Hierarchy  This Package  Previous  Next  Index