showMol
Class Wire

java.lang.Object
  extended by showMol.Wire

public class Wire
extends java.lang.Object


Constructor Summary
Wire()
          Default constructor does nothing.
Wire(Atom a)
          Constructs wires framework centered at the specified atom.
 
Method Summary
 void addBond(Atom a)
          Adds a wire from the central atom (defined in the constructor) to the specified atom.
 void clearBonds()
          Removes all bonds to the central atom.
 javax.media.j3d.Shape3D getShape3D()
          Provides the Shape3D object for the wire frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wire

public Wire()
Default constructor does nothing.


Wire

public Wire(Atom a)
Constructs wires framework centered at the specified atom. Wires to bonded atoms must be added later with addBond method.

Parameters:
a - central atom
Method Detail

addBond

public void addBond(Atom a)
Adds a wire from the central atom (defined in the constructor) to the specified atom.

Parameters:
a - atom at end of new wire

clearBonds

public void clearBonds()
Removes all bonds to the central atom.


getShape3D

public javax.media.j3d.Shape3D getShape3D()
Provides the Shape3D object for the wire frame.

Returns:
Shape3D