de.dante.extex.interpreter.type.dimen
Interface DimenConvertible
- All Known Implementing Classes:
- Dimenexpr, DimenPrimitive, Dp, Fontchardp, Fontcharht, Fontcharic, Fontcharwd, Glueshrink, Glueshrinkorder, Gluestretch, Gluestretchorder, Ht, Lastkern, Lastpenalty, Lccode, LeftHyphenmin, Parshapedimen, Parshapeindent, Parshapelength, Prevdepth, RightHyphenmin, Sfcode, Uccode, Wd
- public interface DimenConvertible
This is an interface which describes the feature to be convertible into a
dimen.
- Version:
- $Revision: 1.6 $
- Author:
- Gerd Neugebauer, Michael Niedermair
convertDimen
public long convertDimen(Context context,
TokenSource source,
Typesetter typesetter)
throws InterpreterException
- This method converts a register into a dimen.
It might be necessary to read further tokens to determine which value to
use. For instance an additional register number might be required. In
this case the additional arguments Context and TokenSource can be used.
The return value is the length in scaled points.
- Parameters:
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesetter to use for conversion
- Returns:
- the converted value in sp
- Throws:
InterpreterException
- in case of an error