Class PDFFlowExtTextPainter

  • All Implemented Interfaces:
    org.apache.batik.bridge.TextPainter

    public class PDFFlowExtTextPainter
    extends NativeTextPainter
    Text Painter for Batik's flow text extension.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.batik.bridge.StrokingTextPainter

        org.apache.batik.bridge.StrokingTextPainter.TextChunk, org.apache.batik.bridge.StrokingTextPainter.TextRun
      • Nested classes/interfaces inherited from class org.apache.batik.bridge.BasicTextPainter

        org.apache.batik.bridge.BasicTextPainter.BasicMark
    • Field Summary

      • Fields inherited from class org.apache.batik.bridge.StrokingTextPainter

        ADJUST_ALL, ADJUST_SPACING, ALT_GLYPH_HANDLER, ANCHOR_TYPE, BIDI_LEVEL, FLOW_PARAGRAPH, FLOW_REGIONS, GVT_FONT, GVT_FONTS, PAINT_INFO, singleton, TEXT_COMPOUND_ID, TEXTPATH, WRITING_MODE, WRITING_MODE_RTL, WRITING_MODE_TTB, XPOS, YPOS
      • Fields inherited from class org.apache.batik.bridge.BasicTextPainter

        aaOffFontRenderContext, fontRenderContext
    • Constructor Detail

      • PDFFlowExtTextPainter

        public PDFFlowExtTextPainter​(FontInfo fontInfo)
        Main constructor
        Parameters:
        fontInfo - the font directory
    • Method Detail

      • getTextRuns

        public java.util.List getTextRuns​(org.apache.batik.bridge.TextNode node,
                                          java.text.AttributedCharacterIterator aci)
        Overrides:
        getTextRuns in class org.apache.batik.bridge.StrokingTextPainter
      • isSupported

        protected boolean isSupported​(java.awt.Graphics2D g2d)
        Indicates whether the given Graphics2D instance if compatible with this text painter implementation.
        Specified by:
        isSupported in class NativeTextPainter
        Parameters:
        g2d - the instance to check
        Returns:
        true if the instance is compatible.
      • positionGlyph

        protected void positionGlyph​(java.awt.geom.Point2D prevPos,
                                     java.awt.geom.Point2D glyphPos,
                                     boolean reposition)
        Specified by:
        positionGlyph in class NativeTextPainter
      • writeGlyph

        protected void writeGlyph​(char glyph,
                                  java.awt.geom.AffineTransform transform)
        Specified by:
        writeGlyph in class NativeTextPainter