Class Map1D

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

public class Map1D
extends dynamicGraph
Iterates and plots one dimensional chaotic maps.

  • 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

    Variable Index

     o buttons
     o choices
     o clicked
    true after one mouse click
     o functionChoice
     o graph
     o mapFunction
     o nParameters
    Number of parameters for the map function
     o parameters
    array containing the map parameters a,b
     o plotChoice
     o showTime
    true if iteration number to be shown.
     o status
     o variables

    Constructor Index

     o Map1D(startMap1D, URL)

    Method Index

     o disableAll()
    Disables text input and choice controls
     o enableAll()
    Enables text input and choice contorls
     o handleEvent(Event)
    Event handler: Stops iteration on minimising and handles close window event
    (May fail under Windows95)
     o iterate()
    Iterates Map equations and updates graph according to value of plot
     o movieStart()
    Start movie thread
     o movieStop()
    Stop movie thread
     o resetGraph()
    Deletes all curves from graph
     o respondToButtons(int)
    Respond to buttonControls
     o respondToChoices()
    Responds to choiceControls
     o respondToMouse(double, boolean, double, boolean)
    Responds to mouse events
     o respondToText()
    Responds to textControls
     o restart()
    Resets plot
     o setPlotTextBoxes(String[], String[])
    Sets visibility and content of variables textboxes 3,4 ...
     o stop()
    Stop movie thread
     o updateParameters()
    Updates parameters from the text controls
     o updateSpeed(int)

    Variables

     o graph
     public superGraph2D graph
    
     o mapFunction
     public Map1DFunction mapFunction
    
     o variables
     public textControls variables
    
     o buttons
     public buttonControls buttons
    
     o choices
     public choiceControls choices
    
     o plotChoice
     public Choice plotChoice
    
     o functionChoice
     public Choice functionChoice
    
     o status
     public Label status
    
     o showTime
     public boolean showTime
    
    true if iteration number to be shown. Set by choices

     o clicked
     boolean clicked
    
    true after one mouse click

     o parameters
     public double parameters[]
    
    array containing the map parameters a,b

     o nParameters
     public int nParameters
    
    Number of parameters for the map function

    Constructors

     o Map1D
     Map1D(startMap1D target,
           URL in_documentBase)
    
    Parameters:
    target - starting class
    See Also:
    startMap1D

    Methods

     o respondToText
     public void respondToText()
    
    Responds to textControls

    Overrides:
    respondToText in class dynamicGraph
    See Also:
    textControls
     o respondToChoices
     public void respondToChoices()
    
    Responds to choiceControls

    Overrides:
    respondToChoices in class dynamicGraph
    See Also:
    choiceControls
     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 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 and choice controls

     o enableAll
     public void enableAll()
    
    Enables text input and choice contorls

     o updateParameters
     public void updateParameters()
    
    Updates parameters from the text controls

     o restart
     public void restart()
    
    Resets plot

     o resetGraph
     public int resetGraph()
    
    Deletes all curves from graph

    Returns:
    -1 for no curves
     o iterate
     public boolean iterate()
    
    Iterates Map equations and updates graph according to value of plot

    Overrides:
    iterate in class dynamicGraph
     o stop
     public void stop()
    
    Stop movie thread

     o updateSpeed
     public void updateSpeed(int in_delay)
    
    Overrides:
    updateSpeed in class dynamicGraph
     o 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
     o 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)