org.apache.batik.extension.svg
public class FlowExtGlyphLayout extends GlyphLayout
Constructor Summary | |
---|---|
FlowExtGlyphLayout(AttributedCharacterIterator aci, int[] charMap, Point2D offset, FontRenderContext frc) |
Method Summary | |
---|---|
static void | layoutChunk(GVTGlyphVector gv, Point2D origin, int justification, List lineInfos) |
static void | textWrapTextChunk(AttributedCharacterIterator[] acis, List chunkLayouts, List flowRects)
This will wrap the text associated with aci and
layouts. |
static void | updateVerticalAlignOffset(Float verticalAlignOffset, RegionInfo region, float maxDescent)
Updates the specified verticalAlignmentOffset using the current
alignment rule and the heights of the flow rect and the maximum
descent of the text. |
Parameters: acis An array of Attributed Charater Iterators containing the text to wrap. There is one aci per text chunk (which maps to flowPara elements. Used to access font, paragraph, and line break info. chunkLayouts A List of List of GlyphLayout objects. There is a List of GlyphLayout objects for each flowPara element. There is a GlyphLayout for approximately each sub element in the flowPara element. flowRects A List of Rectangle2D representing the regions to flow text into.
Parameters: verticalAlignOffset the java.awt.geom.Point2D.Float object that is storing the alignment offset. region the RegionInfo object that we are rendering into. maxDescent the very lowest point this line reaches.