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.

$Revision: 1.6 $
Gerd Neugebauer, Michael Niedermair

Method Summary
 long convertDimen(Context context, TokenSource source, Typesetter typesetter)
          This method converts a register into a dimen.

Method Detail


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.

context - the interpreter context
source - the source for new tokens
typesetter - the typesetter to use for conversion
the converted value in sp
InterpreterException - in case of an error