Class AFPPainter.DefaultPtocaProducer

    • Field Detail

      • coords

        final int[] coords
      • fontReference

        final int fontReference
      • text

        final java.lang.String text
      • dp

        final int[][] dp
      • letterSpacing

        final int letterSpacing
      • wordSpacing

        final int wordSpacing
      • font

        final Font font
    • Constructor Detail

      • DefaultPtocaProducer

        private DefaultPtocaProducer​(int x,
                                     int y,
                                     int letterSpacing,
                                     int wordSpacing,
                                     int[][] dp,
                                     java.lang.String text)
                              throws IFException
        Throws:
        IFException
    • Method Detail

      • getSize

        private int getSize()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • produce

        public void produce​(PtocaBuilder builder)
                     throws java.io.IOException
        Description copied from interface: PtocaProducer
        Produces the PTOCA control sequences by calling methods on PtocaBuilder.
        Specified by:
        produce in interface PtocaProducer
        Parameters:
        builder - the builder object
        Throws:
        java.io.IOException - if an I/O error occurs
      • flushText

        private void flushText​(PtocaBuilder builder,
                               java.lang.StringBuffer sb,
                               CharacterSet charSet)
                        throws java.io.IOException
        Throws:
        java.io.IOException