Class CreateGradientShadingPDF


  • public class CreateGradientShadingPDF
    extends java.lang.Object
    This example creates a PDF with type 2 (axial) and type 3 (radial) shadings with a type 2 (exponential) function, and a type 4 (gouraud triangle shading) without function.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void create​(java.lang.String file)
      This will create the PDF and write the contents to a file.
      static void main​(java.lang.String[] args)
      This will create a blank document.
      private static void usage()
      This will print the usage of this class.
      • Methods inherited from class java.lang.Object

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

      • CreateGradientShadingPDF

        public CreateGradientShadingPDF()
    • Method Detail

      • create

        public void create​(java.lang.String file)
                    throws java.io.IOException
        This will create the PDF and write the contents to a file.
        Parameters:
        file - The name of the file to write to.
        Throws:
        java.io.IOException - If there is an error writing the data.
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        This will create a blank document.
        Parameters:
        args - The command line arguments.
        Throws:
        java.io.IOException - If there is an error writing the document data.
      • usage

        private static void usage()
        This will print the usage of this class.