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 palletColors atoms using CPK color scheme [Bernstein, H.J., Manual RasMol 2.7.2.1 - CPK Colours].- See Also:
- Serialized Form
- Source code:
- main
- Belongs to CDK module:
- render
- Keywords:
- atom coloring, CPK
-
-
Constructor Summary
Constructors Constructor Description CPKAtomColors()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Color
getAtomColor(IAtom atom)
Deprecated.Returns the font color for atom given atom.Color
getAtomColor(IAtom atom, Color defaultColor)
Deprecated.Returns the font color for atom given atom.
-
-
-
Method Detail
-
getAtomColor
public Color getAtomColor(IAtom atom)
Deprecated.Returns the font color for atom given atom.- Specified by:
getAtomColor
in interfaceIAtomColorer
- 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 interfaceIAtomColorer
- 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.
-
-