MoleculeAgentManager.MoleculeAgentSource
public class ColorSchemeRandomByMolecule extends ColorScheme implements MoleculeAgentManager.MoleculeAgentSource
ColorScheme.Simple
DEFAULT_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, setDefaultColor
public ColorSchemeRandomByMolecule(Simulation sim, Box box, IRandom random)
public java.awt.Color getAtomColor(IAtom a)
getAtomColor
in class ColorScheme
public java.lang.Object makeAgent(IMolecule a)
MoleculeAgentManager.MoleculeAgentSource
makeAgent
in interface MoleculeAgentManager.MoleculeAgentSource
public void releaseAgent(java.lang.Object agent, IMolecule atom)
MoleculeAgentManager.MoleculeAgentSource
releaseAgent
in interface MoleculeAgentManager.MoleculeAgentSource