public class PartialAtomicChargeColors extends Object implements IAtomColorer
This scheme used the atomic partial charge to determine the Atom's color: uncharged atoms are colored white, positively charged atoms are blue, and negatively charge atoms are red.
Constructor and Description |
---|
PartialAtomicChargeColors() |
Modifier and Type | Method and Description |
---|---|
Color |
getAtomColor(IAtom atom)
Returns the a color reflecting the given atom's partial charge.
|
Color |
getAtomColor(IAtom atom,
Color defaultColor)
Returns the a color reflecting the given atom's partial charge, or
defaults to the given color if no color is defined.
|
public Color getAtomColor(IAtom atom)
getAtomColor
in interface IAtomColorer
atom
- IAtom to get a color forpublic 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 IAtomCopyright © 2021. All rights reserved.