|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scilab.forge.jlatexmath.Atom
org.scilab.forge.jlatexmath.ColorAtom
public class ColorAtom
An atom representing the foreground and background color of an other atom.
| Field Summary | |
|---|---|
static java.util.HashMap<java.lang.String,java.awt.Color> |
Colors
|
| Fields inherited from class org.scilab.forge.jlatexmath.Atom |
|---|
alignment, type, type_limits |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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, ... |
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". |
| Methods inherited from class org.scilab.forge.jlatexmath.Atom |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.HashMap<java.lang.String,java.awt.Color> Colors
| Constructor Detail |
|---|
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 color
public 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.| Method Detail |
|---|
public Box createBox(TeXEnvironment env)
AtomBox, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...
createBox in class Atomenv - the current environment settings
public int getLeftType()
Atom
getLeftType in class Atompublic int getRightType()
Atom
getRightType in class Atompublic void setPreviousAtom(Dummy prev)
Row
setPreviousAtom in interface Rowprev - the dummy that comes just before this "composed atom"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||