Class GlyphDefinitionSubtable
- java.lang.Object
-
- org.apache.fop.complexscripts.fonts.GlyphSubtable
-
- org.apache.fop.complexscripts.fonts.GlyphDefinitionSubtable
-
- All Implemented Interfaces:
java.lang.Comparable
,GlyphDefinition
- Direct Known Subclasses:
GlyphDefinitionTable.AttachmentPointSubtable
,GlyphDefinitionTable.GlyphClassSubtable
,GlyphDefinitionTable.LigatureCaretSubtable
,GlyphDefinitionTable.MarkAttachmentSubtable
public abstract class GlyphDefinitionSubtable extends GlyphSubtable implements GlyphDefinition
The
GlyphDefinitionSubtable
implements an abstract base of a glyph definition subtable, providing a default implementation of theGlyphDefinition
interface.This work was originally authored by Glenn Adams (gadams@apache.org).
-
-
Field Summary
-
Fields inherited from class org.apache.fop.complexscripts.fonts.GlyphSubtable
LF_IGNORE_BASE, LF_IGNORE_LIGATURE, LF_IGNORE_MARK, LF_INTERNAL_USE_REVERSE_SCAN, LF_MARK_ATTACHMENT_TYPE, LF_RESERVED, LF_RIGHT_TO_LEFT, LF_USE_MARK_FILTERING_SET
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GlyphDefinitionSubtable(java.lang.String id, int sequence, int flags, int format, GlyphMappingTable mapping)
Instantiate aGlyphDefinitionSubtable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getTableType()
java.lang.String
getTypeName()
boolean
hasDefinition(int gi)
Determine if some definition is available for a specific glyph.boolean
usesReverseScan()
-
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphSubtable
compareTo, equals, getClasses, getCoverage, getCoverageIndex, getCoverageSize, getEntries, getFlags, getFlags, getFormat, getGDEF, getLookupId, getSequence, getTable, getType, hashCode, isCompatible, resolveLookupReferences, setTable, usesReverseScan
-
-
-
-
Constructor Detail
-
GlyphDefinitionSubtable
protected GlyphDefinitionSubtable(java.lang.String id, int sequence, int flags, int format, GlyphMappingTable mapping)
Instantiate aGlyphDefinitionSubtable
.- Parameters:
id
- subtable identifiersequence
- subtable sequenceflags
- subtable flagsformat
- subtable formatmapping
- subtable coverage table
-
-
Method Detail
-
getTableType
public int getTableType()
- Specified by:
getTableType
in classGlyphSubtable
- Returns:
- this subtable's table type
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in classGlyphSubtable
- Returns:
- this subtable's type name
-
usesReverseScan
public boolean usesReverseScan()
- Specified by:
usesReverseScan
in classGlyphSubtable
- Returns:
- true if subtable uses reverse scanning of glyph sequence, meaning from the last glyph in a glyph sequence to the first glyph
-
hasDefinition
public boolean hasDefinition(int gi)
Determine if some definition is available for a specific glyph.- Specified by:
hasDefinition
in interfaceGlyphDefinition
- Parameters:
gi
- a glyph index- Returns:
- true if some (unspecified) definition is available for the specified glyph
-
-