All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ChaosDemos.dynamicGraph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ChaosDemos.dynamicGraph

public class dynamicGraph
extends Frame
Stub class for iteration and plotting. To be subclassed by classes yielding implementations of methods.
Provides reference for controls to update calling class.

Version:
15 March 1997
Author:
Michael Cross

Constructor Index

 o dynamicGraph()
Default constructor

Method Index

 o addToGraph(Graphics, Rectangle)
Stub method to allow painting to graph
 o derivs(double[], double, int)
Stub method to return derivatives for ode solver
 o iterate()
Stub method to iterate equations and update graph.
 o respondToButtons(int)
Stub method to respond to buttonControls
 o respondToChoices()
Stub method to respond to choiceControls
 o respondToMouse(double, boolean, double, boolean)
Stub method to respond to mouse event on graph.
 o respondToSliderButtons()
Stub method to respond to buttons in sliderControls
 o respondToSliderText()
Stub method to respond to text boxes in sliderControls
 o respondToText()
Stub method to respond to textControls
 o updateSpeed(int)

Constructors

 o dynamicGraph
 public dynamicGraph()
Default constructor

Methods

 o iterate
 public boolean iterate()
Stub method to iterate equations and update graph.

 o respondToMouse
 public void respondToMouse(double xcoord,
                            boolean xcoordValid,
                            double ycoord,
                            boolean ycoordValid)
Stub method to respond to mouse event on graph.

Parameters:
xcoord - x-position of event
ycoord - y-position of event
xcoordValid - true if x-position valid
ycoordValid - true if y-position valid
 o respondToButtons
 public void respondToButtons(int buttonIndex)
Stub method to respond to buttonControls

Parameters:
buttonIndex - index of button pushed
See Also:
buttonControls
 o respondToText
 public void respondToText()
Stub method to respond to textControls

See Also:
textControls
 o respondToChoices
 public void respondToChoices()
Stub method to respond to choiceControls

See Also:
choiceControls
 o respondToSliderButtons
 public void respondToSliderButtons()
Stub method to respond to buttons in sliderControls

See Also:
sliderControls
 o respondToSliderText
 public void respondToSliderText()
Stub method to respond to text boxes in sliderControls

See Also:
sliderControls
 o derivs
 public double[] derivs(double x[],
                        double t,
                        int n)
Stub method to return derivatives for ode solver

Parameters:
x[] - vector of current value of dependent variables
n - number of dependent variables in array x[]
t - current value of independent variable
Returns:
n compoent vector giving derivatives of dependent variables
 o addToGraph
 public void addToGraph(Graphics g,
                        Rectangle r)
Stub method to allow painting to graph

Parameters:
g - Graphics context
r - Rectangle of data area
 o updateSpeed
 public void updateSpeed(int delay)

All Packages  Class Hierarchy  This Package  Previous  Next  Index