AtomLeafAgentManager.AgentSource<ColorSchemeRadical.LengthAgent>
, ColorSchemeCollective
public class ColorSchemeRadical extends ColorSchemeByType implements ColorSchemeCollective, AtomLeafAgentManager.AgentSource<ColorSchemeRadical.LengthAgent>
Modifier and Type | Class | Description |
---|---|---|
static class |
ColorSchemeRadical.LengthAgent |
ColorScheme.Simple
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager<IAtom[]> |
agentManager |
|
protected Box |
box |
|
protected AtomLeafAgentManager<ColorSchemeRadical.LengthAgent> |
chainLengthManager |
|
protected java.util.Map<AtomType,java.awt.Color> |
fullColorMap |
|
protected java.awt.Color[] |
greys |
|
protected java.util.Map<AtomType,java.awt.Color> |
radicalColorMap |
DEFAULT_ATOM_COLOR, defaultColor
defaultColorsUsed, moreDefaultColors
Constructor | Description |
---|---|
ColorSchemeRadical(AtomLeafAgentManager<IAtom[]> agentManager) |
Modifier and Type | Method | Description |
---|---|---|
void |
colorAllAtoms() |
Determine color of all atoms.
|
java.awt.Color |
getAtomColor(IAtom atom) |
|
Box |
getBox() |
|
ColorSchemeRadical.LengthAgent |
makeAgent(IAtom a,
Box agentBox) |
Returns an agent for the given Atom.
|
protected void |
recursiveTag(IAtom a,
int chainNumber) |
|
void |
releaseAgent(ColorSchemeRadical.LengthAgent agent,
IAtom atom,
Box agentBox) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements.
|
void |
setBox(Box box) |
|
void |
setFreeRadicalColor(AtomType type,
java.awt.Color color) |
|
void |
setFullColor(AtomType type,
java.awt.Color color) |
getDefaultColor, main, setDefaultColor
getColor, setColor
protected final AtomLeafAgentManager<IAtom[]> agentManager
protected final java.util.Map<AtomType,java.awt.Color> radicalColorMap
protected final java.util.Map<AtomType,java.awt.Color> fullColorMap
protected final java.awt.Color[] greys
protected Box box
protected AtomLeafAgentManager<ColorSchemeRadical.LengthAgent> chainLengthManager
public ColorSchemeRadical(AtomLeafAgentManager<IAtom[]> agentManager)
public java.awt.Color getAtomColor(IAtom atom)
getAtomColor
in class ColorSchemeByType
public void setFreeRadicalColor(AtomType type, java.awt.Color color)
public void setFullColor(AtomType type, java.awt.Color color)
public ColorSchemeRadical.LengthAgent makeAgent(IAtom a, Box agentBox)
AtomLeafAgentManager.AgentSource
makeAgent
in interface AtomLeafAgentManager.AgentSource<ColorSchemeRadical.LengthAgent>
agentBox
- TODOpublic void releaseAgent(ColorSchemeRadical.LengthAgent agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSource
releaseAgent
in interface AtomLeafAgentManager.AgentSource<ColorSchemeRadical.LengthAgent>
public void colorAllAtoms()
ColorSchemeCollective
colorAllAtoms
in interface ColorSchemeCollective
protected void recursiveTag(IAtom a, int chainNumber)
public Box getBox()
public void setBox(Box box)