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.
-
gw
- The graphing panel.
-
Grapher()
-
-
action(Event, Object)
-
-
button(Event)
- All the ACTION_EVENT's generated by instances of Button get handled here.
-
getAppletInfo()
-
-
init()
- Sets up the basic layout of the applet.
-
makeControlPanel()
- Make a Component which comprises the controls for the applet.
-
makeGraphWindow()
- Return a GraphWindow or one of its subclasses to be used as the graphing panel.
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.
Grapher
public Grapher()
getAppletInfo
public String getAppletInfo()
- Overrides:
- getAppletInfo in class Applet
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
makeGraphWindow
protected GraphWindow makeGraphWindow()
- Return a GraphWindow or one of its subclasses to be used as the graphing panel.
makeControlPanel
protected Component makeControlPanel()
- Make a Component which comprises the controls for the applet. Typically this will be an array
of buttons.
action
public boolean action(Event e,
Object o)
- Overrides:
- action in class Component
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