public class ColorSchemeStepWise extends ColorScheme
ColorScheme.Simple
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager<IAtom[]> |
bondingAgentManager |
|
protected java.awt.Color[][] |
colorMaps |
|
protected Simulation |
simulation |
DEFAULT_ATOM_COLOR, defaultColor
Constructor | Description |
---|---|
ColorSchemeStepWise(Simulation sim,
AtomLeafAgentManager<IAtom[]> bondingAgentManager) |
Modifier and Type | Method | Description |
---|---|---|
java.awt.Color |
getAtomColor(IAtom atom) |
|
void |
setColor(AtomType type,
int nBonds,
java.awt.Color color) |
Sets atoms of the given type and number of bonds to be the given color.
|
getDefaultColor, main, setDefaultColor
protected final AtomLeafAgentManager<IAtom[]> bondingAgentManager
protected final Simulation simulation
protected java.awt.Color[][] colorMaps
public ColorSchemeStepWise(Simulation sim, AtomLeafAgentManager<IAtom[]> bondingAgentManager)
public java.awt.Color getAtomColor(IAtom atom)
getAtomColor
in class ColorScheme
public void setColor(AtomType type, int nBonds, java.awt.Color color)