de.dante.extex.interpreter.primitives.color
Class AbstractColor

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.type.AbstractAssignment
          extended byde.dante.extex.interpreter.primitives.color.AbstractColor
All Implemented Interfaces:
Code, ColorConvertible, Localizable, java.io.Serializable, Showable, Theable
Direct Known Subclasses:
ColorPrimitive

public abstract class AbstractColor
extends AbstractAssignment
implements ColorConvertible, Theable, Showable

This class is a abstract base class for color primitives.

Version:
$Revision: 1.1 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.dante.extex.interpreter.type.AbstractCode
serialVersionUID
 
Constructor Summary
AbstractColor(java.lang.String name)
          Creates a new object.
 
Method Summary
 Tokens show(Context context)
          This method is the getter for the description of the primitive.
 Tokens the(Context context, TokenSource source, Typesetter typesetter)
          This method is the getter for the description of the primitive.
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractAssignment
assign, execute
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractCode
enableLocalization, getLocalizer, getName, isIf, isOuter, printable, printableControlSequence, readResolve, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.dante.extex.interpreter.type.color.ColorConvertible
convertColor
 

Constructor Detail

AbstractColor

public AbstractColor(java.lang.String name)
Creates a new object.

Parameters:
name - the name for tracing
Method Detail

show

public Tokens show(Context context)
            throws InterpreterException
Description copied from interface: Showable
This method is the getter for the description of the primitive.

Specified by:
show in interface Showable
Parameters:
context - the interpreter context
Returns:
the description of the primitive as list of Tokens
Throws:
InterpreterException - in case of an error
See Also:
Showable.show( de.dante.extex.interpreter.context.Context)

the

public Tokens the(Context context,
                  TokenSource source,
                  Typesetter typesetter)
           throws InterpreterException
Description copied from interface: Theable
This method is the getter for the description of the primitive.

Specified by:
the in interface Theable
Parameters:
context - the interpreter context
source - the source for further tokens to qualify the request
typesetter - the typesetter to use
Returns:
the description of the primitive as list of Tokens
Throws:
InterpreterException - in case of an error
See Also:
Theable.the( de.dante.extex.interpreter.context.Context, de.dante.extex.interpreter.TokenSource, de.dante.extex.typesetter.Typesetter)