A particle simulator used to drive the force directed layout of thinkmap.
Add a particle to the simulator
this simulator
Remove a particle to the simulator
this simulator
Step this simulator by the given timestep. Calling this method initiates the following:
Add a listener to this EventSource
the name of the event to listen for
the callback to add
this eventsource
Dispatch an event from this EventSource, supplying arguments to the listeners via an Array, rather than var-args.
the name of the event to dispatch
this EventSource
Dispatch an event from this EventSource
the name of the event to dispatch
optional arguments sent to the event listeners
this EventSource
Fire an event from this EventSource
the name of the event to dispatch
optional arguments sent to the event listeners
this EventSource
Remove a listener from this EventSource
the name of the event to remove the listener for
the callback to remove
this eventsource
Add a listener to this EventSource
the name of the event to listen for
the callback
this eventsource
Add a listener to this EventSource, which will be called at most once and will be removed the first time the given event fires.
the name of the event to listen for
the callback to add
this eventsource
Remove a listener from this EventSource
the name of the event to remove the listener for
the callback to remove
this eventsource
This event is when it is time for each force in this layout to apply their force to the array of all particles in the simulator. The arguments are the array of particles and the timestep, which is how much time has passed since the last run through the simulator.
This event is fired once all the forces have been applied and a final velocity is calculated for each particle. At this point, any step listeners have the opportunity to change a particles final velocity. The arguments are the array of particles and the timestep, which is how much time has passed since the last run through the simulator.