java.lang.Cloneable
public class AccentedAtom extends Atom
Modifier and Type | Field | Description |
---|---|---|
protected Atom |
base |
|
protected Atom |
underbase |
alignment, type, type_limits
Constructor | Description |
---|---|
AccentedAtom(Atom base,
java.lang.String accentName) |
Creates an AccentedAtom from a base atom and an accent symbol defined by its name
|
AccentedAtom(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.
|
Modifier and Type | Method | Description |
---|---|---|
Box |
createBox(TeXEnvironment env) |
Convert this atom into a
Box , using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ... |
clone, getLeftType, getRightType
public AccentedAtom(Atom base, Atom accent) throws InvalidSymbolTypeException
InvalidSymbolTypeException
public AccentedAtom(Atom base, Atom accent, boolean changeSize) throws InvalidSymbolTypeException
InvalidSymbolTypeException
public AccentedAtom(Atom base, java.lang.String accentName) throws InvalidSymbolTypeException, SymbolNotFoundException
base
- base atomaccentName
- name of the accent symbol to be put over the base atomInvalidSymbolTypeException
- if the symbol is not defined as an accent ('acc')SymbolNotFoundException
- if there's no symbol defined with the given namepublic AccentedAtom(Atom base, TeXFormula acc) throws InvalidTeXFormulaException, InvalidSymbolTypeException
base
- base atomacc
- TeXFormula representing an accent (SymbolAtom)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')public Box createBox(TeXEnvironment env)
Atom
Box
, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...