public static class SubTableLookup6Format2.SubstRuleFormat2 extends ContextualSubstRule
Constructor and Description |
---|
SubstRuleFormat2(SubTableLookup6Format2 subTable, int[] backtrackClassIds, int[] inputClassIds, int[] lookAheadClassIds, SubstLookupRecord[] substLookupRecords) |
Modifier and Type | Method and Description |
---|---|
int |
getBacktrackContextLength() |
int |
getContextLength() |
int |
getLookaheadContextLength() |
SubstLookupRecord[] |
getSubstLookupRecords() |
boolean |
isGlyphMatchesBacktrack(int glyphId, int atIdx)
Checks if glyph line element matches element from backtrack sequence of the rule.
|
boolean |
isGlyphMatchesInput(int glyphId, int atIdx)
Checks if glyph line element matches element from input sequence of the rule.
|
boolean |
isGlyphMatchesLookahead(int glyphId, int atIdx)
Checks if glyph line element matches element from lookahead sequence of the rule.
|
public SubstRuleFormat2(SubTableLookup6Format2 subTable, int[] backtrackClassIds, int[] inputClassIds, int[] lookAheadClassIds, SubstLookupRecord[] substLookupRecords)
public int getContextLength()
getContextLength
in class ContextualSubstRule
public int getLookaheadContextLength()
getLookaheadContextLength
in class ContextualSubstRule
public int getBacktrackContextLength()
getBacktrackContextLength
in class ContextualSubstRule
public SubstLookupRecord[] getSubstLookupRecords()
getSubstLookupRecords
in class ContextualSubstRule
SubstLookupRecord
. Each record specifies a position in the context glyph sequence and a LookupListIndex to the substitution lookup that is applied at that position.
public boolean isGlyphMatchesInput(int glyphId, int atIdx)
ContextualSubstRule
isGlyphMatchesInput
in class ContextualSubstRule
atIdx
- index in the rule sequence. Shall be: 0 < atIdx < ContextualSubstRule.getContextLength().
public boolean isGlyphMatchesLookahead(int glyphId, int atIdx)
ContextualSubstRule
isGlyphMatchesLookahead
in class ContextualSubstRule
atIdx
- index in rule sequence. Shall be: 0 <= atIdx < ContextualSubstRule.getLookaheadContextLength().
public boolean isGlyphMatchesBacktrack(int glyphId, int atIdx)
ContextualSubstRule
isGlyphMatchesBacktrack
in class ContextualSubstRule
atIdx
- index in rule sequence. Shall be: 0 <= atIdx < ContextualSubstRule.getBacktrackContextLength().
Copyright © 1998–2020 iText Group NV. All rights reserved.