public class UniColor extends Object implements IAtomColorer
Constructor and Description |
---|
UniColor(Color color)
Create a uniform atom colorer.
|
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 UniColor(Color color)
color
- the colorpublic Color getAtomColor(IAtom atom)
getAtomColor
in interface IAtomColorer
atom
- the atom whose color is desiredpublic Color getAtomColor(IAtom atom, Color defaultColor)
getAtomColor
in interface IAtomColorer
atom
- the atom in questiondefaultColor
- the color to use if the atom type of this atom cannot be identifiedCopyright © 2018. All Rights Reserved.