de.dante.extex.font.type.tfm
Class TFMParamArray

java.lang.Object
  extended byde.dante.extex.font.type.tfm.TFMParamArray
All Implemented Interfaces:
EFMWriterConvertible, PlFormat, java.io.Serializable, XMLWriterConvertible

public class TFMParamArray
extends java.lang.Object
implements XMLWriterConvertible, EFMWriterConvertible, PlFormat, java.io.Serializable

Class for TFM param table.

param : array [0 .. (np-1)] of fix word

Information from: The DVI Driver Standard, Level 0 The TUG DVI Driver Standards Committee

Version:
$Revision: 1.5 $
Author:
Michael Niedermair
See Also:
Serialized Form

Field Summary
static java.lang.String[] LABEL_MATHEX
          labels for MATHEX
static java.lang.String[] LABEL_MATHSY
          lables for MATHSY
static java.lang.String[] LABEL_VANILLA
          labels for VANILLA
 
Constructor Summary
TFMParamArray(RandomAccessR rar, int size, TFMFontType ft)
          Create a new object
 
Method Summary
 void addParam(org.jdom.Element element)
          Add the param to the element.
 java.lang.String getLabelName(int id)
          Returns the label of the parameter, or a empty string, if no labelname exits.
 TFMFixWord[] getTable()
          Returns the table.
 void toPL(PlWriter out)
          Print all information (jn PL-format) to the writer.
 void writeEFM(XMLStreamWriter writer)
          Write the efm data to a XMLStreamWriter.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL_VANILLA

public static final java.lang.String[] LABEL_VANILLA
labels for VANILLA


LABEL_MATHSY

public static final java.lang.String[] LABEL_MATHSY
lables for MATHSY


LABEL_MATHEX

public static final java.lang.String[] LABEL_MATHEX
labels for MATHEX

Constructor Detail

TFMParamArray

public TFMParamArray(RandomAccessR rar,
                     int size,
                     TFMFontType ft)
              throws java.io.IOException
Create a new object

Parameters:
rar - the input
size - number of words in the table
ft - the fonttpye
Throws:
java.io.IOException - if an IO-error occurs.
Method Detail

getTable

public TFMFixWord[] getTable()
Returns the table.

Returns:
Returns the table.

getLabelName

public java.lang.String getLabelName(int id)
Returns the label of the parameter, or a empty string, if no labelname exits.

Parameters:
id - the id
Returns:
Returns the label of the parameter.

addParam

public void addParam(org.jdom.Element element)
Add the param to the element.

Parameters:
element - the element

toPL

public void toPL(PlWriter out)
          throws java.io.IOException
Description copied from interface: PlFormat
Print all information (jn PL-format) to the writer.

Specified by:
toPL in interface PlFormat
Parameters:
out - the plwriter
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
PlFormat.toPL(de.dante.extex.font.type.PlWriter)

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Description copied from interface: XMLWriterConvertible
Write the data to a XMLStreamWriter.

Specified by:
writeXML in interface XMLWriterConvertible
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML(de.dante.util.xml.XMLStreamWriter)

writeEFM

public void writeEFM(XMLStreamWriter writer)
              throws java.io.IOException
Description copied from interface: EFMWriterConvertible
Write the efm data to a XMLStreamWriter.

Specified by:
writeEFM in interface EFMWriterConvertible
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
EFMWriterConvertible.writeEFM(de.dante.util.xml.XMLStreamWriter)