|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbelka.mol.Bond
public abstract class Bond
Abstract class describing behavior of a bond. Bond is a relation between two atoms. It can be, for example, covalent bond, hydrogen bond, edge of DT tessellation, etc.
Constructor Summary | |
---|---|
Bond()
|
Method Summary | |
---|---|
static Bond |
create(Atom a1,
Atom a2)
Static method to create a new bond |
abstract void |
disassemble()
Disassembles bond into null pointers to help garbage collector to free memory. |
abstract Color |
getColor()
Returns color of the cylinder representing the bond on a screen. |
abstract Atom |
getFAtom()
Returns first atom of the bond. |
abstract double |
getRadius()
Returns radius of the cylinder representing the bond. |
abstract Atom |
getSAtom()
Returns second atom of the bond. |
abstract int |
getScreenRadius()
Returns radius of the cylinder representing the bond on a screen. |
abstract void |
setColor(Color color)
Sets bond's color on a screen. |
abstract void |
setRadius(double r)
Sets radius of the cylinder representing the bond. |
abstract void |
setScreenRadius(double r)
Sets radius of the cylinder representing the bond on a screen. |
String |
toString()
Returns string representation of the bond. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Bond()
Method Detail |
---|
public static Bond create(Atom a1, Atom a2)
a1
- bond's first atom.a2
- bond's second atom.
public abstract void disassemble()
public abstract Atom getFAtom()
public abstract Atom getSAtom()
public abstract Color getColor()
public abstract double getRadius()
public abstract void setRadius(double r)
r
- of the cylinder representing the bond.public abstract int getScreenRadius()
public abstract void setScreenRadius(double r)
r
- radius of the cylinder representing the bond on a screen.public abstract void setColor(Color color)
color
- bond's color on a screen.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |