astex
Class Distance

java.lang.Object
  extended by astex.generic.Generic
      extended by astex.Distance
All Implemented Interfaces:
GenericInterface

public class Distance
extends Generic


Field Summary
static int Centroids
          The centroid distance mode.
static java.lang.String Color
           
static java.lang.String Format
           
 DynamicArray group0
          Atoms at one end of the distance.
 DynamicArray group1
          Atoms at the other end of the distance.
static java.lang.String LabelColor
           
static java.lang.String Mode
          Properties for a Distance object.
static java.lang.String Off
           
static java.lang.String On
           
static int Pairs
          The pair distance mode.
static java.lang.String Radius
           
static java.lang.String Visible
           
 
Fields inherited from class astex.generic.Generic
ClassName
 
Fields inherited from interface astex.generic.GenericInterface
Name
 
Constructor Summary
Distance()
           
 
Method Summary
static Distance createDistanceMonitor(Atom a0, Atom a1)
          Get the distance mode.
 void getCenter(Point3d p, DynamicArray d)
          Calculate the center of the group.
 Point3d getCenter0()
          Calculate the center of group 0.
 Point3d getCenter1()
          Calculate the center of group 1.
 boolean valid()
          Is this distance valid.
 
Methods inherited from class astex.generic.Generic
addChild, addListener, addParent, get, getBoolean, getChildren, getClassname, getDouble, getInteger, getParents, getProperties, getString, main, removeChild, removeListener, removeParent, set, setBoolean, setClassname, setDouble, setInteger, setString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Mode

public static final java.lang.String Mode
Properties for a Distance object.

See Also:
Constant Field Values

Visible

public static final java.lang.String Visible
See Also:
Constant Field Values

Format

public static final java.lang.String Format
See Also:
Constant Field Values

Color

public static final java.lang.String Color
See Also:
Constant Field Values

LabelColor

public static final java.lang.String LabelColor
See Also:
Constant Field Values

On

public static final java.lang.String On
See Also:
Constant Field Values

Off

public static final java.lang.String Off
See Also:
Constant Field Values

Radius

public static final java.lang.String Radius
See Also:
Constant Field Values

Pairs

public static final int Pairs
The pair distance mode.

See Also:
Constant Field Values

Centroids

public static final int Centroids
The centroid distance mode.

See Also:
Constant Field Values

group0

public DynamicArray group0
Atoms at one end of the distance.


group1

public DynamicArray group1
Atoms at the other end of the distance.

Constructor Detail

Distance

public Distance()
Method Detail

createDistanceMonitor

public static Distance createDistanceMonitor(Atom a0,
                                             Atom a1)
Get the distance mode.


getCenter0

public Point3d getCenter0()
Calculate the center of group 0.


getCenter1

public Point3d getCenter1()
Calculate the center of group 1.


getCenter

public void getCenter(Point3d p,
                      DynamicArray d)
Calculate the center of the group.


valid

public boolean valid()
Is this distance valid.