|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.complexscripts.fonts.GlyphSubtable
public abstract class GlyphSubtable
The GlyphSubtable
implements an abstract glyph subtable that
encapsulates identification, type, format, and coverage information.
This work was originally authored by Glenn Adams (gadams@apache.org).
Field Summary | |
---|---|
static int |
LF_IGNORE_BASE
lookup flag - ignore base glyphs |
static int |
LF_IGNORE_LIGATURE
lookup flag - ignore ligatures |
static int |
LF_IGNORE_MARK
lookup flag - ignore marks |
static int |
LF_INTERNAL_USE_REVERSE_SCAN
internal flag - use reverse scan |
static int |
LF_MARK_ATTACHMENT_TYPE
lookup flag - mark attachment type |
static int |
LF_RESERVED
lookup flag - reserved |
static int |
LF_RIGHT_TO_LEFT
lookup flag - right to left |
static int |
LF_USE_MARK_FILTERING_SET
lookup flag - use mark filtering set |
Constructor Summary | |
---|---|
protected |
GlyphSubtable(java.lang.String lookupId,
int sequence,
int flags,
int format,
GlyphMappingTable mapping)
Instantiate this glyph subtable. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
GlyphClassMapping |
getClasses()
|
GlyphCoverageMapping |
getCoverage()
|
int |
getCoverageIndex(int gid)
Map glyph id to coverage index. |
int |
getCoverageSize()
Map glyph id to coverage index. |
abstract java.util.List |
getEntries()
|
int |
getFlags()
|
static int |
getFlags(GlyphSubtable[] subtables)
Determine consistent flags for a set of subtables. |
int |
getFormat()
|
GlyphDefinitionTable |
getGDEF()
|
java.lang.String |
getLookupId()
|
int |
getSequence()
|
GlyphTable |
getTable()
|
abstract int |
getTableType()
|
abstract int |
getType()
|
abstract java.lang.String |
getTypeName()
|
int |
hashCode()
|
abstract boolean |
isCompatible(GlyphSubtable subtable)
Determine if a glyph subtable is compatible with this glyph subtable. |
void |
resolveLookupReferences(java.util.Map lookupTables)
Resolve references to lookup tables, e.g., in RuleLookup, to the lookup tables themselves. |
void |
setTable(GlyphTable table)
Establish a weak reference from this subtable to its parent table. |
abstract boolean |
usesReverseScan()
|
static boolean |
usesReverseScan(GlyphSubtable[] subtables)
Determine if any of the specified subtables uses reverse scanning. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LF_RIGHT_TO_LEFT
public static final int LF_IGNORE_BASE
public static final int LF_IGNORE_LIGATURE
public static final int LF_IGNORE_MARK
public static final int LF_USE_MARK_FILTERING_SET
public static final int LF_RESERVED
public static final int LF_MARK_ATTACHMENT_TYPE
public static final int LF_INTERNAL_USE_REVERSE_SCAN
Constructor Detail |
---|
protected GlyphSubtable(java.lang.String lookupId, int sequence, int flags, int format, GlyphMappingTable mapping)
lookupId
- lookup identifier, having form of "lu%d" where %d is index of lookup in lookup listsequence
- subtable sequence (within lookup), starting with zeroflags
- subtable flagsformat
- subtable formatmapping
- subtable mapping tableMethod Detail |
---|
public java.lang.String getLookupId()
public abstract int getTableType()
public abstract int getType()
public abstract java.lang.String getTypeName()
public abstract boolean isCompatible(GlyphSubtable subtable)
subtable
- a glyph subtable to determine compatibility
public abstract boolean usesReverseScan()
public int getSequence()
public int getFlags()
public int getFormat()
public GlyphDefinitionTable getGDEF()
public GlyphCoverageMapping getCoverage()
public GlyphClassMapping getClasses()
public abstract java.util.List getEntries()
public GlyphTable getTable()
public void setTable(GlyphTable table) throws java.lang.IllegalStateException
null
, then
clear and remove weak reference.
table
- the table or null
java.lang.IllegalStateException
- if table is already set to non-nullpublic void resolveLookupReferences(java.util.Map lookupTables)
lookupTables
- map from lookup table identifers, e.g. "lu4", to lookup tablespublic int getCoverageIndex(int gid)
gid
- glyph id
public int getCoverageSize()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public static boolean usesReverseScan(GlyphSubtable[] subtables)
subtables
- array of glyph subtables
public static int getFlags(GlyphSubtable[] subtables) throws java.lang.IllegalStateException
subtables
- array of glyph subtables
java.lang.IllegalStateException
- if inconsistent flags
|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |