All Packages Class Hierarchy This Package Previous Next Index
Class primitives.machines.SmallMachineDemo
java.lang.Object
|
+----primitives.machines.Machine
|
+----primitives.machines.SmallMachine
|
+----primitives.machines.SmallMachineDemo
- public class SmallMachineDemo
- extends SmallMachine
Used by SmallMachine
-
anotherJoint
- integeral representation of the 2 locations of the right joint.
-
danotherJoints
- Stores the 2 locations of the right joint.
-
t3
-
-
SmallMachineDemo(Dimension)
-
-
finalize()
- Sets object fields to null
-
reachEnd()
- streches the right joint.
-
redraw(Graphics)
- Redraws the machine.
-
rotateJoint(double)
- rotates the right joint with respect to the left joint.
danotherJoints
private Coordinate danotherJoints[]
- Stores the 2 locations of the right joint.
anotherJoint
public ExtPoint anotherJoint[]
- integeral representation of the 2 locations of the right joint.
t3
Coordinate t3
SmallMachineDemo
public SmallMachineDemo(Dimension d)
- Parameters:
- d - the size of the rectangle to draw the machine in.
rotateJoint
public void rotateJoint(double alpha) throws MachineException
- rotates the right joint with respect to the left joint.
- Parameters:
- alpha - the angle in radians to rotate.
- Throws: MachineException
- if rotation is not physicaly possible.
- Overrides:
- rotateJoint in class SmallMachine
- See Also:
- rotateJoint
reachEnd
public void reachEnd()
- streches the right joint.
- Overrides:
- reachEnd in class SmallMachine
- See Also:
- reachEnd
redraw
public void redraw(Graphics g)
- Redraws the machine.
- Parameters:
- g - the graphic context to draw to.
- Overrides:
- redraw in class SmallMachine
finalize
public void finalize() throws Throwable
- Sets object fields to null
- Throws: Throwable
- .
- Overrides:
- finalize in class SmallMachine
All Packages Class Hierarchy This Package Previous Next Index