|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.jlatexmath.Atom
org.scilab.forge.jlatexmath.FractionAtom
public class FractionAtom
An atom representing a fraction.
Field Summary |
---|
Fields inherited from class org.scilab.forge.jlatexmath.Atom |
---|
alignment, type, type_limits |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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, ... |
Methods inherited from class org.scilab.forge.jlatexmath.Atom |
---|
clone, getLeftType, getRightType |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)Method Detail |
---|
public Box createBox(TeXEnvironment env)
Atom
Box
, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...
createBox
in class Atom
env
- the current environment settings
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |