Package org.scilab.forge.jlatexmath
Class SpaceAtom
- java.lang.Object
-
- org.scilab.forge.jlatexmath.Atom
-
- org.scilab.forge.jlatexmath.SpaceAtom
-
- All Implemented Interfaces:
java.lang.Cloneable
public class SpaceAtom extends Atom
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckUnit(int unit)Check if the given unit is validBoxcreateBox(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[]getLength(java.lang.String lgth)static intgetUnit(java.lang.String unit)-
Methods inherited from class org.scilab.forge.jlatexmath.Atom
clone, getLeftType, getRightType
-
-
-
-
Constructor Detail
-
SpaceAtom
public SpaceAtom()
-
SpaceAtom
public SpaceAtom(int type)
-
SpaceAtom
public SpaceAtom(int unit, float width, float height, float depth) throws InvalidUnitException- Throws:
InvalidUnitException
-
SpaceAtom
public SpaceAtom(int widthUnit, float width, int heightUnit, float height, int depthUnit, float depth) throws InvalidUnitException- Throws:
InvalidUnitException
-
-
Method Detail
-
checkUnit
public static void checkUnit(int unit) throws InvalidUnitExceptionCheck 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
public static int getUnit(java.lang.String unit)
-
getLength
public static float[] getLength(java.lang.String lgth)
-
createBox
public Box createBox(TeXEnvironment env)
Description copied from class:AtomConvert this atom into aBox, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ...
-
getFactor
public static float getFactor(int unit, TeXEnvironment env)
-
-