Class CDKAtomColors
- java.lang.Object
-
- org.openscience.cdk.renderer.color.CDKAtomColors
-
- All Implemented Interfaces:
IAtomColorer
@Deprecated public class CDKAtomColors extends Object implements IAtomColorer
Deprecated.JmolColorsprovides more comprehensive color pallet for 3DGives a short table of atom colors for 3D display.- Source code:
- main
- Belongs to CDK module:
- render
-
-
Constructor Summary
Constructors Constructor Description CDKAtomColors()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ColorgetAtomColor(IAtom atom)Deprecated.Returns the CDK scheme color for the given atom's element.ColorgetAtomColor(IAtom atom, Color defaultColor)Deprecated.Returns the CDK scheme color for the given atom's element, or defaults to the given color if no color is defined.
-
-
-
Method Detail
-
getAtomColor
public Color getAtomColor(IAtom atom)
Deprecated.Returns the CDK scheme color for the given atom's element.- Specified by:
getAtomColorin interfaceIAtomColorer- Parameters:
atom- IAtom to get a color for- Returns:
- the atom's color according to this coloring scheme.
-
getAtomColor
public Color getAtomColor(IAtom atom, Color defaultColor)
Deprecated.Returns the CDK scheme color for the given atom's element, or defaults to the given color if no color is defined.- Specified by:
getAtomColorin interfaceIAtomColorer- Parameters:
atom- IAtom to get a color fordefaultColor- Color returned if this scheme does not define a color for the passed IAtom- Returns:
- the atom's color according to this coloring scheme.
-
-