The Henon Attractor
The Java application which is run through the
file Henon.java displays
to the user the solutions to the system of equations given by
x = 1.0 - A*x*x + y
y = B*x
where A and B are real numbered parameters that the user has
control of to vary
as desired. It is when the parameters are set near to A = 1.4 and
B = 0.3 that
the Henon attractor is displayed as solutions to this dynamical
system. This
Henon attractor is really a geometrical object that forms out of
the chaotic
behavior of individual solutions which are being plotted on the
Canvas. The user
also has control over such settings as the initial values for X
and Y , the
domain and range of X and Y as well as the number of iterations
to perform in
calculating the precision of the solutions. If the user of this
application
makes a mistake or would just like to restart, a 'Restart' button
is provided
to set the data fields to their default values. A 'Redraw with
your Input
Variables' button is also provided so specific values can be
entered and
then drawn on the display.
The Canvas where the solutions are plotted onto accepts mouse
clicks. Two
clicks are required and then the minimum and maximum X and Y
values are calculated
and the solutions are recomputted in a zoomed in fashion as the
domain of the Canvas
is reset. The new domain values are displayed in the appropriate
textfields. This
mouse clicking procedure can be repeated and if one wants to zoom
back out then
the 'Reset' button will be used to set the defaults or one can
manually enter the
desired domain in the textfields. The X and Y axis' are drawn to
give the user a
sense of orientation.
Source Code
Henon.java | InputPanel.java | PlotCanvas.java | ZoomHandler.java | ||
HenonApp.java | InputPanelHandler.java | WindowCloseHandler.java |