public final class JmolColors extends Object implements IAtomColorer
| Constructor and Description |
|---|
JmolColors() |
| Modifier and Type | Method and 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.
|
public Color getAtomColor(IAtom atom)
IAtomColorergetAtomColor in interface IAtomColoreratom - the atom whose color is desiredpublic Color getAtomColor(IAtom atom, Color defaultColor)
IAtomColorergetAtomColor in interface IAtomColoreratom - the atom in questiondefaultColor - the color to use if the atom type of this atom cannot be identifiedCopyright © 2022. All rights reserved.