org.extex.font.format.xtf.tables.gps
Class Class1Record

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.Class1Record
All Implemented Interfaces:
XMLWriterConvertible

public class Class1Record
extends java.lang.Object
implements XMLWriterConvertible

Class for a Class1Record.

Version:
$Revision: 7274 $
Author:
Michael Niedermair

Constructor Summary
Class1Record(RandomAccessR rar, int posOffset, int class2Count, XtfGlyphName xtfGlyph, int idx, int valueFormat1, int valueFormat2)
          Creates a new object.
 
Method Summary
 Class2Record getClass2Record(int classidx)
          Returns the class or null, if not found.
 Class2Record[] getClass2RecordArray()
          Getter for class2RecordArray.
 void init(RandomAccessR rar, int posOffset)
          Initialize the ValueRecord.
 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
 

Constructor Detail

Class1Record

public Class1Record(RandomAccessR rar,
                    int posOffset,
                    int class2Count,
                    XtfGlyphName xtfGlyph,
                    int idx,
                    int valueFormat1,
                    int valueFormat2)
             throws java.io.IOException
Creates a new object.

Parameters:
rar - The input.
class2Count - The class2count value.
posOffset - The offset of the pos table (GPOS, GSUB).
idx - The index.
valueFormat2 - The format for the second glyph.
valueFormat1 - The format for the first glyph.
xtfGlyph - The glyph name.
Throws:
java.io.IOException - if a io-error occurred.
Method Detail

getClass2Record

public Class2Record getClass2Record(int classidx)
Returns the class or null, if not found.

Parameters:
classidx - The class index.
Returns:
Returns the class or null, if not found.

getClass2RecordArray

public Class2Record[] getClass2RecordArray()
Getter for class2RecordArray.

Returns:
the class2RecordArray

init

public void init(RandomAccessR rar,
                 int posOffset)
          throws java.io.IOException
Initialize the ValueRecord.

Parameters:
rar - The input.
posOffset - The offset of the pos table.
Throws:
java.io.IOException - if a IO-error occurred.

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
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( org.extex.util.xml.XMLStreamWriter)