org.extex.unit.color
Class AbstractColor

java.lang.Object
  extended by org.extex.interpreter.type.AbstractCode
      extended by org.extex.interpreter.type.AbstractAssignment
          extended by org.extex.unit.color.AbstractColor
All Implemented Interfaces:
java.io.Serializable, Code, ColorConvertible, 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: 6447 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.extex.interpreter.type.AbstractCode
serialVersionUID
 
Constructor Summary
AbstractColor(CodeToken token)
          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 org.extex.interpreter.type.AbstractAssignment
assign, execute
 
Methods inherited from class org.extex.interpreter.type.AbstractCode
getLocalizer, getName, getToken, isIf, isOuter, readResolve, toString, toText, toText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.extex.interpreter.type.color.ColorConvertible
convertColor
 

Constructor Detail

AbstractColor

public AbstractColor(CodeToken token)
Creates a new object.

Parameters:
token - the initial token for the primitive
Method Detail

show

public Tokens show(Context context)
            throws HelpingException
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:
HelpingException - in case of an error
See Also:
Showable.show( org.extex.interpreter.context.Context)

the

public Tokens the(Context context,
                  TokenSource source,
                  Typesetter typesetter)
           throws HelpingException,
                  TypesetterException
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:
HelpingException - in case of an error
TypesetterException - in case of an error
See Also:
Theable.the( org.extex.interpreter.context.Context, org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)