| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.String,java.awt.Color> |
Colors |
alignment, type, type_limits| Constructor and Description |
|---|
ColorAtom(Atom atom,
java.awt.Color bg,
java.awt.Color c)
Creates a new ColorAtom that sets the given colors for the given atom.
|
ColorAtom(java.awt.Color bg,
java.awt.Color c,
ColorAtom old)
Creates a ColorAtom that overrides the colors of the given ColorAtom if the given
colors are not null.
|
| Modifier and Type | Method and Description |
|---|---|
Box |
createBox(TeXEnvironment env)
Convert this atom into a
Box, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ... |
static java.awt.Color |
getColor(java.lang.String s) |
int |
getLeftType()
Get the type of the leftermost child atom.
|
int |
getRightType()
Get the type of the rightermost child atom.
|
void |
setPreviousAtom(Dummy prev)
Sets the given dummy containing the atom that comes just before
the first child atom of this "composed atom".
|
public ColorAtom(Atom atom, java.awt.Color bg, java.awt.Color c)
atom - the atom for which the given colors have to be setbg - the background colorc - the foreground colorpublic ColorAtom(java.awt.Color bg,
java.awt.Color c,
ColorAtom old)
bg - the background colorc - the foreground colorold - the ColorAtom for which the colorsettings should be overriden with the
given colors.public Box createBox(TeXEnvironment env)
AtomBox, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...public int getLeftType()
AtomgetLeftType in class Atompublic int getRightType()
AtomgetRightType in class Atompublic void setPreviousAtom(Dummy prev)
RowsetPreviousAtom in interface Rowprev - the dummy that comes just before this "composed atom"public static java.awt.Color getColor(java.lang.String s)