Class Scalemap
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----ChaosDemos.dynamicGraph
|
+----Scalemap
- public class Scalemap
- extends dynamicGraph
-
disableAll()
- Disables text input and choice contorls
-
enableAll()
- Enables text input and choice contorls
-
function(int)
- Returns map function of class variable x
-
handleEvent(Event)
- Event handler:
Stops iteration on minimising and handles close window event
(May fail under Windows95)
-
iterate()
- Iterates class variables via map functions x->f f->f(x)
-
movieStart()
- Start movie thread
-
movieStop()
- Stop movie thread
-
respondToButtons(int)
- Respond to buttonControls
-
respondToMouse(double, boolean, double, boolean)
- Restarts iteration on mouse click
-
respondToText()
- Responds to textControls
-
restart()
- Resets plot by deleting all curves and restarting
-
seta(double, int)
- Resets the parameter a and function number.
-
stop()
- Stop thread
-
updateParameters()
- Updates parameters from the text controls
respondToButtons
public void respondToButtons(int buttonIndex)
- Respond to buttonControls
- Parameters:
- buttonIndex - index of button pushed
- Overrides:
- respondToButtons in class dynamicGraph
- See Also:
- buttonControls
respondToText
public void respondToText()
- Responds to textControls
- Overrides:
- respondToText in class dynamicGraph
- See Also:
- textControls
movieStop
public void movieStop()
- Stop movie thread
movieStart
public void movieStart()
- Start movie thread
handleEvent
public boolean handleEvent(Event evt)
- Event handler:
Stops iteration on minimising and handles close window event
(May fail under Windows95)
- Overrides:
- handleEvent in class Component
disableAll
public void disableAll()
- Disables text input and choice contorls
enableAll
public void enableAll()
- Enables text input and choice contorls
seta
public void seta(double ain,
int n)
- Resets the parameter a and function number. Stores atext
for later comparison (because string truncates accuracy of double)
function
public double function(int n)
- Returns map function of class variable x
- Parameters:
- n - number of iterations
updateParameters
public void updateParameters()
- Updates parameters from the text controls
restart
public void restart()
- Resets plot by deleting all curves and restarting
iterate
public boolean iterate()
- Iterates class variables via map functions x->f f->f(x)
- Overrides:
- iterate in class dynamicGraph
stop
public void stop()
- Stop thread
respondToMouse
public void respondToMouse(double xcoord,
boolean xcoordValid,
double ycoord,
boolean ycoordValid)
- Restarts iteration on mouse click
- Parameters:
- xcoord - x-coordinate of event
- xcoordValid - true if event within x-range set by axes
- ycoord - y-coordinate of event
- ycoordValid - true if event within y-range set by axes
- Overrides:
- respondToMouse in class dynamicGraph