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)
IAtomColorer
getAtomColor
in interface IAtomColorer
atom
- the atom whose color is desiredpublic Color getAtomColor(IAtom atom, Color defaultColor)
IAtomColorer
getAtomColor
in interface IAtomColorer
atom
- the atom in questiondefaultColor
- the color to use if the atom type of this atom cannot be identifiedCopyright © 2021. All rights reserved.