public class Ball extends Figure
Modifier and Type | Field | Description |
---|---|---|
protected short |
_c |
|
protected float |
_d |
|
protected Point3f |
_p |
Constructor | Description |
---|---|
Ball(G3DSys g,
short c,
float x,
float y,
float z,
float diameter) |
|
Ball(G3DSys g,
short c,
Point3f point,
float diameter) |
Modifier and Type | Method | Description |
---|---|---|
void |
draw() |
All Figures know how to draw themselves via override.
|
short |
getColor() |
|
float |
getD() |
|
Point3f |
getPoint() |
|
float |
getX() |
|
float |
getY() |
|
float |
getZ() |
|
void |
setColor(short c) |
set the color of the figure
|
void |
setD(float d) |
set the molspace diameter of the figure, when applicable
|
void |
setX(float x) |
set the x molspace position of the figure
|
void |
setY(float y) |
set the y molspace position of the figure
|
void |
setZ(float z) |
set the z molspace position of the figure
|
getID, setDrawable, setID
protected short _c
protected Point3f _p
protected float _d
public Ball(G3DSys g, short c, float x, float y, float z, float diameter)
public void draw()
Figure
public float getD()
public short getColor()
public void setColor(short c)
public Point3f getPoint()
public float getX()
public void setX(float x)
public float getY()
public void setY(float y)
public float getZ()
public void setZ(float z)
public void setD(float d)