Class AccentedAtom
java.lang.Object
org.scilab.forge.jlatexmath.Atom
org.scilab.forge.jlatexmath.AccentedAtom
- All Implemented Interfaces:
Cloneable
An atom representing another atom with an accent symbol above it.
-
Field Summary
FieldsFields inherited from class Atom
alignment, type, type_limits -
Constructor Summary
ConstructorsConstructorDescriptionAccentedAtom(Atom base, String accentName) Creates an AccentedAtom from a base atom and an accent symbol defined by its nameAccentedAtom(Atom base, Atom accent) AccentedAtom(Atom base, Atom accent, boolean changeSize) AccentedAtom(Atom base, TeXFormula acc) Creates an AccentedAtom from a base atom and an accent symbol defined as a TeXFormula. -
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, ...Methods inherited from class Atom
clone, getLeftType, getRightType
-
Field Details
-
base
-
underbase
-
-
Constructor Details
-
AccentedAtom
- Throws:
InvalidSymbolTypeException
-
AccentedAtom
- Throws:
InvalidSymbolTypeException
-
AccentedAtom
public AccentedAtom(Atom base, String accentName) throws InvalidSymbolTypeException, SymbolNotFoundException Creates an AccentedAtom from a base atom and an accent symbol defined by its name- Parameters:
base- base atomaccentName- name of the accent symbol to be put over the base atom- Throws:
InvalidSymbolTypeException- if the symbol is not defined as an accent ('acc')SymbolNotFoundException- if there's no symbol defined with the given name
-
AccentedAtom
public AccentedAtom(Atom base, TeXFormula acc) throws InvalidTeXFormulaException, InvalidSymbolTypeException Creates an AccentedAtom from a base atom and an accent symbol defined as a TeXFormula. This is used for parsing MathML.- Parameters:
base- base atomacc- TeXFormula representing an accent (SymbolAtom)- Throws:
InvalidTeXFormulaException- if the given TeXFormula does not represent a single SymbolAtom (type "TeXConstants.TYPE_ACCENT")InvalidSymbolTypeException- if the symbol is not defined as an accent ('acc')
-
-
Method Details