Class PhantomAtom
java.lang.Object
org.scilab.forge.jlatexmath.Atom
org.scilab.forge.jlatexmath.PhantomAtom
-
Field Summary
Fields inherited from class Atom
alignment, type, type_limits -
Constructor Summary
ConstructorsConstructorDescriptionPhantomAtom(Atom el) PhantomAtom(Atom el, boolean width, boolean height, boolean depth) -
Method Summary
Modifier and TypeMethodDescriptioncreateBox(TeXEnvironment env) Convert this atom into aBox, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ...intGet the type of the leftermost child atom.intGet the type of the rightermost child atom.voidsetPreviousAtom(Dummy prev) Sets the given dummy containing the atom that comes just before the first child atom of this "composed atom".
-
Constructor Details
-
PhantomAtom
-
PhantomAtom
-
-
Method Details
-
createBox
-
getLeftType
public int getLeftType()Description copied from class:AtomGet the type of the leftermost child atom. Most atoms have no child atoms, so the "left type" and the "right type" are the same: the atom's type. This also is the default implementation. But Some atoms are composed of child atoms put one after another in a horizontal row. These atoms must override this method.- Overrides:
getLeftTypein classAtom- Returns:
- the type of the leftermost child atom
-
getRightType
public int getRightType()Description copied from class:AtomGet the type of the rightermost child atom. Most atoms have no child atoms, so the "left type" and the "right type" are the same: the atom's type. This also is the default implementation. But Some atoms are composed of child atoms put one after another in a horizontal row. These atoms must override this method.- Overrides:
getRightTypein classAtom- Returns:
- the type of the rightermost child atom
-
setPreviousAtom
Description copied from interface:RowSets the given dummy containing the atom that comes just before the first child atom of this "composed atom". This method will allways be called by another composed atom, so this composed atom will be a child of it (nested). This is necessary to determine the glue to insert between the first child atom of this nested composed atom and the atom that the dummy contains.- Specified by:
setPreviousAtomin interfaceRow- Parameters:
prev- the dummy that comes just before this "composed atom"
-