public class Ellipse extends Figure
Modifier and Type | Field | Description |
---|---|---|
protected float |
_a |
|
protected short |
_c |
|
protected float |
_d |
|
protected Point3f |
_p |
|
protected Ellipse3D |
myEllipse3D |
Constructor | Description |
---|---|
Ellipse(G3DSys g,
short c,
float x,
float y,
float z,
float diameter) |
|
Ellipse(G3DSys g,
short c,
Point3f point,
float diameter,
float aspect) |
Modifier and Type | Method | Description |
---|---|---|
void |
draw() |
All Figures know how to draw themselves via override.
|
float |
getAspect() |
set the aspect ratio (y/x) of the figure
|
short |
getColor() |
|
float |
getD() |
|
Point3f |
getPoint() |
|
float |
getX() |
|
float |
getY() |
|
float |
getZ() |
|
void |
setAspect(float a) |
|
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
protected float _a
protected final Ellipse3D myEllipse3D
public Ellipse(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)
public float getAspect()
public void setAspect(float a)