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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.XtfCoverage
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
XtfCoverage.CoverageFormat1, XtfCoverage.CoverageFormat2

public abstract class XtfCoverage
extends java.lang.Object
implements XMLWriterConvertible

Abstract class for all coverage

Version:
$Revision: 7274 $
Author:
Michael Niedermair

Nested Class Summary
static class XtfCoverage.CoverageFormat1
          Coverage for FORMAT1
static class XtfCoverage.CoverageFormat2
          Coverage for FORMAT2.
 class XtfCoverage.RangeRecord
          Coverage Index (GlyphID) = StartCoverageIndex + GlyphID - Start GlyphID
 
Method Summary
abstract  int findGlyph(int glyphId)
          Returns the index of the glyph in the coverage table.
 int getFormat()
          Returns the format
abstract  int[] getGlyphs()
          Returns the glyphs from the coverage.
 XtfGlyphName getXtfGlyph()
          Getter for xtfGlyph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.util.xml.XMLWriterConvertible
writeXML
 

Method Detail

findGlyph

public abstract int findGlyph(int glyphId)
Returns the index of the glyph in the coverage table.

Parameters:
glyphId - The ID of the glyph to find.
Returns:
Returns the index of the glyph within the coverage, or -1 if the glyph can't be found.

getFormat

public int getFormat()
Returns the format

Returns:
Returns the format

getGlyphs

public abstract int[] getGlyphs()
Returns the glyphs from the coverage.

Returns:
Returns the glyphs from the coverage.

getXtfGlyph

public XtfGlyphName getXtfGlyph()
Getter for xtfGlyph.

Returns:
the xtfGlyph