public class GlyphIterator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.text.AttributedCharacterIterator |
aci |
(package private) int |
aciIdx |
(package private) float |
adj |
(package private) float |
adv |
(package private) char |
ch |
(package private) int |
charCount |
(package private) int |
chIdx |
static java.text.AttributedCharacterIterator.Attribute |
FLOW_LINE_BREAK |
(package private) GVTFont |
font |
(package private) int |
fontStart |
(package private) java.awt.font.FontRenderContext |
frc |
(package private) float[] |
gp |
(package private) GVTGlyphVector |
gv |
(package private) java.awt.geom.Point2D |
gvBase |
static java.text.AttributedCharacterIterator.Attribute |
GVT_FONT |
(package private) int |
idx |
(package private) int |
leftShift |
(package private) float[] |
leftShiftAmt |
(package private) int[] |
leftShiftIdx |
(package private) int |
lineBreakCount |
(package private) int |
lineBreakRunLimit |
(package private) int |
lineIdx |
(package private) float |
maxAscent |
(package private) float |
maxDescent |
(package private) float |
maxFontSize |
(package private) int |
numGlyphs |
static java.text.AttributedCharacterIterator.Attribute |
PREFORMATTED |
(package private) int |
runLimit |
static char |
SOFT_HYPHEN |
static java.text.AttributedCharacterIterator.Attribute |
TEXT_COMPOUND_ID |
(package private) float |
width |
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
int idx
int chIdx
int lineIdx
int aciIdx
int charCount
float adv
float adj
int runLimit
int lineBreakRunLimit
int lineBreakCount
GVTFont font
int fontStart
float maxAscent
float maxDescent
float maxFontSize
float width
char ch
int numGlyphs
java.text.AttributedCharacterIterator aci
GVTGlyphVector gv
float[] gp
java.awt.font.FontRenderContext frc
int[] leftShiftIdx
float[] leftShiftAmt
int leftShift
java.awt.geom.Point2D gvBase
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)