Package org.scilab.forge.jlatexmath
Class UnderOverAtom
- java.lang.Object
-
- org.scilab.forge.jlatexmath.Atom
-
- org.scilab.forge.jlatexmath.UnderOverAtom
-
- All Implemented Interfaces:
java.lang.Cloneable
public class UnderOverAtom extends Atom
An atom representing another atom with an atom above it (if not null) seperated by a kern and in a smaller size depending on "overScriptSize" and/or an atom under it (if not null) seperated by a kern and in a smaller size depending on "underScriptSize"
-
-
Field Summary
-
Fields inherited from class org.scilab.forge.jlatexmath.Atom
alignment, type, type_limits
-
-
Constructor Summary
Constructors Constructor Description UnderOverAtom(Atom base, Atom underOver, int underOverUnit, float underOverSpace, boolean underOverScriptSize, boolean over)UnderOverAtom(Atom base, Atom under, int underUnit, float underSpace, boolean underScriptSize, Atom over, int overUnit, float overSpace, boolean overScriptSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoxcreateBox(TeXEnvironment env)Convert this atom into aBox, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ...intgetLeftType()Get the type of the leftermost child atom.intgetRightType()Get the type of the rightermost child atom.
-
-
-
Constructor Detail
-
UnderOverAtom
public UnderOverAtom(Atom base, Atom underOver, int underOverUnit, float underOverSpace, boolean underOverScriptSize, boolean over)
-
UnderOverAtom
public UnderOverAtom(Atom base, Atom under, int underUnit, float underSpace, boolean underScriptSize, Atom over, int overUnit, float overSpace, boolean overScriptSize) throws InvalidUnitException
- Throws:
InvalidUnitException
-
-
Method Detail
-
createBox
public Box createBox(TeXEnvironment env)
Description copied from class:AtomConvert this atom into aBox, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ...
-
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
-
-