Modifier and Type | Field | Description |
---|---|---|
static java.util.Map<java.lang.String,java.awt.Color> |
Colors |
alignment, type, type_limits
Constructor | Description |
---|---|
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.
|
ColorAtom(Atom atom,
java.awt.Color bg,
java.awt.Color c) |
Creates a new ColorAtom that sets the given colors for the given atom.
|
Modifier and Type | Method | 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)
Atom
Box
, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...public int getLeftType()
Atom
getLeftType
in class Atom
public int getRightType()
Atom
getRightType
in class Atom
public void setPreviousAtom(Dummy prev)
Row
setPreviousAtom
in interface Row
prev
- the dummy that comes just before this "composed atom"public static java.awt.Color getColor(java.lang.String s)