cct.modelling
Class Bond

java.lang.Object
  extended by cct.modelling.Bond
All Implemented Interfaces:
BondInterface

public class Bond
extends java.lang.Object
implements BondInterface

Title:

Description:

Copyright: Copyright (c) 2004

Company:


Field Summary
protected  AtomInterface a1
           
protected  AtomInterface a2
           
(package private)  java.util.HashMap<java.lang.String,java.lang.Object> properties
           
 
Fields inherited from interface cct.interfaces.BondInterface
BICOLOR, COLOR_SCHEME, CYLINDER_BICOLOR, CYLINDER_MONOCOLOR, CYLINDER_RADIUS, DEFAULT_BONDS_AND_STICKS_RADIUS, DEFAULT_STICKS_RADIUS, LINE_BICOLOR, LINE_MONOCOLOR, MONOCOLOR, RENDER_CYLINDER, RENDER_LINE, RENDERING_STYLE, RGB_COLOR, VISIBLE
 
Constructor Summary
Bond()
           
Bond(AtomInterface a1, AtomInterface a2)
           
Bond(Bond b)
           
Bond(BondInterface b)
           
 
Method Summary
 float bondLength()
           
 Bond getBond()
           
 AtomInterface getI()
           
 AtomInterface getIAtomInterface()
           
 AtomInterface getJ()
           
 AtomInterface getJAtomInterface()
           
 BondInterface getNewBondInstance()
           
 BondInterface getNewBondInstance(AtomInterface a_i, AtomInterface a_j)
           
 BondInterface getNewBondInstance(BondInterface bond)
           
 java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
           
 java.lang.Object getProperty(java.lang.String key)
           
 void setProperty(java.lang.String prop, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a1

protected AtomInterface a1

a2

protected AtomInterface a2

properties

java.util.HashMap<java.lang.String,java.lang.Object> properties
Constructor Detail

Bond

public Bond()

Bond

public Bond(AtomInterface a1,
            AtomInterface a2)

Bond

public Bond(Bond b)

Bond

public Bond(BondInterface b)
Method Detail

getNewBondInstance

public BondInterface getNewBondInstance()
Specified by:
getNewBondInstance in interface BondInterface

getNewBondInstance

public BondInterface getNewBondInstance(AtomInterface a_i,
                                        AtomInterface a_j)
Specified by:
getNewBondInstance in interface BondInterface

getNewBondInstance

public BondInterface getNewBondInstance(BondInterface bond)
Specified by:
getNewBondInstance in interface BondInterface

bondLength

public float bondLength()
Specified by:
bondLength in interface BondInterface

getBond

public Bond getBond()

getI

public AtomInterface getI()

getJ

public AtomInterface getJ()

getIAtomInterface

public AtomInterface getIAtomInterface()
Specified by:
getIAtomInterface in interface BondInterface

getJAtomInterface

public AtomInterface getJAtomInterface()
Specified by:
getJAtomInterface in interface BondInterface

getProperties

public java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
Specified by:
getProperties in interface BondInterface

getProperty

public java.lang.Object getProperty(java.lang.String key)
Specified by:
getProperty in interface BondInterface

setProperty

public void setProperty(java.lang.String prop,
                        java.lang.Object value)
Specified by:
setProperty in interface BondInterface