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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.AbstractXtfTable
      extended by org.extex.font.format.xtf.tables.gps.AbstractXtfSFLTable
All Implemented Interfaces:
LookupTableFactory, XtfGlyphName, XtfTable, XMLWriterConvertible
Direct Known Subclasses:
OtfTableGPOS, OtfTableGSUB

public abstract class AbstractXtfSFLTable
extends AbstractXtfTable
implements XtfTable, LookupTableFactory, XMLWriterConvertible

Abstract class for the GSUB and GPOS table.

To handle the sample tables: ScriptList, FeatureList, LookupList

Version:
$Revision: 6679 $
Author:
Michael Niedermair

Field Summary
protected  XtfFeatureList featureList
          The feature list.
protected  XtfLookupList lookupList
          The lookup list.
protected  XtfScriptList scriptList
          The script list.
 
Constructor Summary
AbstractXtfSFLTable(XtfTableMap tablemap, XtfTableDirectory.Entry de, RandomAccessR rar)
          Create a new object
 
Method Summary
 XtfScriptList.LangSys findLangSys(ScriptTag tag, LanguageSystemTag language)
          Find the language system.
 XtfLookup[] findLookup(ScriptTag tag, LanguageSystemTag language, FeatureTag feature)
          Find the lookups.
 XtfScriptList.Script findScript(ScriptTag tag)
          Find a script.
 XtfFeatureList getFeatureList()
          Getter for featureList.
 java.lang.String getFeatureTag(int idx)
           
 XtfLookupList getLookupList()
          Getter for lookupList.
 XtfScriptList getScriptList()
          Getter for scriptList.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.AbstractXtfTable
getGlyphName, getInitOrder, getTableMap, init, writeStartElement
 
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
getInitOrder, getShortcut, getTableMap, getType, init
 
Methods inherited from interface org.extex.font.format.xtf.tables.gps.LookupTableFactory
lookupType, read
 

Field Detail

featureList

protected XtfFeatureList featureList
The feature list.


lookupList

protected XtfLookupList lookupList
The lookup list.


scriptList

protected XtfScriptList scriptList
The script list.

Constructor Detail

AbstractXtfSFLTable

public AbstractXtfSFLTable(XtfTableMap tablemap,
                           XtfTableDirectory.Entry de,
                           RandomAccessR rar)
                    throws java.io.IOException
Create a new object

Parameters:
tablemap - the table map
de - directory entry
rar - input
Throws:
java.io.IOException - if an IO-error occurs
Method Detail

findLangSys

public XtfScriptList.LangSys findLangSys(ScriptTag tag,
                                         LanguageSystemTag language)
Find the language system.

Parameters:
tag - The script tag.
language - The language.
Returns:
Returns the language system or null, if not found.

findLookup

public XtfLookup[] findLookup(ScriptTag tag,
                              LanguageSystemTag language,
                              FeatureTag feature)
Find the lookups.

Parameters:
tag - The tag.
language - The language.
feature - The feature.
Returns:
Returns the lookups, or null, if nothing is found.

findScript

public XtfScriptList.Script findScript(ScriptTag tag)
Find a script.

Parameters:
tag - The script tag.
Returns:
returns the script or null, if not found.

getFeatureList

public XtfFeatureList getFeatureList()
Getter for featureList.

Returns:
the featureList

getFeatureTag

public java.lang.String getFeatureTag(int idx)
See Also:
XtfFeatureList.getFeatureTag(int)

getLookupList

public XtfLookupList getLookupList()
Getter for lookupList.

Returns:
the lookupList

getScriptList

public XtfScriptList getScriptList()
Getter for scriptList.

Returns:
the scriptList

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)