Class CPKAtomColors
java.lang.Object
org.openscience.cdk.renderer.color.CPKAtomColors
- All Implemented Interfaces:
Serializable
,IAtomColorer
Deprecated.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAtomColor
(IAtom atom) Deprecated.Returns the font color for atom given atom.getAtomColor
(IAtom atom, Color defaultColor) Deprecated.Returns the font color for atom given atom.
-
Constructor Details
-
CPKAtomColors
public CPKAtomColors()Deprecated.
-
-
Method Details
-
getAtomColor
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
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.
-
JmolColors
provides more comprehensive CPK color pallet