org.apache.batik.gvt.text
Interface TextLayoutFactory

All Known Implementing Classes:
ConcreteTextLayoutFactory, FlowExtTextLayoutFactory, FlowTextLayoutFactory

public interface TextLayoutFactory

Interface implemented by factory instances that can return TextSpanLayouts appropriate to AttributedCharacterIterator instances.

See Also:
TextSpanLayout

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

Method Detail

createTextLayout

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 rendering context for the fonts used.


Copyright © 2008 Apache Software Foundation. All Rights Reserved.