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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.XtfCoverage.RangeRecord
All Implemented Interfaces:
XMLWriterConvertible
Enclosing class:
XtfCoverage

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

Coverage Index (GlyphID) = StartCoverageIndex + GlyphID - Start GlyphID


Method Summary
 int getCoverageIndex(int glyphId)
          Returns the coverage index
 int getEnd()
          Getter for end.
 int getStart()
          Getter for start.
 boolean isInRange(int glyphId)
          Check, if the glyph id is in the range.
 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
 

Method Detail

getCoverageIndex

public int getCoverageIndex(int glyphId)
Returns the coverage index

Parameters:
glyphId - the glyph id
Returns:
Returns the coverage index

getEnd

public int getEnd()
Getter for end.

Returns:
the end

getStart

public int getStart()
Getter for start.

Returns:
the start

isInRange

public boolean isInRange(int glyphId)
Check, if the glyph id is in the range.

Parameters:
glyphId - the glyph id
Returns:
Check, if the glyph id is in the range.

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)