com.lowagie.toolbox.plugins

Class Add3D

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)

Field Summary
FileArgumentdestfile
static StringPDF_NAME_3D
static StringPDF_NAME_3DD
static StringPDF_NAME_3DV
static StringPDF_NAME_3DVIEW
static StringPDF_NAME_C2W
static StringPDF_NAME_IN
static StringPDF_NAME_MS
static StringPDF_NAME_U3D
static StringPDF_NAME_XN
Constructor Summary
Add3D()
This tool lets you add a embedded u3d 3d annotation to the first page of a document.
Method Summary
static voidAddButton(float x, float y, String fname, String js, String image, PdfWriter wr)
protected voidcreateFrame()
Creates the internal frame.
voidexecute()
Executes the tool (in most cases this generates a PDF file).
protected FilegetDestPathPDF()
Gets the PDF file that should be generated (or null if the output isn't a PDF file).
static voidmain(String[] args)
This methods helps you running this tool as a standalone application.
voidvalueHasChanged(AbstractArgument arg)
Indicates that the value of an argument has changed.

Field Detail

destfile

FileArgument destfile

PDF_NAME_3D

public static final String PDF_NAME_3D

PDF_NAME_3DD

public static final String PDF_NAME_3DD

PDF_NAME_3DV

public static final String PDF_NAME_3DV

PDF_NAME_3DVIEW

public static final String PDF_NAME_3DVIEW

PDF_NAME_C2W

public static final String PDF_NAME_C2W

PDF_NAME_IN

public static final String PDF_NAME_IN

PDF_NAME_MS

public static final String PDF_NAME_MS

PDF_NAME_U3D

public static final String PDF_NAME_U3D

PDF_NAME_XN

public static final String PDF_NAME_XN

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, String fname, String js, String image, PdfWriter wr)

createFrame

protected void createFrame()
Creates the internal frame.

execute

public void execute()
Executes the tool (in most cases this generates a PDF file).

getDestPathPDF

protected File getDestPathPDF()
Gets the PDF file that should be generated (or null if the output isn't a PDF file).

Returns: the PDF file that should be generated

Throws: InstantiationException

main

public static void main(String[] args)
This methods helps you running this tool as a standalone application.

Parameters: args the srcfile and destfile

valueHasChanged

public void valueHasChanged(AbstractArgument arg)
Indicates that the value of an argument has changed.

Parameters: arg the argument that has changed