Package org.scilab.forge.jlatexmath
Class SpaceAtom
java.lang.Object
org.scilab.forge.jlatexmath.Atom
org.scilab.forge.jlatexmath.SpaceAtom
- All Implemented Interfaces:
Cloneable
An atom representing whitespace. The dimension values can be set using different
unit types.
-
Field Summary
Fields inherited from class org.scilab.forge.jlatexmath.Atom
alignment, type, type_limits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkUnit
(int unit) Check if the given unit is validcreateBox
(TeXEnvironment env) Convert this atom into aBox
, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ...static float
getFactor
(int unit, TeXEnvironment env) static float[]
static int
Methods inherited from class org.scilab.forge.jlatexmath.Atom
clone, getLeftType, getRightType
-
Constructor Details
-
SpaceAtom
public SpaceAtom() -
SpaceAtom
public SpaceAtom(int type) -
SpaceAtom
- Throws:
InvalidUnitException
-
SpaceAtom
public SpaceAtom(int widthUnit, float width, int heightUnit, float height, int depthUnit, float depth) throws InvalidUnitException - Throws:
InvalidUnitException
-
-
Method Details
-
checkUnit
Check if the given unit is valid- Parameters:
unit
- the unit's integer representation (a constant)- Throws:
InvalidUnitException
- if the given integer value does not represent a valid unit
-
getUnit
-
getLength
-
createBox
Description copied from class:Atom
Convert this atom into aBox
, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ... -
getFactor
-