Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
L
M
N
P
Q
R
S
T
U
V
W
X
Y
Z
S
setAccuracy(int)
- Method in class simulation.gui.
SimulationMenu
Sets the accuracy of the simulation.
setActiveTool(int)
- Method in class simulation.gui.
SimulationView
Sets which tool is active.
setAllWalls(boolean)
- Method in class simulation.gui.
MainWindow
Sets all the walls to either exist or not; ignores the walls' current states.
setAngularVelocity(double)
- Method in class simulation.engine.
Body
Set the body's angular velocity.
setBody(Body)
- Method in class simulation.gui.
ShapeTracker
Changes the body the view is tracking.
setBody(Body)
- Method in class simulation.gui.
ShapeView
Sets the body that this view is showing.
setBounciness(double)
- Method in class simulation.engine.
Body
Set the bounciness, which determines how elastic a collision is.
setColor(Color)
- Method in class simulation.engine.
Body
Changes this body's color.
setColor(Color)
- Method in class simulation.gui.
ColorButton
Changes the color of the button.
setCrossPlatformLookAndFeel()
- Static method in class simulation.gui.
Main
setDefaultBounciness(double)
- Static method in class simulation.engine.
Body
Sets the default bounciness,which is the bounciness assigned to bodies without an otherwise-specified bounciness.
setDefaultDensity(double)
- Static method in class simulation.engine.
Body
Sets the default density, which is the density assigned to bodies without an otherwise-specified density.
setDefaultFriction(double)
- Static method in class simulation.engine.
Body
Sets the default friction, which is the friction assigned to bodies without an otherwise-specified friction.
setDensity(double)
- Method in class simulation.engine.
Body
Sets this body's density to a new value.
setEastWall(boolean)
- Method in class simulation.gui.
MainWindow
Sets whether the east wall (right) is enabled.
setFixed(boolean)
- Method in class simulation.engine.
Body
If true, makes the body fixed; if false, makes it free.
setFriction(double)
- Method in class simulation.engine.
Body
Set the friction, which helps determine the coefficient of friction.
setGoing(boolean)
- Method in class simulation.gui.
SimulationMenu
Sets whether the animation is currently computing a step.
setGravity(double)
- Method in class simulation.engine.
Simulation
Sets the gravity force to a new value.
setMass(Double)
- Method in class simulation.engine.
Body
Sets the mass of the body.
setNorthWall(boolean)
- Method in class simulation.gui.
MainWindow
Sets whether the north wall (ceiling) is enabled.
setPlaying(boolean)
- Method in class simulation.engine.
Simulation
Sets whether this simulation is "playing." Playing generally means that the simulation is being stepped repeatedly to animate it; when it is playing, most tools (like shape adding/moving) are probably going to be off.
setPolygon(Polygon)
- Method in class simulation.gui.
PolygonPad
Explicitly defines this pad's polygon.
setSouthWall(boolean)
- Method in class simulation.gui.
MainWindow
Sets whether the south wall (floor) is enabled.
setSpeed(double)
- Method in class simulation.gui.
SimulationMenu
Sets the speed of animation in frames per second.
setVelocity(Vector)
- Method in class simulation.engine.
Body
Set the body's average velocity.
setVisible(boolean)
- Method in class simulation.gui.
PolygonPad
setWallColor(Color)
- Method in class simulation.engine.
Simulation
Sets the walls' color.
setWallColor(Color)
- Method in class simulation.gui.
MainWindow
Sets a new
Color
for the walls.
setWestWall(boolean)
- Method in class simulation.gui.
MainWindow
Sets whether the west wall (right) is enabled.
setXOffset(int)
- Method in class simulation.gui.
SimulationView
Changes the view's x-offset.
setYOffset(int)
- Method in class simulation.gui.
SimulationView
Sets the view's y-offset.
setZoomFactor(double)
- Method in class simulation.gui.
SimulationView
Changes the zoom factor of this view.
ShapeExplorer
- Class in
simulation.gui
This class is a window that lets the user browse through a list of bodies in the simulation and edit some of their properties like mass or color.
ShapeExplorer(Simulation)
- Constructor for class simulation.gui.
ShapeExplorer
Creates a new, hidden shape explorer that the user can use to browse through and edit the bodies of the given simulation.
ShapeNode
- Class in
simulation.gui
This is a specialized tree node that represents a body in the simulation.
ShapeNode(Body)
- Constructor for class simulation.gui.
ShapeNode
Creates a shape node with the supplied title and body.
ShapeNodeRenderer
- Class in
simulation.gui
This class renders the
ShapeNode
s that make up the list part of the
ShapeExplorer
.
ShapeNodeRenderer()
- Constructor for class simulation.gui.
ShapeNodeRenderer
Creates a new renderer, loading the needed icons.
ShapeTracker
- Class in
simulation.gui
A panel that shows a view of the simulation centered on the specified body.
ShapeTracker(Simulation)
- Constructor for class simulation.gui.
ShapeTracker
Creates a tracker with no specified body.
ShapeTracker(Simulation, Body)
- Constructor for class simulation.gui.
ShapeTracker
Creates a tracker tracking the specified body in the specified simulation.
ShapeView
- Class in
simulation.gui
This class displays some information about a body, including a picture.
ShapeView(Simulation)
- Constructor for class simulation.gui.
ShapeView
Creates a shape view with no body selected.
Simulation
- Class in
simulation.engine
A system of objects.
Simulation()
- Constructor for class simulation.engine.
Simulation
Creates a new simulation with the default settings and nothing in it.
simulation.engine
- package simulation.engine
simulation.gui
- package simulation.gui
SimulationMenu
- Class in
simulation.gui
This is the menu on the side of the simulation; it contains various options and buttons, particularly the play/step/pause commands.
SimulationMenu(Simulation, MainWindow)
- Constructor for class simulation.gui.
SimulationMenu
Creates the menu.
SimulationStatusBar
- Class in
simulation.gui
Displays some rudimentary information on the bottom of the screen for the simulation.
SimulationStatusBar(Simulation, MainWindow)
- Constructor for class simulation.gui.
SimulationStatusBar
SimulationToolBar
- Class in
simulation.gui
A toolbar for the simulation.
SimulationToolBar(MainWindow)
- Constructor for class simulation.gui.
SimulationToolBar
Creates the default toolbar!
SimulationView
- Class in
simulation.gui
This is the main view which shows a visual representation of the simulation.
SimulationView(Simulation, MainWindow)
- Constructor for class simulation.gui.
SimulationView
Creates a view of the specified simulation.
slope()
- Method in class simulation.engine.
Vector
Get the vector's slope.
Spring
- Class in
simulation.engine
A spring that connects to objects.
Spring(double, double, Body, Body, Vector, Vector)
- Constructor for class simulation.engine.
Spring
Create a spring with the given properties.
Spring(double, Body, Body, Vector, Vector)
- Constructor for class simulation.engine.
Spring
Create a spring with the given properties.
start()
- Method in class simulation.engine.
Profiler
Start the profiler.
stateChanged(PhysicsEvent)
- Method in interface simulation.engine.
PhysicsListener
This method is fired when the simulation's state is changed.
stateChanged(PhysicsEvent)
- Method in class simulation.gui.
SimulationView
step(double)
- Method in class simulation.engine.
Body
Step the body as if a certain amount of time has passed.
step(double, int)
- Method in class simulation.engine.
Simulation
Steps the simulation
times
times for the specified amount of time each time.
step(double)
- Method in class simulation.engine.
Spring
Have the spring apply force to its connections a certain amount.
STEP_IMAGE_LOCATION
- Static variable in class simulation.gui.
SimulationMenu
stop()
- Method in class simulation.engine.
Profiler
Stop the profiler.
STOP_IMAGE_LOCATION
- Static variable in class simulation.gui.
SimulationMenu
strength()
- Method in class simulation.engine.
Spring
Get the spring's strength.
subtract(Vector)
- Method in class simulation.engine.
Vector
Subtract another vector from this.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
L
M
N
P
Q
R
S
T
U
V
W
X
Y
Z