org.apache.batik.gvt.text
Class GlyphIterator
java.lang.Object
|
+--org.apache.batik.gvt.text.GlyphIterator
- public class GlyphIterator
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFORMATTED
public static final java.text.AttributedCharacterIterator.Attribute PREFORMATTED
FLOW_LINE_BREAK
public static final java.text.AttributedCharacterIterator.Attribute FLOW_LINE_BREAK
TEXT_COMPOUND_DELIMITER
public static final java.text.AttributedCharacterIterator.Attribute TEXT_COMPOUND_DELIMITER
GVT_FONT
public static final java.text.AttributedCharacterIterator.Attribute GVT_FONT
SOFT_HYPHEN
public static final char SOFT_HYPHEN
ZERO_WIDTH_SPACE
public static final char ZERO_WIDTH_SPACE
ZERO_WIDTH_JOINER
public static final char ZERO_WIDTH_JOINER
GlyphIterator
public GlyphIterator(java.text.AttributedCharacterIterator aci,
GVTGlyphVector gv)
GlyphIterator
public GlyphIterator(GlyphIterator gi)
copy
public GlyphIterator copy()
copy
public GlyphIterator copy(GlyphIterator gi)
getGlyphIndex
public int getGlyphIndex()
- Returns:
- The index into glyph vector for current character.
getChar
public char getChar()
- Returns:
- the current character.
getACIIndex
public int getACIIndex()
- Returns:
- The index into Attributed Character iterator for
current character.
getAdv
public float getAdv()
- Returns:
- The current advance for the line, this is the 'visual width'
of the current line.
getOrigin
public java.awt.geom.Point2D getOrigin()
- Returns:
- The origin of the glyph vector (the point all glyphs are
layed out with respect to).
getAdj
public float getAdj()
- 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.
getMaxFontSize
public float getMaxFontSize()
getMaxAscent
public float getMaxAscent()
getMaxDescent
public float getMaxDescent()
isLastChar
public boolean isLastChar()
done
public boolean done()
isBreakChar
public boolean isBreakChar()
isPrinting
protected boolean isPrinting(char tstCH)
getLineBreaks
public int getLineBreaks()
nextChar
public void nextChar()
- Move iterator to the next char.
addLeftShift
protected void addLeftShift(int idx,
float chAdv)
updateLineMetrics
protected void updateLineMetrics(int end)
newLine
public LineInfo newLine(java.awt.geom.Point2D.Float loc,
float lineWidth,
boolean partial)
isPrinting
public boolean isPrinting()
getCharAdvance
public float getCharAdvance()
- Get the advance associated with the current glyph
getCharWidth
public float getCharWidth()
- Get the visual advance associated with the current glyph.
This is the distance from the location of the glyph to
the rightmost part of the glyph.
getCharAdvance
protected float getCharAdvance(int gvIdx)
- Get the advance associated with any glyph
getCharWidth
protected float getCharWidth(int gvIdx)
- Get the visual advance associated with the current glyph.
This is the distance from the location of the glyph to
the rightmost part of the glyph.
Copyright © 2002 Apache Software Foundation. All Rights Reserved.