|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lane.sente.GameElementUI
This is
Field Summary | |
protected lane.sente.idx3d_Object |
sphere
|
protected RobotArenaUI |
theContainer
|
protected float |
xLocation
|
protected float |
xSize
|
protected float |
yLocation
|
protected float |
ySize
|
protected float |
zLocation
|
Constructor Summary | |
GameElementUI(RobotArenaUI theContainer)
the constructor for the game element |
Method Summary | |
java.lang.String |
getName()
returns the name of this element |
lane.sente.idx3d_Object |
getObject()
method used to get the 3D sphere for this Element |
abstract void |
paint(java.awt.Graphics g)
the paint method defined by a child class |
void |
setXlocation(float x)
the method called when the X Location changes |
void |
setXSize(float s)
the method called when the X size changes |
void |
setYlocation(float y)
the method called when the Y Location changes |
void |
setYSize(float s)
the method called when the Y size changes |
void |
setZlocation(float z)
the method called when the Z Location changes |
void |
update()
the method called to update the sphere position |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected lane.sente.idx3d_Object sphere
protected RobotArenaUI theContainer
protected float xLocation
protected float yLocation
protected float zLocation
protected float xSize
protected float ySize
Constructor Detail |
public GameElementUI(RobotArenaUI theContainer)
theContainer
- the UI that this element will be displayed inMethod Detail |
public lane.sente.idx3d_Object getObject()
getObject
in interface ThreeDObject
public java.lang.String getName()
public abstract void paint(java.awt.Graphics g)
g
- a graphics object to be painted onpublic void update()
public void setXlocation(float x)
x
- the location of the element in terms of fraction of the total x distance of the containerpublic void setYlocation(float y)
y
- the location of the element in terms of fraction of the total y distance of the containerpublic void setZlocation(float z)
z
- the location of the element in terms of fraction of the total z distance of the containerpublic void setXSize(float s)
s
- the location of the element in terms of fraction of the total x distance of the containerpublic void setYSize(float s)
s
- the location of the element in terms of fraction of the total y distance of the container
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |