Module org.icepdf.ri.viewer
Class AbstractAnnotationTreeNode<T extends Annotation>
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.icepdf.ri.common.utility.annotation.AbstractAnnotationTreeNode<T>
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
- Direct Known Subclasses:
AnnotationTreeNode
public abstract class AbstractAnnotationTreeNode<T extends Annotation> extends DefaultMutableTreeNode
AbstractAnnotationTreeNode allows the specification of a DefaultMutableTreeNode that can return a specific annotation type.- Since:
- 6.3
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description AbstractAnnotationTreeNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract TgetAnnotation()Gets an instance of the Annotation instance that is encapsulated/represented by this node.-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
-
-
-
-
Method Detail
-
getAnnotation
public abstract T getAnnotation()
Gets an instance of the Annotation instance that is encapsulated/represented by this node.- Returns:
- instance of Annotation object.
-
-