Class TypedAtom

java.lang.Object
org.scilab.forge.jlatexmath.Atom
org.scilab.forge.jlatexmath.TypedAtom
All Implemented Interfaces:
Cloneable

public class TypedAtom extends Atom
An atom representing another atom with an overrided lefttype and righttype. This affects the glue inserted before and after this atom.
  • Constructor Details

    • TypedAtom

      public TypedAtom(int leftType, int rightType, Atom atom)
  • Method Details

    • getBase

      public Atom getBase()
    • createBox

      public Box createBox(TeXEnvironment env)
      Description copied from class: Atom
      Convert this atom into a Box, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ...
      Specified by:
      createBox in class Atom
      Parameters:
      env - the current environment settings
      Returns:
      the resulting box.
    • getLeftType

      public int getLeftType()
      Description copied from class: Atom
      Get 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:
      getLeftType in class Atom
      Returns:
      the type of the leftermost child atom
    • getRightType

      public int getRightType()
      Description copied from class: Atom
      Get 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:
      getRightType in class Atom
      Returns:
      the type of the rightermost child atom