|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.dicom.AttributeTree
public class AttributeTree
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.
AttributeTreeBrowser,
AttributeTreeRecord| Constructor Summary | |
|---|---|
AttributeTree(AttributeList list)
Construct an entire tree of attributes from an attribute list. |
|
| Method Summary | |
|---|---|
void |
addTreeModelListener(TreeModelListener tml)
|
Object |
getChild(Object node,
int index)
|
int |
getChildCount(Object parent)
|
int |
getIndexOfChild(Object parent,
Object child)
|
Object |
getRoot()
|
boolean |
isLeaf(Object node)
|
void |
removeTreeModelListener(TreeModelListener tml)
|
void |
setSortByName(boolean sortByName)
Set the sort order to be alphabetical by attribute name, or numerical by group and element tag. |
String |
toString()
Walk the entire tree and dump as a string. |
void |
valueForPathChanged(TreePath path,
Object newValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeTree(AttributeList list)
throws DicomException
Construct an entire tree of attributes from an attribute list.
list - the list whose attributes to add
DicomException| Method Detail |
|---|
public Object getChild(Object node,
int index)
getChild in interface TreeModelnode - index -
public int getIndexOfChild(Object parent,
Object child)
getIndexOfChild in interface TreeModelparent - child - public Object getRoot()
getRoot in interface TreeModelpublic int getChildCount(Object parent)
getChildCount in interface TreeModelparent - public boolean isLeaf(Object node)
isLeaf in interface TreeModelnode -
public void valueForPathChanged(TreePath path,
Object newValue)
valueForPathChanged in interface TreeModelpath - newValue - public void addTreeModelListener(TreeModelListener tml)
addTreeModelListener in interface TreeModeltml - public void removeTreeModelListener(TreeModelListener tml)
removeTreeModelListener in interface TreeModeltml - public String toString()
Walk the entire tree and dump as a string.
toString in class Objectpublic void setSortByName(boolean sortByName)
Set the sort order to be alphabetical by attribute name, or numerical by group and element tag.
sortByName - true if sort alphabetically by attribute name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||