java.lang.Cloneable
public class SpaceAtom extends Atom
alignment, type, type_limits
Constructor | Description |
---|---|
SpaceAtom() |
|
SpaceAtom(int type) |
|
SpaceAtom(int unit,
float width,
float height,
float depth) |
|
SpaceAtom(int widthUnit,
float width,
int heightUnit,
float height,
int depthUnit,
float depth) |
Modifier and Type | Method | Description |
---|---|---|
static void |
checkUnit(int unit) |
Check if the given unit is valid
|
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, ... |
static float |
getFactor(int unit,
TeXEnvironment env) |
|
static float[] |
getLength(java.lang.String lgth) |
|
static int |
getUnit(java.lang.String unit) |
clone, getLeftType, getRightType
public SpaceAtom()
public SpaceAtom(int type)
public SpaceAtom(int unit, float width, float height, float depth) throws InvalidUnitException
InvalidUnitException
public SpaceAtom(int widthUnit, float width, int heightUnit, float height, int depthUnit, float depth) throws InvalidUnitException
InvalidUnitException
public static void checkUnit(int unit) throws InvalidUnitException
unit
- the unit's integer representation (a constant)InvalidUnitException
- if the given integer value does not represent
a valid unitpublic static int getUnit(java.lang.String unit)
public static float[] getLength(java.lang.String lgth)
public Box createBox(TeXEnvironment env)
Atom
Box
, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...public static float getFactor(int unit, TeXEnvironment env)