Class FencedAtom
java.lang.Object
org.scilab.forge.jlatexmath.Atom
org.scilab.forge.jlatexmath.FencedAtom
- All Implemented Interfaces:
Cloneable
An atom representing a base atom surrounded with delimiters that change their size
according to the height of the base.
-
Field Summary
Fields inherited from class Atom
alignment, type, type_limits -
Constructor Summary
ConstructorsConstructorDescriptionFencedAtom(Atom base, SymbolAtom l, List m, SymbolAtom r) FencedAtom(Atom base, SymbolAtom l, SymbolAtom r) Creates a new FencedAtom from the given base and delimiters -
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.
-
Constructor Details
-
FencedAtom
Creates a new FencedAtom from the given base and delimiters- Parameters:
base- the base to be surrounded with delimitersl- the left delimiterr- the right delimiter
-
FencedAtom
-
-
Method Details
-
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
-
createBox
-