com.lowagie.toolbox

Class Toolbox

public class Toolbox extends JFrame implements ActionListener

This is a utility that allows you to use a number of iText tools.

Since: 2.1.1 (imported from itexttoolbox project)

Nested Class Summary
classToolbox.Console
A Class that redirects output to System.out and System.err.
Field Summary
JScrollPaneconsole
The ConsolePane of the toolbox.
JDesktopPanedesktop
The DesktopPane of the toolbox.
intlocationX
x-coordinate of the location of a new internal frame.
intlocationY
y-coordinate of the location of a new internal frame.
Vector<String>menuitemlist
Vector<String>menulist
static longserialVersionUID
A serial version ID
ArrayList<AbstractTool>toolarray
toolarray
Propertiestoolmap
The list of tools in the toolbox.
Constructor Summary
Toolbox()
Constructs the Toolbox object.
Method Summary
voidactionPerformed(ActionEvent evt)
voidbuildPluginMenuItems(Map<Object,Object> tmp, JMenu tools)
BuildPluginMenuItems
static voidcenterFrame(Frame f)
Centers a JFrame.
AbstractToolcreateFrame(String name)
Creates an Internal Frame.
JMenuBargetMenubar()
Gets the menubar.
Vector<String>getMenulist()
static voidmain(String[] args)
Starts the Toolbox utility. use as first argument the name of the plugin, then the arguments of the plugin used. e.g. java -jar itext.jar Burst inputfile.pdf That way you can call plugins by name directly.

Field Detail

console

private JScrollPane console
The ConsolePane of the toolbox.

desktop

private JDesktopPane desktop
The DesktopPane of the toolbox.

locationX

private int locationX
x-coordinate of the location of a new internal frame.

locationY

private int locationY
y-coordinate of the location of a new internal frame.

menuitemlist

private Vector<String> menuitemlist

menulist

private Vector<String> menulist

serialVersionUID

private static final long serialVersionUID
A serial version ID

toolarray

private ArrayList<AbstractTool> toolarray
toolarray

toolmap

private Properties toolmap
The list of tools in the toolbox.

Constructor Detail

Toolbox

public Toolbox()
Constructs the Toolbox object.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent evt)

Parameters: evt ActionEvent

See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)

buildPluginMenuItems

private void buildPluginMenuItems(Map<Object,Object> tmp, JMenu tools)
BuildPluginMenuItems

Parameters: tmp Map tools JMenu

centerFrame

public static void centerFrame(Frame f)
Centers a JFrame.

Parameters: f JFrame

createFrame

public AbstractTool createFrame(String name)
Creates an Internal Frame.

Parameters: name the name of the application

Returns: AbstractTool

Throws: InstantiationException IllegalAccessException ClassNotFoundException PropertyVetoException

getMenubar

private JMenuBar getMenubar()
Gets the menubar.

Returns: a menubar

getMenulist

public Vector<String> getMenulist()

main

public static void main(String[] args)
Starts the Toolbox utility. use as first argument the name of the plugin, then the arguments of the plugin used. e.g. java -jar itext.jar Burst inputfile.pdf That way you can call plugins by name directly.

Parameters: args no arguments needed