|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.tools.plugins.AbstractTool
com.lowagie.tools.plugins.Watermarker
This tool lets you add a text watermark to all pages of a document.
Field Summary |
Fields inherited from class com.lowagie.tools.plugins.AbstractTool |
arguments, internalFrame, MENU_EXECUTE, MENU_EXECUTE_PRINT, MENU_EXECUTE_PRINT_SILENT, MENU_EXECUTE_SHOW, menuoptions, versionsarray |
Fields inherited from interface com.lowagie.tools.ToolMenuItems |
ABOUT, ARGUMENTS, CLOSE, EXECUTE, EXECUTEPRINT, EXECUTEPRINTSILENT, EXECUTESHOW, FILE, HELP, TOOL, TOOLS, USAGE, VERSION |
Constructor Summary | |
Watermarker()
This tool lets you add a text watermark to all pages of a document. |
Method Summary | |
protected void |
createFrame()
Creates the internal frame. |
void |
execute()
Executes the tool (in most cases this generates a PDF file). |
protected File |
getDestPathPDF()
Gets the PDF file that should be generated (or null if the output isn't a PDF file). |
static void |
main(String[] args)
This methods helps you running this tool as a standalone application. |
void |
valueHasChanged(ToolArgument arg)
Indicates that the value of an argument has changed. |
Methods inherited from class com.lowagie.tools.plugins.AbstractTool |
actionPerformed, addVersion, getArgs, getArguments, getInternalFrame, getMenubar, getUsage, getValue, setArguments, setArguments, setInternalFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Watermarker()
Method Detail |
protected void createFrame()
createFrame
in class AbstractTool
public void execute()
execute
in class AbstractTool
protected File getDestPathPDF() throws InstantiationException
getDestPathPDF
in class AbstractTool
InstantiationException
public void valueHasChanged(ToolArgument arg)
valueHasChanged
in class AbstractTool
arg
- the argument that has changedpublic static void main(String[] args)
args
- the srcfile, watermark text and destfile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |