A B C D E G I M P R S U V W

A

actionPerformed(ActionEvent) - Method in class ButtonField
Implements ActionListener Interface.
adjustmentValueChanged(AdjustmentEvent) - Method in class EnhancedScroll
Implemets AdjustmentListener Interface.

B

ButtonField - class ButtonField.
All Buttons of Control Panel
ButtonField() - Constructor for class ButtonField
Add Pause/Resume, Kill Body, Clear Screen

C

cart_2_pol(Vector) - Static method in class Vector
Converts vector in caretsian coordinates into vector in polar coordinates
CentrBody - class CentrBody.
Stores data about Central Body of Universe Theese are Mass, Size
CentrBody(double, double) - Constructor for class CentrBody
Constructs new Central Body
Clock - class Clock.
Simulation external clock.
Clock(int) - Constructor for class Clock
Constructs clock
ControlPanel - class ControlPanel.
Control Panel
It stores all control elemets and values of simulator.
ControlPanel() - Constructor for class ControlPanel
 
ChBoxField - class ChBoxField.
CheckBox Field of Control Panel
ChBoxField() - Constructor for class ChBoxField
 

D

DependBody - class DependBody.
Dependent body Stores position vector in polar radial and angular dynamics in another polar vector reference to Universe
DependBody(Universe) - Constructor for class DependBody
 

E

EnhancedScroll - class EnhancedScroll.
Enhanced scrollbar consists of Scrollbar, Title text and text displaying actual value.
EnhancedScroll(int, int, int, String, String, double) - Constructor for class EnhancedScroll
New Enhanced scroll

G

getValue() - Method in class EnhancedScroll
Returns value
grav - class grav.
Applet itself
grav() - Constructor for class grav
 

I

init() - Method in class grav
Puts Control Panel, Status Line and Simulation canvas into applet.
initDynam(Vector) - Method in class DependBody
Sets the initial dynamics This method is called at start of simulation to set-up dynamics of body
initPos(Vector) - Method in class DependBody
Sets the initial position of body at start of simulation

M

minus(Vector, Vector) - Static method in class Vector
Substracts vector v1 - v2
mouseClicked(MouseEvent) - Method in class Simulation
Implemets MouseListener, MouseMotionListener Inteface
Not used
mouseDragged(MouseEvent) - Method in class Simulation
Implemets MouseListener, MouseMotionListener Inteface
In user input mode, while dragging, new dynamics is computed each time
mouseEntered(MouseEvent) - Method in class Simulation
Implemets MouseListener, MouseMotionListener Inteface
Not used
mouseExited(MouseEvent) - Method in class Simulation
Implemets MouseListener, MouseMotionListener Inteface
Not used
mouseMoved(MouseEvent) - Method in class Simulation
Implemets MouseListener, MouseMotionListener Inteface
Not used
mousePressed(MouseEvent) - Method in class Simulation
Implemets MouseListener, MouseMotionListener Inteface
In user input mode sets new starting position
mouseReleased(MouseEvent) - Method in class Simulation
Implemets MouseListener, MouseMotionListener Inteface
Switches from user input mode to simulation mode
move(double, boolean) - Method in class DependBody
Updates position of body This is main method for simulation It computes new position by using Kanonic form of Hamiltonian equotations and Runge-Kutta method for solving theese diferential equations

P

paint(Graphics) - Method in class Simulation
Redefined Canvas.paint.
pol_2_cart(Vector) - Static method in class Vector
Converts vector in polar coordinates into vector in cartesian coordinates

R

run() - Method in class Clock
Implements Runnable interface
run() - Method in class Simulation
Implemets Runnable Interface
Loop scans for parameters.

S

set_c(double) - Method in class Universe
Sets light speed of Universe
Simulation - class Simulation.
Simulation Canvas
Main work class of simulator
Simulation(Clock, ControlPanel, StatusLine) - Constructor for class Simulation
 
start() - Method in class grav
Starts clock and simulation threads
StatusLine - class StatusLine.
Status Line
Displays information about body position, dynamics and status of simulator
StatusLine() - Constructor for class StatusLine
 
stop() - Method in class grav
Shall stop the threads

U

Universe - class Universe.
Represnts Universe, stores main characteristics: Light speed Reference to central body
Universe(CentrBody) - Constructor for class Universe
Constructs new Universe with given central body and light speed set to 5;
update(Graphics) - Method in class Simulation
Redefined Canvas.update
Draws objects on canvas
updateInfo(double, double, double, String) - Method in class StatusLine
Updates information in status line

V

Vector - class Vector.
This class stores 2-dimensional Vector.
Vector() - Constructor for class Vector
Constructs zero vector (0,0)
Vector(double, double) - Constructor for class Vector
Constructs vector (x1,x2)

W

waiting() - Method in class Clock
Called for waiting.

A B C D E G I M P R S U V W