org.extex.font.format.tfm
Class TfmLigKern

java.lang.Object
  extended by org.extex.font.format.tfm.TfmLigKern
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TfmKerning, TfmLigature

public abstract class TfmLigKern
extends java.lang.Object
implements java.io.Serializable

TFM-LigKern.

Base class for Ligature and Kerning instructions. It handles the skip amount to the next instruction in the kern/lig program and the character code for the next character.

Version:
$Revision: 5837 $
Author:
Michael Niedermair
See Also:
lig_kern, Serialized Form

Constructor Summary
TfmLigKern(int askip, short next)
          Create a new object.
 
Method Summary
 TfmFixWord getKern()
          Return the kern.
 short getNextChar()
          Returns the nextChar.
 int nextIndex(int pos)
          Tells the index to the ligtable of the next instruction of lig/kern program for given index of this instruction.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TfmLigKern

public TfmLigKern(int askip,
                  short next)
Create a new object.

Parameters:
askip - the skip amount to the next instruction. 0 means the folowing instruction is the next, a number < 0 means that there is no next instruction (this is the last).
next - the code of the next character.
Method Detail

getKern

public TfmFixWord getKern()
Return the kern.

Returns:
Return the kern.

getNextChar

public short getNextChar()
Returns the nextChar.

Returns:
Returns the nextChar.

nextIndex

public int nextIndex(int pos)
Tells the index to the ligtable of the next instruction of lig/kern program for given index of this instruction.

Parameters:
pos - the index of this instruction.
Returns:
the index of the next instruction or NOINDEX if this is the last instruction of the lig/kern program.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()