Interface IAtomColorer
-
- All Known Implementing Classes:
CDK2DAtomColors
,CDKAtomColors
,CPKAtomColors
,JmolColors
,PartialAtomicChargeColors
,RasmolColors
,UniColor
public interface IAtomColorer
Interface to a class for coloring atoms.- Source code:
- main
- Belongs to CDK module:
- render
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Color
getAtomColor(IAtom atom)
Returns the color for a certain atom type.default 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
Color getAtomColor(IAtom atom)
Returns the color for a certain atom type.- Parameters:
atom
- the atom whose color is desired- Returns:
- the color of the specified atom
-
getAtomColor
default 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.- 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
-
-