public class GlyphLine extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
GlyphLine.ActualText |
static class |
GlyphLine.GlyphLinePart |
static interface |
GlyphLine.IGlyphLineFilter |
Modifier and Type | Field and Description |
---|---|
protected List<GlyphLine.ActualText> |
actualText |
int |
end |
protected List<Glyph> |
glyphs |
int |
idx |
int |
start |
Modifier | Constructor and Description |
---|---|
|
GlyphLine() |
|
GlyphLine(GlyphLine other)
Copy a line of Glyphs.
|
|
GlyphLine(GlyphLine other, int start, int end)
Copy a slice of a line of Glyphs
|
|
GlyphLine(List<Glyph> glyphs)
Create a new line of Glyphs.
|
|
GlyphLine(List<Glyph> glyphs, int start, int end)
Create a new line of Glyphs from a slice of a List of Glyphs.
|
protected |
GlyphLine(List<Glyph> glyphs, List<GlyphLine.ActualText> actualText, int start, int end)
Create a new line of Glyphs from a slice of a List of Glyphs, and add the actual text.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Glyph glyph) |
void |
add(int index, Glyph glyph) |
GlyphLine |
copy(int left, int right)
Copy a slice of this Glyphline.
|
boolean |
equals(Object obj) |
GlyphLine |
filter(GlyphLine.IGlyphLineFilter filter) |
Glyph |
get(int index) |
Iterator<GlyphLine.GlyphLinePart> |
iterator() |
void |
replaceContent(GlyphLine other) |
Glyph |
set(int index, Glyph glyph) |
void |
setActualText(int left, int right, String text) |
void |
setGlyphs(List<Glyph> replacementGlyphs) |
int |
size() |
void |
substituteManyToOne(OpenTypeFontTableReader tableReader, int lookupFlag, int rightPartLen, int substitutionGlyphIndex) |
void |
substituteOneToMany(OpenTypeFontTableReader tableReader, int[] substGlyphIds) |
void |
substituteOneToOne(OpenTypeFontTableReader tableReader, int substitutionGlyphIndex) |
String |
toString() |
String |
toUnicodeString(int start, int end)
Get the unicode string representation of the GlyphLine slice.
|
protected List<GlyphLine.ActualText> actualText
public int start
public int end
public int idx
public GlyphLine()
public GlyphLine(List<Glyph> glyphs)
glyphs
- list containing the glyphs
public GlyphLine(List<Glyph> glyphs, int start, int end)
glyphs
- list of Glyphs to slice
start
- starting index of the slice
end
- terminating index of the slice
protected GlyphLine(List<Glyph> glyphs, List<GlyphLine.ActualText> actualText, int start, int end)
glyphs
- list of Glyphs to slice
actualText
- corresponding list containing the actual text the glyphs represent
start
- starting index of the slice
end
- terminating index of the slice
public GlyphLine(GlyphLine other)
other
- line of Glyphs to copy
public GlyphLine(GlyphLine other, int start, int end)
other
- line of Glyphs to copy
start
- starting index of the slice
end
- terminating index of the slice
public String toUnicodeString(int start, int end)
start
- starting index of the slice
end
- terminating index of the slice
public GlyphLine copy(int left, int right)
left
- leftmost index of the slice
right
- rightmost index of the slice
public Glyph get(int index)
public void add(Glyph glyph)
public void add(int index, Glyph glyph)
public void replaceContent(GlyphLine other)
public int size()
public void substituteManyToOne(OpenTypeFontTableReader tableReader, int lookupFlag, int rightPartLen, int substitutionGlyphIndex)
public void substituteOneToOne(OpenTypeFontTableReader tableReader, int substitutionGlyphIndex)
public void substituteOneToMany(OpenTypeFontTableReader tableReader, int[] substGlyphIds)
public GlyphLine filter(GlyphLine.IGlyphLineFilter filter)
public void setActualText(int left, int right, String text)
public Iterator<GlyphLine.GlyphLinePart> iterator()
Copyright © 1998–2018 iText Group NV. All rights reserved.