|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.dicom.StructuredReport
public class StructuredReport
The StructuredReport class implements a
TreeModel to abstract the contents of a list of attributes
representing a DICOM Structured Report as
a tree in order to provide support for a StructuredReportBrowser.
For details of some of the methods implemented here see javax.swing.tree.TreeModel.
A main method is provided for testing that reads a DICOM file containing an SR and dumps its contents in a human-readable form to System.err.
ContentItem,
ContentItemFactory,
StructuredReportBrowser| Constructor Summary | |
|---|---|
StructuredReport(AttributeList list)
Construct an internal tree representation of a structured report from a list of DICOM attributes. |
|
StructuredReport(ContentItem root)
Construct an internal tree representation of a structured report from an existing root content item. |
|
| Method Summary | |
|---|---|
void |
addTreeModelListener(TreeModelListener tml)
|
static Vector |
findAllContainedSOPInstances(ContentItem root,
ContentItem item)
Find all coordinate and image references within content items of the sub-tree rooted at the specified node (which may be the root). |
AttributeList |
getAttributeList()
Return the entire content tree of a structured report as an AttributeList. |
Object |
getChild(Object node,
int index)
|
int |
getChildCount(Object parent)
|
int |
getIndexOfChild(Object parent,
Object child)
|
Object |
getRoot()
|
boolean |
isLeaf(Object node)
|
static void |
main(String[] arg)
Dump the SR encoded in the file name on the console. |
void |
removeTreeModelListener(TreeModelListener tml)
|
String |
toString()
Dump the entire tree as a String. |
void |
valueForPathChanged(TreePath path,
Object newValue)
|
static String |
walkTreeBuldingString(ContentItem node,
String location)
Dump the tree starting at the specified node as a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StructuredReport(AttributeList list)
throws DicomException
Construct an internal tree representation of a structured report from a list of DICOM attributes.
list - the list of attributes in which the structured report is encoded
DicomException
public StructuredReport(ContentItem root)
throws DicomException
Construct an internal tree representation of a structured report from an existing root content item.
root - the root content item
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 AttributeList getAttributeList()
Return the entire content tree of a structured report as an AttributeList.
Has the side effect of creating (or replacing) the ContentSequence attributes of the AttributeList of each ContentItem to represent the tree structure.
AttributeList representing the content tree, or null if empty root.
public static String walkTreeBuldingString(ContentItem node,
String location)
Dump the tree starting at the specified node as a String.
node - location - the dotted numeric string describing the location of the starting node
String representing the tree fragmentpublic String toString()
Dump the entire tree as a String.
toString in class ObjectString representing the tree
public static Vector findAllContainedSOPInstances(ContentItem root,
ContentItem item)
Find all coordinate and image references within content items of the sub-tree rooted at the specified node (which may be the root).
The annotation of the reference is derived from the value of the Concept Name of the parent (and its parent, if a NUM content item).
root - the root node, for dereferencing by-reference relationshipsitem - the node to start searching from
Vector of SpatialCoordinateAndImageReferencepublic static void main(String[] arg)
Dump the SR encoded in the file name on the console.
arg -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||