Package com.pixelmed.dicom
Class AttributeTree
java.lang.Object
com.pixelmed.dicom.AttributeTree
- All Implemented Interfaces:
TreeModel
The AttributeTree
class implements a
TreeModel
to abstract the contents of a list of attributes as
a tree in order to provide support for a AttributeTreeBrowser
.
For details of some of the methods implemented here see javax.swing.tree.TreeModel
.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeTree
(AttributeList list) Construct an entire tree of attributes from an attribute list. -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getChildCount
(Object parent) int
getIndexOfChild
(Object parent, Object child) getRoot()
boolean
void
void
setSortByName
(boolean sortByName) Set the sort order to be alphabetical by attribute name, or numerical by group and element tag.toString()
Walk the entire tree and dump as a string.void
valueForPathChanged
(TreePath path, Object newValue)
-
Constructor Details
-
AttributeTree
Construct an entire tree of attributes from an attribute list.
- Parameters:
list
- the list whose attributes to add- Throws:
DicomException
- if error in DICOM encoding
-
-
Method Details
-
getChild
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
getRoot
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
toString
Walk the entire tree and dump as a string.
-
setSortByName
public void setSortByName(boolean sortByName) Set the sort order to be alphabetical by attribute name, or numerical by group and element tag.
- Parameters:
sortByName
- true if sort alphabetically by attribute name
-