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
-
dynamicGraph()
- Default constructor
-
addToGraph(Graphics, Rectangle)
- Stub method to allow painting to graph
-
derivs(double[], double, int)
- Stub method to return derivatives for ode solver
-
iterate()
- Stub method to iterate equations and update graph.
-
respondToButtons(int)
- Stub method to respond to buttonControls
-
respondToChoices()
- Stub method to respond to choiceControls
-
respondToMouse(double, boolean, double, boolean)
- Stub method to respond to mouse event on graph.
-
respondToSliderButtons()
- Stub method to respond to buttons in sliderControls
-
respondToSliderText()
- Stub method to respond to text boxes in sliderControls
-
respondToText()
- Stub method to respond to textControls
-
updateSpeed(int)
-
dynamicGraph
public dynamicGraph()
- Default constructor
iterate
public boolean iterate()
- Stub method to iterate equations and update graph.
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
respondToButtons
public void respondToButtons(int buttonIndex)
- Stub method to respond to buttonControls
- Parameters:
- buttonIndex - index of button pushed
- See Also:
- buttonControls
respondToText
public void respondToText()
- Stub method to respond to textControls
- See Also:
- textControls
respondToChoices
public void respondToChoices()
- Stub method to respond to choiceControls
- See Also:
- choiceControls
respondToSliderButtons
public void respondToSliderButtons()
- Stub method to respond to buttons in sliderControls
- See Also:
- sliderControls
respondToSliderText
public void respondToSliderText()
- Stub method to respond to text boxes in sliderControls
- See Also:
- sliderControls
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
addToGraph
public void addToGraph(Graphics g,
Rectangle r)
- Stub method to allow painting to graph
- Parameters:
- g - Graphics context
- r - Rectangle of data area
updateSpeed
public void updateSpeed(int delay)
All Packages Class Hierarchy This Package Previous Next Index