Module io.sf.carte.echosvg.bridge
Package io.sf.carte.echosvg.bridge
Class ConcreteTextLayoutFactory
java.lang.Object
io.sf.carte.echosvg.bridge.ConcreteTextLayoutFactory
- All Implemented Interfaces:
TextLayoutFactory
Factory instance that returns TextSpanLayouts appropriate to
AttributedCharacterIterator instances.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateTextLayout
(AttributedCharacterIterator aci, int[] charMap, Point2D offset, FontRenderContext frc) Returns an instance of TextSpanLayout suitable for rendering the AttributedCharacterIterator.
-
Constructor Details
-
ConcreteTextLayoutFactory
public ConcreteTextLayoutFactory()
-
-
Method Details
-
createTextLayout
public TextSpanLayout createTextLayout(AttributedCharacterIterator aci, int[] charMap, Point2D offset, 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.
-