Class LineDataInfoProducer

java.lang.Object
org.apache.fop.afp.ptoca.LineDataInfoProducer
All Implemented Interfaces:
PtocaConstants, PtocaProducer

public class LineDataInfoProducer extends Object implements PtocaProducer, PtocaConstants
PtocaProducer implementation that interprets AFPLineDataInfo objects.
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
      Static logging instance
    • lineDataInfo

      private AFPLineDataInfo lineDataInfo
  • Constructor Details

    • LineDataInfoProducer

      public LineDataInfoProducer(AFPLineDataInfo lineDataInfo)
      Main constructor.
      Parameters:
      lineDataInfo - the info object
  • Method Details

    • produce

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

      private static int ensurePositive(int value)