Package org.apache.batik.bridge
Class ConcreteTextLayoutFactory
- java.lang.Object
-
- org.apache.batik.bridge.ConcreteTextLayoutFactory
-
- All Implemented Interfaces:
TextLayoutFactory
public class ConcreteTextLayoutFactory extends java.lang.Object implements TextLayoutFactory
Factory instance that returns TextSpanLayouts appropriate to AttributedCharacterIterator instances.- See Also:
TextSpanLayout
-
-
Constructor Summary
Constructors Constructor Description ConcreteTextLayoutFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextSpanLayout
createTextLayout(java.text.AttributedCharacterIterator aci, int[] charMap, java.awt.geom.Point2D offset, java.awt.font.FontRenderContext frc)
Returns an instance of TextSpanLayout suitable for rendering the AttributedCharacterIterator.
-
-
-
Method Detail
-
createTextLayout
public TextSpanLayout createTextLayout(java.text.AttributedCharacterIterator aci, int[] charMap, java.awt.geom.Point2D offset, java.awt.font.FontRenderContext frc)
Returns an instance of TextSpanLayout suitable for rendering the AttributedCharacterIterator.- Specified by:
createTextLayout
in interfaceTextLayoutFactory
- Parameters:
aci
- The character iterator to be laid outcharMap
- 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.
-
-