de.dante.extex.interpreter.primitives.pdftex.util.destination
Class DestType

java.lang.Object
  extended byde.dante.extex.interpreter.primitives.pdftex.util.destination.DestType
Direct Known Subclasses:
FitrDestType, ZoomDestType

public abstract class DestType
extends java.lang.Object

This is the abstract base class for destination types in PDF.

Version:
$Revision: 1.6 $
Author:
Gerd Neugebauer

Field Summary
static DestType FIT
          The constant FIT contains the destination type fit.
static DestType FITB
          The constant FITB contains the destination type fitb.
static DestType FITBH
          The constant FITBH contains the destination type fitbh.
static DestType FITBV
          The constant FITBV contains the destination type fitbv.
static DestType FITH
          The constant FITH contains the destination type fith.
static DestType FITV
          The constant FITV contains the destination type fitv.
static DestType XYZ
          The constant XYZ contains the destination type xyz.
 
Constructor Summary
protected DestType()
          Creates a new object.
 
Method Summary
static DestType parseDestType(Context context, TokenSource source, Typesetter typesetter, java.lang.String name)
          Parse a destination type.
abstract  java.lang.Object visit(DestinationVisitor visitor)
          This method is the entry point for the visitor pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIT

public static final DestType FIT
The constant FIT contains the destination type fit.


FITB

public static final DestType FITB
The constant FITB contains the destination type fitb.


FITBH

public static final DestType FITBH
The constant FITBH contains the destination type fitbh.


FITBV

public static final DestType FITBV
The constant FITBV contains the destination type fitbv.


FITH

public static final DestType FITH
The constant FITH contains the destination type fith.


FITV

public static final DestType FITV
The constant FITV contains the destination type fitv.


XYZ

public static final DestType XYZ
The constant XYZ contains the destination type xyz.

Constructor Detail

DestType

protected DestType()
Creates a new object.

Method Detail

parseDestType

public static DestType parseDestType(Context context,
                                     TokenSource source,
                                     Typesetter typesetter,
                                     java.lang.String name)
                              throws InterpreterException
Parse a destination type.

Parameters:
context - the interpreter context
source - the source for new tokens
typesetter - the typesetter
name - the name of the invoking primitive
Returns:
the destination type
Throws:
InterpreterException - in case of an error

visit

public abstract java.lang.Object visit(DestinationVisitor visitor)
This method is the entry point for the visitor pattern.

Parameters:
visitor - the visitor to call back
Returns:
an arbitrary return object