Class CustomPageDrawer


  • public class CustomPageDrawer
    extends java.lang.Object
    Example showing custom rendering by subclassing PageDrawer.

    If you want to do custom graphics processing rather than Graphics2D rendering, then you should subclass PDFGraphicsStreamEngine instead. Subclassing PageDrawer is only suitable for cases where the goal is to render onto a Graphics2D surface.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  CustomPageDrawer.MyPageDrawer
      Example PageDrawer subclass with custom rendering.
      private static class  CustomPageDrawer.MyPDFRenderer
      Example PDFRenderer subclass, uses MyPageDrawer for custom rendering.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomPageDrawer

        public CustomPageDrawer()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException