Class Map2D

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

public class Map2D
extends dynamicGraph
Iterates and plots various 2D maps
Uses the "Java Graph Class Library" by Leigh Brookshaw

Version:
3 August, 1997
Author:
Michael Cross

Variable Index

 o documentBase
location of marker.txt
 o nParameters

Constructor Index

 o Map2D(startMap2D, URL)

Method Index

 o addToGraph(Graphics, Rectangle)
Adds boxes to graph
 o disableAll()
Disables text input in variables
 o enableAll()
Enables text input in variables
 o handleEvent(Event)
Event handler: Stops iteration on minimising and handles close window event
(May fail under Windows95)
 o insets()
 o iterate()
Iterates map and updates graph
 o movieStart()
Start movie thread
 o movieStop()
Stop movie thread
 o respondToButtons(int)
Respond to buttonControls
 o respondToMouse(double, boolean, double, boolean)
Stub method to respond to mouse event on graph.
 o respondToSliderButtons()
Responds to buttons in sliderControls
 o respondToSliderText()
Responds to text boxes in sliderControls
 o respondToText()
Responds to textControls
 o restart()
Resets plot by deleting all curves and restarting
 o setAxesDefaults()
Sets axes defaults based on type of plot
 o stop()
Stop thread and close fit window
 o updateParameters()
Updates parameters from the sliderControls
 o updateVariables()
Update parameters form the textControls

Variables

 o documentBase
 URL documentBase
location of marker.txt

 o nParameters
 int nParameters

Constructors

 o Map2D
 public Map2D(startMap2D target,
              URL in_documentBase)
Parameters:
target - starting class
See Also:
startMap2D

Methods

 o respondToText
 public void respondToText()
Responds to textControls

Overrides:
respondToText in class dynamicGraph
See Also:
textControls
 o respondToSliderButtons
 public void respondToSliderButtons()
Responds to buttons in sliderControls

Overrides:
respondToSliderButtons in class dynamicGraph
See Also:
sliderControls
 o respondToSliderText
 public void respondToSliderText()
Responds to text boxes in sliderControls

Overrides:
respondToSliderText in class dynamicGraph
See Also:
sliderControls
 o respondToMouse
 public void respondToMouse(double xcoord,
                            boolean xcoordValid,
                            double ycoord,
                            boolean ycoordValid)
Stub method to respond to mouse event on graph.

Overrides:
respondToMouse in class dynamicGraph
 o insets
 public Insets insets()
Overrides:
insets in class Container
 o movieStop
 public void movieStop()
Stop movie thread

 o movieStart
 public void movieStart()
Start movie thread

 o 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
 o disableAll
 public void disableAll()
Disables text input in variables

 o enableAll
 public void enableAll()
Enables text input in variables

 o updateParameters
 public void updateParameters()
Updates parameters from the sliderControls

 o updateVariables
 public void updateVariables()
Update parameters form the textControls

 o restart
 public void restart()
Resets plot by deleting all curves and restarting

 o iterate
 public boolean iterate()
Iterates map and updates graph

Overrides:
iterate in class dynamicGraph
 o stop
 public void stop()
Stop thread and close fit window

 o respondToButtons
 public void respondToButtons(int buttonIndex)
Respond to buttonControls

Parameters:
buttonIndex - index of button pushed
Overrides:
respondToButtons in class dynamicGraph
See Also:
buttonControls
 o addToGraph
 public void addToGraph(Graphics g,
                        Rectangle r)
Adds boxes to graph

Parameters:
g - Graphics context
r - data rectangle of graph
Overrides:
addToGraph in class dynamicGraph
 o setAxesDefaults
 public void setAxesDefaults()
Sets axes defaults based on type of plot