|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.pacbell.jfai.toh.ui.BaseView
public class BaseView
Visualizes the base of the Tower Of Hanoi puzzle. The base has pins aligned in a row.
| Constructor Summary | |
|---|---|
BaseView(Base aModel)
Creates a default view of the given base. |
|
| Method Summary | |
|---|---|
static Point3f |
bottomCenter()
Answers the center point of the bottom of the platform. |
static float |
depth()
Answers the depth of the platform. |
Appearance |
getAppearance()
Gets the appearance. |
BranchGroup |
getGroup()
Gets the branch group. |
Base |
getModel()
Gets the model. |
float |
getPinDistance()
Answers the distance between the center points of pins. |
static float |
height()
Answers the height of the platform. |
PinView |
pinView(Pin pin)
Answer the pin view corresponding to the specified pin. |
static Point3f |
topCenter()
Answers the center point of the top of the platform. |
static float |
width()
Answers the width of the platform. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseView(Base aModel)
aModel - the base| Method Detail |
|---|
public static final Point3f bottomCenter()
public static final float depth()
public static final float height()
public static final Point3f topCenter()
public static final float width()
public Appearance getAppearance()
public BranchGroup getGroup()
public Base getModel()
public float getPinDistance()
public PinView pinView(Pin pin)
pin - a pin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||