public class Bond extends Figure
Modifier and Type | Field | Description |
---|---|---|
protected float |
_d |
|
protected short |
color |
|
static int |
CYLINDER |
|
static int |
WIREFRAME |
Constructor | Description |
---|---|
Bond(G3DSys g,
Ball b0,
Ball b1) |
|
Bond(G3DSys g,
Ball b0,
Ball b1,
short color) |
Modifier and Type | Method | Description |
---|---|---|
void |
draw() |
All Figures know how to draw themselves via override.
|
Ball |
getBall1() |
|
Ball |
getBall2() |
|
int |
getBondType() |
|
short |
getColor1() |
|
short |
getColor2() |
|
float |
getD() |
|
Point3f |
getEndpoint1() |
|
Point3f |
getEndpoint2() |
|
void |
setBondType(int i) |
|
void |
setD(float d) |
set the molspace diameter of the figure, when applicable
|
getID, setDrawable, setID
public static final int CYLINDER
public static final int WIREFRAME
protected float _d
protected short color
public void draw()
Figure
public float getD()
public void setBondType(int i)
public int getBondType()
public Point3f getEndpoint1()
public Point3f getEndpoint2()
public Ball getBall1()
public Ball getBall2()
public short getColor1()
public short getColor2()
public void setD(float d)