Class CPKAtomColors

java.lang.Object
org.openscience.cdk.renderer.color.CPKAtomColors
All Implemented Interfaces:
Serializable, IAtomColorer

@Deprecated public class CPKAtomColors extends Object implements IAtomColorer, Serializable
Deprecated.
JmolColors provides more comprehensive CPK color pallet
Colors atoms using CPK color scheme [Bernstein, H.J., Manual RasMol 2.7.2.1 - CPK Colours].
See Also:
Source code:
main
Belongs to CDK module:
render
Keywords:
atom coloring, CPK
  • Constructor Details

    • CPKAtomColors

      public CPKAtomColors()
      Deprecated.
  • Method Details

    • getAtomColor

      public Color getAtomColor(IAtom atom)
      Deprecated.
      Returns the font color for atom given atom.
      Specified by:
      getAtomColor in interface IAtomColorer
      Parameters:
      atom - the atom.
      Returns:
      A color for the atom.
    • getAtomColor

      public Color getAtomColor(IAtom atom, Color defaultColor)
      Deprecated.
      Returns the font color for atom given atom.
      Specified by:
      getAtomColor in interface IAtomColorer
      Parameters:
      atom - the atom.
      defaultColor - atom default color.
      Returns:
      A color for the atom. The default colour is used if none is found for the atom.