edu.sdsc.mbt.viewables
Class AtomLabelByAtomName

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

public class AtomLabelByAtomName
extends java.lang.Object
implements AtomLabel

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

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

Field Summary
static java.lang.String NAME
           
 
Method Summary
static AtomLabelByAtomName 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 AtomLabelByAtomName 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