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.
|
public Color getAtomColor(IAtom atom)
getAtomColor in interface IAtomColoreratom - IAtom to get a color forpublic Color getAtomColor(IAtom atom, Color defaultColor)
getAtomColor in interface IAtomColoreratom - IAtom to get a color fordefaultColor - Color returned if this scheme does not define
a color for the passed IAtomCopyright © 2021. All rights reserved.