edu.sdsc.mbt.util
Class ElementProperties

java.lang.Object
  extended byedu.sdsc.mbt.util.ElementProperties

public class ElementProperties
extends java.lang.Object


Field Summary
static int LINEAR
           
static int OCTAHEDRAL
           
static int TETRAHEDRAL
           
static int TRIGONAL
           
static int TRIGONAL_BIPYRAMIDAL
           
 
Constructor Summary
ElementProperties()
           
 
Method Summary
static double getAtomRadius(int number)
          Get the radius of the given element number.
static double getAtomRadius(short index)
           
static double getAtomRadius(java.lang.String name)
          Get the radius of the given element name.
static VectorSet getBondGeometry(Atom atom)
           
static double getBondLength(int e1, int e2)
           
static double getBondLength(short e1, short e2)
           
static float[] getElementColor(int number)
          Get the RGB color of the given element number.
static float[] getElementColor(java.lang.String name)
          Get the RGB color of the given element name.
static int getElementCount()
          Get the number of elements for which style information is represented by this class.
static int[] getElementValency(int number)
           
static int[] getElementValency(short index)
           
static int[] getElementValency(java.lang.String symbol)
           
static double getIonRadius(int number)
           
static void setAtomRadius(int number, double radius)
          Set the radius of the given element number.
static void setAtomRadius(java.lang.String name, double radius)
          Set the radius of the given element name.
static void setDefaultElementColors()
          Sets element colors to their default values
static void setElementColor(int number, float r, float g, float b)
          Set the RGB color of the given element number.
static void setElementColor(java.lang.String name, float r, float g, float b)
          Set the RGB color of the given element name.
static void setIonRadius(int number, double radius)
           
static void setIonRadius(java.lang.String name, double radius)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINEAR

public static final int LINEAR
See Also:
Constant Field Values

TRIGONAL

public static final int TRIGONAL
See Also:
Constant Field Values

TETRAHEDRAL

public static final int TETRAHEDRAL
See Also:
Constant Field Values

TRIGONAL_BIPYRAMIDAL

public static final int TRIGONAL_BIPYRAMIDAL
See Also:
Constant Field Values

OCTAHEDRAL

public static final int OCTAHEDRAL
See Also:
Constant Field Values
Constructor Detail

ElementProperties

public ElementProperties()
Method Detail

getElementCount

public static int getElementCount()
Get the number of elements for which style information is represented by this class.


getBondLength

public static double getBondLength(int e1,
                                   int e2)

getBondLength

public static double getBondLength(short e1,
                                   short e2)

setElementColor

public static void setElementColor(int number,
                                   float r,
                                   float g,
                                   float b)
Set the RGB color of the given element number. Color components are clamped between 0.0 and 1.0.


setElementColor

public static void setElementColor(java.lang.String name,
                                   float r,
                                   float g,
                                   float b)
Set the RGB color of the given element name. Color components are clamped between 0.0 and 1.0.


getElementColor

public static float[] getElementColor(int number)
Get the RGB color of the given element number. Color components are clamped between 0.0 and 1.0.


getElementColor

public static float[] getElementColor(java.lang.String name)
Get the RGB color of the given element name. Color components are clamped between 0.0 and 1.0.


setAtomRadius

public static void setAtomRadius(int number,
                                 double radius)
Set the radius of the given element number. Radius values are constrained to be non-negative.


setAtomRadius

public static void setAtomRadius(java.lang.String name,
                                 double radius)
Set the radius of the given element name. Radius values are constrained to be non-negative.


getAtomRadius

public static double getAtomRadius(int number)
Get the radius of the given element number. Radius values are constrained to be non-negative.


getIonRadius

public static double getIonRadius(int number)

setIonRadius

public static void setIonRadius(java.lang.String name,
                                double radius)

setIonRadius

public static void setIonRadius(int number,
                                double radius)

getAtomRadius

public static double getAtomRadius(java.lang.String name)
Get the radius of the given element name. Radius values are constrained to be non-negative.


getAtomRadius

public static double getAtomRadius(short index)

setDefaultElementColors

public static void setDefaultElementColors()
Sets element colors to their default values


getElementValency

public static int[] getElementValency(int number)

getElementValency

public static int[] getElementValency(java.lang.String symbol)

getElementValency

public static int[] getElementValency(short index)

getBondGeometry

public static VectorSet getBondGeometry(Atom atom)