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 Atom
alignment, type, type_limits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckUnit(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 floatgetFactor(int unit, TeXEnvironment env) static float[]static intMethods inherited from class 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
-
getFactor
-