Class JmolColors
java.lang.Object
org.openscience.cdk.renderer.color.JmolColors
- All Implemented Interfaces:
IAtomColorer
Default Jmol colors.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAtomColor
(IAtom atom) Returns the color for a certain atom type.getAtomColor
(IAtom atom, Color defaultColor) Returns the color for a certain atom type, and uses the given default color if it fails to identify the atom type.
-
Constructor Details
-
JmolColors
public JmolColors()
-
-
Method Details
-
getAtomColor
Description copied from interface:IAtomColorer
Returns the color for a certain atom type.- Specified by:
getAtomColor
in interfaceIAtomColorer
- Parameters:
atom
- the atom whose color is desired- Returns:
- the color of the specified atom
-
getAtomColor
Description copied from interface:IAtomColorer
Returns the color for a certain atom type, and uses the given default color if it fails to identify the atom type.- Specified by:
getAtomColor
in interfaceIAtomColorer
- Parameters:
atom
- the atom in questiondefaultColor
- the color to use if the atom type of this atom cannot be identified- Returns:
- the color of the specified atom
-