Shift Map
Shows the map iteration, and calculates power spectrum and histogram.
Uses the "Java Graph Class Library" by Leigh Brookshaw
- Version:
- 10 October 1997
- Author:
- Michael Cross
-
buttons
-
-
choices
-
-
clicked
- true after one mouse click
-
functionChoice
-
-
graph
-
-
mapFunction
-
-
nParameters
- Number of parameters for the map function
-
parameters
- array containing the map parameters a,b
-
plotChoice
-
-
showTime
- true if iteration number to be shown.
-
status
-
-
variables
-
-
Map1D(startMap1D, URL)
-
-
disableAll()
- Disables text input and choice controls
-
enableAll()
- Enables text input and choice contorls
-
handleEvent(Event)
- Event handler:
Stops iteration on minimising and handles close window event
(May fail under Windows95)
-
iterate()
- Iterates Map equations and updates graph according to value of plot
-
movieStart()
- Start movie thread
-
movieStop()
- Stop movie thread
-
resetGraph()
- Deletes all curves from graph
-
respondToButtons(int)
- Respond to buttonControls
-
respondToChoices()
- Responds to choiceControls
-
respondToMouse(double, boolean, double, boolean)
- Responds to mouse events
-
respondToText()
- Responds to textControls
-
restart()
- Resets plot
-
setPlotTextBoxes(String[], String[])
- Sets visibility and content of variables textboxes 3,4 ...
-
stop()
- Stop movie thread
-
updateParameters()
- Updates parameters from the text controls
-
updateSpeed(int)
-
graph
public superGraph2D graph
mapFunction
public Map1DFunction mapFunction
variables
public textControls variables
buttons
public buttonControls buttons
choices
public choiceControls choices
plotChoice
public Choice plotChoice
functionChoice
public Choice functionChoice
status
public Label status
showTime
public boolean showTime
- true if iteration number to be shown. Set by choices
clicked
boolean clicked
- true after one mouse click
parameters
public double parameters[]
- array containing the map parameters a,b
nParameters
public int nParameters
- Number of parameters for the map function
Map1D
Map1D(startMap1D target,
URL in_documentBase)
- Parameters:
- target - starting class
- See Also:
- startMap1D
respondToText
public void respondToText()
- Responds to textControls
- Overrides:
- respondToText in class dynamicGraph
- See Also:
- textControls
respondToChoices
public void respondToChoices()
- Responds to choiceControls
- Overrides:
- respondToChoices in class dynamicGraph
- See Also:
- choiceControls
respondToButtons
public void respondToButtons(int buttonIndex)
- Respond to buttonControls
- Parameters:
- buttonIndex - index of button pushed
- Overrides:
- respondToButtons in class dynamicGraph
- See Also:
- buttonControls
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 controls
enableAll
public void enableAll()
- Enables text input and choice contorls
updateParameters
public void updateParameters()
- Updates parameters from the text controls
restart
public void restart()
- Resets plot
resetGraph
public int resetGraph()
- Deletes all curves from graph
- Returns:
- -1 for no curves
iterate
public boolean iterate()
- Iterates Map equations and updates graph according to value of plot
- Overrides:
- iterate in class dynamicGraph
stop
public void stop()
- Stop movie thread
updateSpeed
public void updateSpeed(int in_delay)
- Overrides:
- updateSpeed in class dynamicGraph
respondToMouse
public void respondToMouse(double xcoord,
boolean xcoordValid,
double ycoord,
boolean ycoordValid)
- Responds to mouse events
- Parameters:
- xcoord - x-coordinate of mouse click
- xcoordValid - true if x-coordinate of mouse click within graph
- ycoord - y-coordinate of mouse click
- ycoordValid - true if y-coordinate of mouse click within graph
- Overrides:
- respondToMouse in class dynamicGraph
setPlotTextBoxes
public void setPlotTextBoxes(String label[],
String text[])
- Sets visibility and content of variables textboxes 3,4 ...
- Parameters:
- label - text for label of each box ("" makes invisible)