org.extex.font.format.xtf.tables
Class AbstractXtfTable

java.lang.Object
  extended by org.extex.font.format.xtf.tables.AbstractXtfTable
All Implemented Interfaces:
XtfGlyphName, XtfTable
Direct Known Subclasses:
AbstractXtfSFLTable, OtfTableACNT, OtfTableAVAR, OtfTableBASE, OtfTableBDAT, OtfTableBLOC, OtfTableBSLN, OtfTableCFF, OtfTableCVAR, OtfTableDSIG, OtfTableFDSC, OtfTableFEAT, OtfTableFMTX, OtfTableFVAR, OtfTableGDEF, OtfTableGVAR, OtfTableJSTF, OtfTableJUST, OtfTableLCAR, OtfTableMMFX, OtfTableMMSD, OtfTableMORT, OtfTablePROP, OtfTableTRAK, OtfTableTYP1, TtfTableCMAP, TtfTableCVT, TtfTableEBDT, TtfTableEBLC, TtfTableEBSC, TtfTableFPGM, TtfTableGASP, TtfTableGLYF, TtfTableHDMX, TtfTableHEAD, TtfTableHHEA, TtfTableHMTX, TtfTableKERN, TtfTableLOCA, TtfTableLTSH, TtfTableMAXP, TtfTableNAME, TtfTableOS2, TtfTablePCLT, TtfTablePOST, TtfTablePREP, TtfTableVDMX, TtfTableVHEA, TtfTableVMTX

public abstract class AbstractXtfTable
extends java.lang.Object
implements XtfTable, XtfGlyphName

Abstract class for all TTF/OTF tables.

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Constructor Summary
AbstractXtfTable(XtfTableMap tm)
          Create a new object.
 
Method Summary
 java.lang.String getGlyphName(int idx)
          Returns the glyph name of a index.
 int getInitOrder()
          Returns a order number to sort the tables for the init process.
 XtfTableMap getTableMap()
          Returns the table map with all tables.
 void init()
          Initialize the table.
protected  void writeStartElement(XMLStreamWriter writer)
          Write the tag an the id attribute for the table element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.font.format.xtf.tables.XtfTable
getShortcut, getType
 

Constructor Detail

AbstractXtfTable

public AbstractXtfTable(XtfTableMap tm)
Create a new object.

Parameters:
tm - the table map
Method Detail

getGlyphName

public java.lang.String getGlyphName(int idx)
Returns the glyph name of a index.

Specified by:
getGlyphName in interface XtfGlyphName
Parameters:
idx - The index.
Returns:
Returns the glyph name of a index.

getInitOrder

public int getInitOrder()
Returns a order number to sort the tables for the init process.

Specified by:
getInitOrder in interface XtfTable
Returns:
Returns the order number.
See Also:
XtfTable.getInitOrder()

getTableMap

public XtfTableMap getTableMap()
Returns the table map with all tables.

Specified by:
getTableMap in interface XtfTable
Returns:
Returns the table map with all tables.
See Also:
XtfTable.getTableMap()

init

public void init()
          throws java.io.IOException
Initialize the table.

Specified by:
init in interface XtfTable
Throws:
java.io.IOException - if a IO-error is occurred.
See Also:
XtfTable.init()

writeStartElement

protected void writeStartElement(XMLStreamWriter writer)
                          throws java.io.IOException
Write the tag an the id attribute for the table element.

Parameters:
writer - The xml stream writer.
Throws:
java.io.IOException - if an IO-error occurred.