Class JmolColors
- java.lang.Object
-
- org.openscience.cdk.renderer.color.JmolColors
-
- All Implemented Interfaces:
IAtomColorer
public final class JmolColors extends Object implements IAtomColorer
Default Jmol colors.- See Also:
- Jmol, Colors
-
-
Constructor Summary
Constructors Constructor Description JmolColors()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getAtomColor(IAtom atom)
Returns the color for a certain atom type.Color
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.
-
-
-
Method Detail
-
getAtomColor
public Color getAtomColor(IAtom atom)
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
public Color getAtomColor(IAtom atom, Color defaultColor)
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
-
-