|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.pacbell.jfai.toh.ui.DiskView3D
public class DiskView3D
A visual 3D representation of a disk.
| Constructor Summary | |
|---|---|
DiskView3D(int size,
int numberOfDisks,
float radius,
float height,
BranchGroup animationGroup)
Creates an instance with the given arguments. |
|
| Method Summary | |
|---|---|
void |
disappear()
Removes the visual from the scene. |
BranchGroup |
getGroup()
Gets the branch group. |
Point3f |
getPosition()
Answers the position. |
TransformGroup |
getTransformGroup()
Gets the transform group. |
void |
setPosition(Point3f newPosition)
Sets the position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiskView3D(int size,
int numberOfDisks,
float radius,
float height,
BranchGroup animationGroup)
size - The disk size. See
Disk.getSize()numberOfDisks - the number of disks of the puzzleradius - the radius of the diskheight - the height of the diskanimationGroup - the BranchGroup containing the animation behavior| Method Detail |
|---|
public void disappear()
public BranchGroup getGroup()
public Point3f getPosition()
public TransformGroup getTransformGroup()
public void setPosition(Point3f newPosition)
newPosition - the absolute coordinates of the disk's center
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||