org.apache.batik.extension.svg
public class GlyphIterator extends Object
Field Summary | |
---|---|
static Attribute | FLOW_LINE_BREAK |
static Attribute | GVT_FONT |
static Attribute | PREFORMATTED |
static char | SOFT_HYPHEN |
static Attribute | TEXT_COMPOUND_ID |
static char | ZERO_WIDTH_JOINER |
static char | ZERO_WIDTH_SPACE |
Constructor Summary | |
---|---|
GlyphIterator(AttributedCharacterIterator aci, GVTGlyphVector gv) | |
GlyphIterator(GlyphIterator gi) |
Method Summary | |
---|---|
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() |
Point2D | getOrigin() |
boolean | isBreakChar() |
boolean | isLastChar() |
protected boolean | isPrinting(char tstCH) |
boolean | isPrinting() |
LineInfo | newLine(Float loc, float lineWidth, boolean partial, Float verticalAlignOffset) |
void | nextChar()
Move iterator to the next char. |
protected void | updateLineMetrics(int end) |
Returns: The index into Attributed Character iterator for current character.
Returns: The current adjustment for the line. This is the ammount that needs to be subracted from the following line to get it back to the start of the next line.
Returns: The current advance for the line, this is the 'visual width' of the current line.
Returns: the current character.
Returns: The index into glyph vector for current character.
Returns: The origin of the glyph vector (the point all glyphs are layed out with respect to).