|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.dicom.AttributeTreeRecord
public class AttributeTreeRecord
Instances of the AttributeTreeRecord class represent
nodes in a tree of the AttributeTree class, which in
turn is used by the AttributeTreeBrowser class.
Each record represents a single attribute.
| Constructor Summary | |
|---|---|
AttributeTreeRecord(AttributeTreeRecord p,
Attribute a,
DicomDictionary d)
Construct a record for an attribute. |
|
AttributeTreeRecord(AttributeTreeRecord p,
int ic)
Construct a record for an item of a sequence attribute. |
|
| Method Summary | |
|---|---|
void |
addChild(AttributeTreeRecord child)
Add a child node to the current node, keeping the children sorted. |
void |
addSibling(AttributeTreeRecord sibling)
Add a sibling to the current node, keeping the children sorted.. |
Enumeration |
children()
Returns the children of this node as an Enumeration. |
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
boolean |
getAllowsChildren()
Always returns true, since children may always be added. |
Attribute |
getAttribute()
Get the attribute corresponding to this record. |
TreeNode |
getChildAt(int index)
Returns the child at the specified index. |
int |
getChildCount()
Return the number of children that this node contains. |
int |
getIndex(TreeNode child)
Returns the index of the specified child from amongst this node's children, if present. |
int |
getItemCount()
Get the number of items in a Sequence attribute record. |
TreeNode |
getParent()
Returns the parent node of this node. |
boolean |
isLeaf()
Returns true if the receiver is a leaf (has no children). |
void |
removeAllChildren()
Remove all child nodes. |
void |
removeChild(AttributeTreeRecord child)
|
void |
setSortByName(boolean sortByName)
Set the sort order to be alphabetical by attribute name, or numerical by group and element tag. |
String |
toString()
Dump the record as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeTreeRecord(AttributeTreeRecord p,
Attribute a,
DicomDictionary d)
Construct a record for an attribute.
p - parent recorda - attribute to addd - dictionary for looking up the name
public AttributeTreeRecord(AttributeTreeRecord p,
int ic)
Construct a record for an item of a sequence attribute.
p - parent recordic - which item (numbered from 0)| Method Detail |
|---|
public String toString()
Dump the record as a string.
toString in class Objectpublic int compareTo(Object o)
compareTo in interface Comparableo - public boolean equals(Object o)
equals in class Objecto - public TreeNode getParent()
Returns the parent node of this node.
getParent in interface TreeNodepublic TreeNode getChildAt(int index)
Returns the child at the specified index.
getChildAt in interface TreeNodeindex - the index of the child to be returned, numbered from 0
TreeNode at the specified indexpublic int getIndex(TreeNode child)
Returns the index of the specified child from amongst this node's children, if present.
getIndex in interface TreeNodechild - the child to search for amongst this node's children
public boolean getAllowsChildren()
Always returns true, since children may always be added.
getAllowsChildren in interface TreeNodepublic boolean isLeaf()
Returns true if the receiver is a leaf (has no children).
isLeaf in interface TreeNodepublic int getChildCount()
Return the number of children that this node contains.
getChildCount in interface TreeNodepublic Enumeration children()
Returns the children of this node as an Enumeration.
children in interface TreeNodepublic void addChild(AttributeTreeRecord child)
Add a child node to the current node, keeping the children sorted.
child - the child to addpublic void removeChild(AttributeTreeRecord child)
child - public void removeAllChildren()
Remove all child nodes.
public void addSibling(AttributeTreeRecord sibling)
throws DicomException
Add a sibling to the current node, keeping the children sorted..
sibling - the sibling to add
DicomExceptionpublic Attribute getAttribute()
Get the attribute corresponding to this record.
public int getItemCount()
Get the number of items in a Sequence attribute record.
public 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 | ||||||||