org.apache.batik.gvt.flow

Class FlowTextLayoutFactory

public class FlowTextLayoutFactory extends Object implements TextLayoutFactory

Factory instance that returns TextSpanLayouts appropriate to FlowRoot instances.

See Also: TextSpanLayout

Method Summary
TextSpanLayoutcreateTextLayout(AttributedCharacterIterator aci, int[] charMap, Point2D offset, FontRenderContext frc)
Returns an instance of TextSpanLayout suitable for rendering the AttributedCharacterIterator.

Method Detail

createTextLayout

public TextSpanLayout createTextLayout(AttributedCharacterIterator aci, int[] charMap, Point2D offset, FontRenderContext frc)
Returns an instance of TextSpanLayout suitable for rendering the AttributedCharacterIterator.

Parameters: aci The character iterator to be laid out charMap Indicates how chars in aci map to original text char array. offset The offset position for the text layout. frc The font render context to use when creating the text layout.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.