Class ConcreteTextPainter

  • All Implemented Interfaces:
    TextPainter

    public abstract class ConcreteTextPainter
    extends BasicTextPainter
    Renders the attributed character iterator of a TextNode.
    Version:
    $Id: ConcreteTextPainter.java 1733416 2016-03-03 07:07:13Z gadams $
    • Constructor Detail

      • ConcreteTextPainter

        public ConcreteTextPainter()
    • Method Detail

      • paint

        public void paint​(java.text.AttributedCharacterIterator aci,
                          java.awt.geom.Point2D location,
                          TextNode.Anchor anchor,
                          java.awt.Graphics2D g2d)
        Paints the specified attributed character iterator using the specified Graphics2D and context and font context.
        Parameters:
        aci - the AttributedCharacterIterator containing the text
        location - the location to paint the text
        anchor - the text anchor position
        g2d - the Graphics2D to use