public class GlyphIterator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.text.AttributedCharacterIterator.Attribute |
FLOW_LINE_BREAK |
static java.text.AttributedCharacterIterator.Attribute |
GVT_FONT |
static java.text.AttributedCharacterIterator.Attribute |
PREFORMATTED |
static char |
SOFT_HYPHEN |
static java.text.AttributedCharacterIterator.Attribute |
TEXT_COMPOUND_ID |
static char |
ZERO_WIDTH_JOINER |
static char |
ZERO_WIDTH_SPACE |
Constructor and Description |
---|
GlyphIterator(java.text.AttributedCharacterIterator aci,
GVTGlyphVector gv) |
GlyphIterator(GlyphIterator gi) |
Modifier and Type | Method and Description |
---|---|
protected void |
addLeftShift(int idx,
float chAdv) |
GlyphIterator |
copy() |
GlyphIterator |
copy(GlyphIterator gi) |
boolean |
done() |
int |
getACIIndex() |
float |
getAdj() |
float |
getAdv() |
char |
getChar() |
float |
getCharAdvance()
Get the advance associated with the current glyph
|
protected float |
getCharAdvance(int gvIdx)
Get the advance associated with any glyph
|
float |
getCharWidth()
Get the visual advance associated with the current glyph.
|
protected float |
getCharWidth(int gvIdx)
Get the visual advance associated with the current glyph.
|
int |
getGlyphIndex() |
int |
getLineBreaks() |
float |
getMaxAscent() |
float |
getMaxDescent() |
float |
getMaxFontSize() |
java.awt.geom.Point2D |
getOrigin() |
boolean |
isBreakChar() |
boolean |
isLastChar() |
boolean |
isPrinting() |
protected boolean |
isPrinting(char tstCH) |
LineInfo |
newLine(java.awt.geom.Point2D.Float loc,
float lineWidth,
boolean partial,
java.awt.geom.Point2D.Float verticalAlignOffset) |
void |
nextChar()
Move iterator to the next char.
|
protected void |
updateLineMetrics(int end) |
public static final java.text.AttributedCharacterIterator.Attribute PREFORMATTED
public static final java.text.AttributedCharacterIterator.Attribute FLOW_LINE_BREAK
public static final java.text.AttributedCharacterIterator.Attribute TEXT_COMPOUND_ID
public static final java.text.AttributedCharacterIterator.Attribute GVT_FONT
public static final char SOFT_HYPHEN
public static final char ZERO_WIDTH_SPACE
public static final char ZERO_WIDTH_JOINER
public GlyphIterator(java.text.AttributedCharacterIterator aci, GVTGlyphVector gv)
public GlyphIterator(GlyphIterator gi)
public GlyphIterator copy()
public GlyphIterator copy(GlyphIterator gi)
public int getGlyphIndex()
public char getChar()
public int getACIIndex()
public float getAdv()
public java.awt.geom.Point2D getOrigin()
public float getAdj()
public float getMaxFontSize()
public float getMaxAscent()
public float getMaxDescent()
public boolean isLastChar()
public boolean done()
public boolean isBreakChar()
protected boolean isPrinting(char tstCH)
public int getLineBreaks()
public void nextChar()
protected void addLeftShift(int idx, float chAdv)
protected void updateLineMetrics(int end)
public LineInfo newLine(java.awt.geom.Point2D.Float loc, float lineWidth, boolean partial, java.awt.geom.Point2D.Float verticalAlignOffset)
public boolean isPrinting()
public float getCharAdvance()
public float getCharWidth()
protected float getCharAdvance(int gvIdx)
protected float getCharWidth(int gvIdx)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.