All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class graphing.applets.SecantGrapher

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

public class SecantGrapher
extends ZoomGrapher
Formula graphing applet to demonstrate approximations to the derivative by secant lines.

See Also:
Grapher

Constructor Index

 o SecantGrapher()

Method Index

 o button(Event)
Handles the actions associated with the various buttons.
 o getAppletInfo()
 o handleEvent(Event)
Handles the checkbox to toggle the display
 o makeControlPanel()
Lays out the buttons that we use in this applet
 o makeGraphWindow()
Returns an instance of SecantWindow, cast to a GraphWindow.

Constructors

 o SecantGrapher
  public SecantGrapher()

Methods

 o getAppletInfo
  public String getAppletInfo()
Overrides:
getAppletInfo in class ZoomGrapher
 o makeGraphWindow
  protected GraphWindow makeGraphWindow()
Returns an instance of SecantWindow, cast to a GraphWindow.

Overrides:
makeGraphWindow in class ZoomGrapher
 o makeControlPanel
  protected Component makeControlPanel()
Lays out the buttons that we use in this applet

Overrides:
makeControlPanel in class ZoomGrapher
 o button
  public boolean button(Event e)
Handles the actions associated with the various buttons. All the buttons used in Grapher appear here too, and are handled by the superclass. The graphing panel is our inherited copy of Grapher.gw, which is a GraphWindow, so this method needs to cast Grapher.gw to an SecantWindow to use the features of that class.

Overrides:
button in class ZoomGrapher
 o handleEvent
  public boolean handleEvent(Event e)
Handles the checkbox to toggle the display

Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index