@TestClass(value="org.openscience.cdk.renderer.color.RasmolColorsTest") public class RasmolColors extends Object implements IAtomColorer, Serializable
Constructor and Description |
---|
RasmolColors() |
Modifier and Type | Method and Description |
---|---|
Color |
getAtomColor(IAtom atom)
Returns the Rasmol color for the given atom's element.
|
Color |
getAtomColor(IAtom atom,
Color defaultColor)
Returns the Rasmol color for the given atom's element, or
defaults to the given color if no color is defined.
|
@TestMethod(value="testGetAtomColor") public Color getAtomColor(IAtom atom)
getAtomColor
in interface IAtomColorer
atom
- IAtom to get a color for@TestMethod(value="testGetDefaultAtomColor") public Color getAtomColor(IAtom atom, Color defaultColor)
getAtomColor
in interface IAtomColorer
atom
- IAtom to get a color fordefaultColor
- Color returned if this scheme does not define
a color for the passed IAtom