Class Add3D

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public class Add3D
    extends AbstractTool
    This tool lets you add a embedded u3d 3d annotation to the first page of a document. Look for sample files at http://u3d.svn.sourceforge.net/viewvc/u3d/trunk/Source/Samples/Data/
    Since:
    2.1.1 (imported from itexttoolbox project)
    • Constructor Detail

      • Add3D

        public Add3D()
        This tool lets you add a embedded u3d 3d annotation to the first page of a document.
    • Method Detail

      • AddButton

        public static void AddButton​(float x,
                                     float y,
                                     java.lang.String fname,
                                     java.lang.String js,
                                     java.lang.String image,
                                     PdfWriter wr)
      • main

        public static void main​(java.lang.String[] args)
        This methods helps you running this tool as a standalone application.
        Parameters:
        args - the srcfile and destfile
      • createFrame

        protected void createFrame()
        Creates the internal frame.
        Specified by:
        createFrame in class AbstractTool
      • execute

        public void execute()
        Executes the tool (in most cases this generates a PDF file).
        Specified by:
        execute in class AbstractTool
      • getDestPathPDF

        protected java.io.File getDestPathPDF()
                                       throws java.lang.InstantiationException
        Gets the PDF file that should be generated (or null if the output isn't a PDF file).
        Specified by:
        getDestPathPDF in class AbstractTool
        Returns:
        the PDF file that should be generated
        Throws:
        java.lang.InstantiationException - on error
      • valueHasChanged

        public void valueHasChanged​(AbstractArgument arg)
        Indicates that the value of an argument has changed.
        Specified by:
        valueHasChanged in class AbstractTool
        Parameters:
        arg - the argument that has changed