All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class graphing.applets.Grapher

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----graphing.applets.Grapher

public class Grapher
extends Applet
General-purpose formula graphing applet. Buttons call up panels to enter functions to be graphed and edit the scale of the graph.

When subclassing do not override init() unless you want to completely change the layout. Override makeGraphWindow() and makeControlPanel() instead.


Variable Index

 o gw
The graphing panel.

Constructor Index

 o Grapher()

Method Index

 o action(Event, Object)
 o button(Event)
All the ACTION_EVENT's generated by instances of Button get handled here.
 o getAppletInfo()
 o init()
Sets up the basic layout of the applet.
 o makeControlPanel()
Make a Component which comprises the controls for the applet.
 o makeGraphWindow()
Return a GraphWindow or one of its subclasses to be used as the graphing panel.

Variables

 o gw
  protected GraphWindow gw
The graphing panel. This is a GraphWindow; and subclasses that use a subclass of GraphWindow need to remember to cast it to the appropriate type.

Constructors

 o Grapher
  public Grapher()

Methods

 o getAppletInfo
  public String getAppletInfo()
Overrides:
getAppletInfo in class Applet
 o init
  public void init()
Sets up the basic layout of the applet. Should not need to be overridden by subclasses.

Overrides:
init in class Applet
 o makeGraphWindow
  protected GraphWindow makeGraphWindow()
Return a GraphWindow or one of its subclasses to be used as the graphing panel.

 o makeControlPanel
  protected Component makeControlPanel()
Make a Component which comprises the controls for the applet. Typically this will be an array of buttons.

 o action
  public boolean action(Event e,
                        Object o)
Overrides:
action in class Component
 o button
  public boolean button(Event e)
All the ACTION_EVENT's generated by instances of Button get handled here.


All Packages  Class Hierarchy  This Package  Previous  Next  Index