java.lang.Cloneable
public class FractionAtom extends Atom
alignment, type, type_limits
Constructor | Description |
---|---|
FractionAtom(Atom num,
Atom den) |
Uses the default thickness for the fraction line
|
FractionAtom(Atom num,
Atom den,
boolean rule) |
Uses the default thickness for the fraction line
|
FractionAtom(Atom num,
Atom den,
boolean noDef,
int unit,
float t) |
Depending on noDef, the given thickness and unit will be used (<-> the default
thickness).
|
FractionAtom(Atom num,
Atom den,
boolean rule,
int numAlign,
int denomAlign) |
Uses the default thickness for the fraction line.
|
FractionAtom(Atom num,
Atom den,
float defFactor,
int numAlign,
int denomAlign) |
The thickness of the fraction line will be "defFactor" times the default thickness.
|
FractionAtom(Atom num,
Atom den,
int unit,
float t) |
The thickness of the fraction line is determined by the given value "t" in the
given unit.
|
FractionAtom(Atom num,
Atom den,
int unit,
float t,
int numAlign,
int denomAlign) |
The thickness of the fraction line is determined by the given value "t" in the
given unit.
|
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 FractionAtom(Atom num, Atom den)
num
- the numeratorden
- the denominatorpublic FractionAtom(Atom num, Atom den, boolean rule)
num
- the numeratorden
- the denominatorrule
- whether the fraction line should be drawnpublic FractionAtom(Atom num, Atom den, boolean noDef, int unit, float t) throws InvalidUnitException
num
- the numeratorden
- the denominatornoDef
- whether the default thickness should not be used for the fraction lineunit
- a unit constant for the line thicknesst
- the thickness of the fraction line (in the given unit)InvalidUnitException
- if the given integer is not a valid unit constantpublic FractionAtom(Atom num, Atom den, boolean rule, int numAlign, int denomAlign)
num
- the numeratorden
- the denominatorrule
- whether the fraction line should be drawnnumAlign
- alignment of the numeratordenomAlign
- alignment of the denominatorpublic FractionAtom(Atom num, Atom den, float defFactor, int numAlign, int denomAlign)
num
- the numeratorden
- the denominatordefFactor
- the thickness of the fraction line relative to the default thicknessnumAlign
- alignment of the numeratordenomAlign
- alignment of the denominatorpublic FractionAtom(Atom num, Atom den, int unit, float t, int numAlign, int denomAlign)
num
- the numeratorden
- the denominatorunit
- a unit constant for the line thicknesst
- the thickness of the fraction line (in the given unit)numAlign
- alignment of the numeratordenomAlign
- alignment of the denominatorpublic FractionAtom(Atom num, Atom den, int unit, float t)
num
- the numeratorden
- the denominatorunit
- a unit constant for the line thicknesst
- the thickness of the fraction line (in the given unit)public Box createBox(TeXEnvironment env)
Atom
Box
, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...