de.dante.extex.interpreter.type.color
Interface ColorConvertible

All Known Implementing Classes:
AbstractColor

public interface ColorConvertible

This is an interface which describes the feature to be convertible into a color.

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer

Method Summary
 Color convertColor(Context context, TokenSource source, Typesetter typesetter)
          This method converts something into a color.
 

Method Detail

convertColor

public Color convertColor(Context context,
                          TokenSource source,
                          Typesetter typesetter)
                   throws InterpreterException
This method converts something into a color. 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.

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