Class GlyphMappingTable.MappingRange
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphMappingTable.MappingRange
- Enclosing class:
- GlyphMappingTable
The
MappingRange
class encapsulates a glyph [start,end] range and
a mapping index.-
Constructor Summary
ConstructorDescriptionInstantiate a mapping range.MappingRange
(int gidStart, int gidEnd, int index) Instantiate a specific mapping range. -
Method Summary
Modifier and TypeMethodDescriptionint
getEnd()
int
getIndex()
int[]
int[]
getInterval
(int[] interval) Obtain interval, filled into first two elements of specified array, or returning new array.int
int
getStart()
-
Constructor Details
-
MappingRange
public MappingRange()Instantiate a mapping range. -
MappingRange
public MappingRange(int gidStart, int gidEnd, int index) Instantiate a specific mapping range.- Parameters:
gidStart
- start of rangegidEnd
- end of rangeindex
- mapping index
-
-
Method Details
-
getStart
public int getStart()- Returns:
- start of range
-
getEnd
public int getEnd()- Returns:
- end of range
-
getIndex
public int getIndex()- Returns:
- mapping index
-
getInterval
public int[] getInterval()- Returns:
- interval as a pair of integers
-
getInterval
public int[] getInterval(int[] interval) Obtain interval, filled into first two elements of specified array, or returning new array.- Parameters:
interval
- an array of length two or greater or null- Returns:
- interval as a pair of integers, filled into specified array
-
getLength
public int getLength()- Returns:
- length of interval
-