|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openpcl.viewer.tree.PosTree
public class PosTree
Nested Class Summary | |
---|---|
class |
PosTree.PosTreeCellRenderer
Tree cell renderer class specifies the icons to use for the different node types: 1. |
class |
PosTree.PosTreeSelectionListener
Tree selection listener |
protected class |
PosTree.RightclickTreeMouseListener
MouseAdapter class for when the user right clicks on a node in the tree. This checks for mouse event for popup menu in both mouseReleased() and mousePressed() because: As stated at http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html "The exact gesture that should bring up a popup menu varies by look and feel. |
Field Summary | |
---|---|
protected static String |
TREE_PAGE_ICON
|
protected static String |
TREE_ROOT_ICON
|
Constructor Summary | |
---|---|
PosTree(PosView pPosView,
String pShortName)
|
Method Summary | |
---|---|
DefaultMutableTreeNode |
addChildNodeToTree(DefaultMutableTreeNode child,
DefaultMutableTreeNode parent,
boolean shouldBeVisible)
Add the node to the tree under the passed in parent node |
void |
addTreeSelectionListener()
Add the tree selection listener |
void |
buildTreePopupMenu(JPopupMenu pJPopupMenu)
Build the JPopupMenu to show when the user right clicks on tree nodes. The items on this popup menu are in the String array sTreePopupMenuItems. Subclass plugins override this method so do not delete or rename this method. |
void |
clearRightClickedNode()
Clear the right clicked PosTreeNode. Subclass plugins override this method so do not delete or rename this method. |
void |
clearRightClickedTreePath()
Clear the right clicked TreePath. Subclass plugins override this method so do not delete or rename this method. |
void |
collapseNodeOrSelectParent()
If the node is expanded then collapse it. |
protected void |
expandEntireTree(TreeNode pNode)
Method that expands all the nodes from the given node down |
void |
expandNodeOrSelectNext()
If the node is collapsed then expand it. |
void |
freeUpMemory()
When the user is done with this rendering session, then free up memory |
PosTreeNode |
getClickedNode()
Get the left clicked PosTreeNode. Subclass plugins override this method so do not delete or rename this method. |
PosTreeNode |
getCurrentClickedPageTreeNodeUsrObj()
|
boolean |
getIsRootNodeLeaf()
|
TreePath |
getLastSelectedTreePath()
|
JTree |
getPagesJTree()
Get the JTree that is on the screen |
String |
getPclPageNodeDetailName(PosTreeNode pPosTreeNode)
Get the String text out of the tree node user object that is the detail name. |
PosView |
getPosView()
Get the PosView panel that holds the JTree and the BufferedImage bitmap of the PCL image |
PosTreeNode |
getRightClickedNode()
Get the right clicked PosTreeNode. Subclass plugins override this method so do not delete or rename this method. |
TreePath |
getRightClickedTreePath()
Get the right clicked TreePath. Subclass plugins override this method so do not delete or rename this method. |
boolean |
getShowHideExtraInfoOnTree()
Get Show/Hide Index Numbers on Tree |
TreeModel |
getTreeModel()
|
DefaultMutableTreeNode |
getTreeNodeRoot()
|
PosTreeNode |
makePclPageTreeNode(int pPageNumber)
Make a Pcl page node in the tree under the root node. |
void |
selectNextDocument()
Select next node in the tree without auto expanding. |
void |
selectPage1()
|
void |
selectPreviousDocument()
Select previous node in the tree without auto expanding. |
void |
setCellRenderer()
Set the tree cell renderer |
void |
setClickedNode(PosTreeNode pClickedNode)
|
void |
setLastSelectedTreePath(TreePath pLastSelectedTreePath)
|
void |
setToInitialValues()
Set to initial values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String TREE_ROOT_ICON
protected static final String TREE_PAGE_ICON
Constructor Detail |
---|
public PosTree(PosView pPosView, String pShortName)
Method Detail |
---|
public JTree getPagesJTree()
public PosView getPosView()
public boolean getShowHideExtraInfoOnTree()
public void addTreeSelectionListener()
public void setCellRenderer()
public void setToInitialValues()
public TreePath getLastSelectedTreePath()
public PosTreeNode getClickedNode()
getClickedNode
in interface IPluginHooksPosTree
public PosTreeNode getRightClickedNode()
getRightClickedNode
in interface IPluginHooksPosTree
public TreePath getRightClickedTreePath()
getRightClickedTreePath
in interface IPluginHooksPosTree
public void clearRightClickedNode()
clearRightClickedNode
in interface IPluginHooksPosTree
public void clearRightClickedTreePath()
clearRightClickedTreePath
in interface IPluginHooksPosTree
public void setLastSelectedTreePath(TreePath pLastSelectedTreePath)
public void setClickedNode(PosTreeNode pClickedNode)
public void freeUpMemory()
public TreeModel getTreeModel()
public DefaultMutableTreeNode getTreeNodeRoot()
public boolean getIsRootNodeLeaf()
public PosTreeNode getCurrentClickedPageTreeNodeUsrObj()
public void selectPage1()
public PosTreeNode makePclPageTreeNode(int pPageNumber)
public DefaultMutableTreeNode addChildNodeToTree(DefaultMutableTreeNode child, DefaultMutableTreeNode parent, boolean shouldBeVisible)
child
- parent
- shouldBeVisible
- public void expandNodeOrSelectNext()
public void selectNextDocument()
public void collapseNodeOrSelectParent()
public void selectPreviousDocument()
public String getPclPageNodeDetailName(PosTreeNode pPosTreeNode)
protected void expandEntireTree(TreeNode pNode)
pNode
- - the node to start atpublic void buildTreePopupMenu(JPopupMenu pJPopupMenu)
buildTreePopupMenu
in interface IPluginHooksPosTree
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |