MoleculeAgentManager.MoleculeAgentSourcepublic class ColorSchemeRandomByMolecule extends ColorScheme implements MoleculeAgentManager.MoleculeAgentSource
ColorScheme.SimpleDEFAULT_ATOM_COLOR, defaultColor| Constructor | Description |
|---|---|
ColorSchemeRandomByMolecule(Simulation sim,
Box box,
IRandom random) |
| Modifier and Type | Method | Description |
|---|---|---|
java.awt.Color |
getAtomColor(IAtom a) |
|
java.lang.Object |
makeAgent(IMolecule a) |
Returns an agent for the given Atom.
|
void |
releaseAgent(java.lang.Object agent,
IMolecule atom) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements
|
getDefaultColor, main, setDefaultColorpublic ColorSchemeRandomByMolecule(Simulation sim, Box box, IRandom random)
public java.awt.Color getAtomColor(IAtom a)
getAtomColor in class ColorSchemepublic java.lang.Object makeAgent(IMolecule a)
MoleculeAgentManager.MoleculeAgentSourcemakeAgent in interface MoleculeAgentManager.MoleculeAgentSourcepublic void releaseAgent(java.lang.Object agent,
IMolecule atom)
MoleculeAgentManager.MoleculeAgentSourcereleaseAgent in interface MoleculeAgentManager.MoleculeAgentSource