org.extex.interpreter.parser
Interface DimenConvertible
- All Known Implementing Classes:
- Dimenexpr, DimenParameter, 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: 4399 $
- Author:
- Gerd Neugebauer, Michael Niedermair
convertDimen
long convertDimen(Context context,
TokenSource source,
Typesetter typesetter)
throws ConfigurationException,
HelpingException,
TypesetterException
- 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:
ConfigurationException - in case of an configuration error
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter