com.lowagie.tools.plugins.treeview
public class AnalyzePDF extends Thread implements TreeModel, ICommonAnalyzer
Field Summary | |
---|---|
DefaultMutableTreeNode | filenode |
int | numberofpages |
int | pagecount |
ArrayList | pageInh |
ProgressDialog | progressdialog |
PdfReader | reader |
DefaultMutableTreeNode | root |
Vector | treeModelListeners |
Constructor Summary | |
---|---|
AnalyzePDF(String infile, ProgressDialog blubb) |
Method Summary | |
---|---|
void | addTreeModelListener(TreeModelListener l) |
protected void | fireTreeNodesChanged(TreeModelEvent e) |
protected void | fireTreeNodesInserted(TreeModelEvent e) |
protected void | fireTreeNodesRemoved(TreeModelEvent e) |
protected void | fireTreeStructureChanged(TreeModelEvent e) |
Object | getChild(Object parent, int index)
Returns the child of parent at index index
in the parent's child array.
|
int | getChildCount(Object parent)
Returns the number of children of parent .
|
int | getIndexOfChild(Object parent, Object child)
Returns the index of child in parent.
|
int | getPagecount() |
Object | getRoot()
Returns the root of the tree.
|
TableModel | getXReftable() |
boolean | isLeaf(Object node)
Returns true if node is a leaf.
|
void | iterateObjects(PdfObject pdfobj, PdfReader pdfreader, DefaultMutableTreeNode node)
Recursive investigate PDF Objecttree (other than pagetree objects!)
|
protected void | iterateOutlines(PdfDictionary outlines, PdfReader pdfreader, DefaultMutableTreeNode node) |
protected void | iteratePages(PdfDictionary page, PdfReader pdfreader, DefaultMutableTreeNode node)
Walk down the Pagetree
|
void | removeTreeModelListener(TreeModelListener l) |
void | run()
When an object implementing interface Runnable is used to
create a thread, starting the thread causes the object's run
method to be called in that separately executing thread. |
void | updatecount() |
void | valueForPathChanged(TreePath path, Object newValue)
Messaged when the user has altered the value for the item identified by
path to newValue .
|
parent
at index index
in the parent's child array.
Parameters: parent a node in the tree, obtained from this data source index int
Returns: the child of parent
at index index
parent
.
Parameters: parent a node in the tree, obtained from this data source
Returns: the number of children of the node parent
Parameters: parent a note in the tree, obtained from this data source child the node we are interested in
Returns: the index of the child in the parent, or -1 if either
child
or parent
are
null
Returns: the root of the tree
true
if node
is a leaf.
Parameters: node a node in the tree, obtained from this data source
Returns: true if node
is a leaf
Parameters: pdfobj PdfObject pdfreader PdfReader node DefaultMutableTreeNode
Parameters: page PdfDictionary pdfreader PdfReader node DefaultMutableTreeNode
Runnable
is used to
create a thread, starting the thread causes the object's run
method to be called in that separately executing thread.path
to newValue
.
Parameters: path path to the node that the user has altered newValue the new value from the TreeCellEditor