edu.sdsc.mbt.viewables
Class AtomLabelByAtomCompound

java.lang.Object
  extended byedu.sdsc.mbt.viewables.AtomLabelByAtomCompound
All Implemented Interfaces:
AtomLabel

public class AtomLabelByAtomCompound
extends java.lang.Object
implements AtomLabel

This class implements the AtomLabel interface by producing a string label from the Atom record's compound.

Author:
John L. Moreland
See Also:
AtomLabel, Atom

Field Summary
static java.lang.String NAME
           
 
Method Summary
static AtomLabelByAtomCompound create()
          Return the singleton instance of this class.
 java.lang.String getAtomLabel(Atom atom)
          Produce a label based upon the atom name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Method Detail

create

public static AtomLabelByAtomCompound create()
Return the singleton instance of this class.


getAtomLabel

public java.lang.String getAtomLabel(Atom atom)
Produce a label based upon the atom name.

Specified by:
getAtomLabel in interface AtomLabel