|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.display.IconListBrowser
public class IconListBrowser
This class implements a panel of icons of DICOM images inside a parent JScrollPane.
Maintains icons in a pre-defined sorted order based on DICOM attributes as they are added and removed.
| Nested Class Summary | |
|---|---|
protected class |
IconListBrowser.OurCellRenderer
|
| Field Summary | |
|---|---|
static int |
DEFAULT_ICON_SIZE
|
protected static String |
ICON_FILE_PREFIX
|
protected static String |
ICON_FILE_SUFFIX
|
protected static String |
ICON_FORMAT
|
protected static int |
ICON_QUALITY
|
protected int |
iconSize
|
protected JList |
list
|
protected DefaultListModel |
model
|
protected JScrollPane |
parentScrollPane
|
| Constructor Summary | |
|---|---|
IconListBrowser(Container content,
String[] dicomFileNames)
Build and display a graphical user interface view of a set of DICOM image files. |
|
IconListBrowser(int iconSize)
Build and display an (initally empty) graphical user interface view of a set of DICOM images. |
|
IconListBrowser(JFrame frame,
String[] dicomFileNames)
Build and display a graphical user interface view of a set of DICOM image files. |
|
IconListBrowser(JScrollPane parentScrollPane)
Build and display an (initally empty) graphical user interface view of a set of DICOM images. |
|
IconListBrowser(JScrollPane parentScrollPane,
int iconSize)
Build and display an (initally empty) graphical user interface view of a set of DICOM images. |
|
IconListBrowser(JScrollPane parentScrollPane,
String[] dicomFileNames)
Build and display a graphical user interface view of a set of DICOM image files. |
|
| Method Summary | |
|---|---|
void |
add(String dicomFileName)
Add an annotated icon of a DICOM image. |
void |
addDicomFiles(String[] dicomFileNames)
Add a set of DICOM image files. |
static void |
main(String[] arg)
Method for testing. |
protected void |
setParentScrollPane(JScrollPane parentScrollPane)
Set the parent scoll pane. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_ICON_SIZE
protected static final String ICON_FILE_PREFIX
protected static final String ICON_FORMAT
protected static final int ICON_QUALITY
protected static final String ICON_FILE_SUFFIX
protected int iconSize
protected JScrollPane parentScrollPane
protected JList list
protected DefaultListModel model
| Constructor Detail |
|---|
public IconListBrowser(int iconSize)
throws DicomException
Build and display an (initally empty) graphical user interface view of a set of DICOM images.
iconSize - the width and height in pixels of the icons to be created
DicomException - thrown if the icons cannot be extracted
public IconListBrowser(JScrollPane parentScrollPane,
int iconSize)
throws DicomException
Build and display an (initally empty) graphical user interface view of a set of DICOM images.
parentScrollPane - the scrolling pane in which the icons will be renderediconSize - the width and height in pixels of the icons to be created
DicomException - thrown if the icons cannot be extracted
public IconListBrowser(JScrollPane parentScrollPane)
throws DicomException
Build and display an (initally empty) graphical user interface view of a set of DICOM images.
Uses default icon size.
parentScrollPane - the scrolling pane in which the icons will be rendered
DicomException - thrown if the icons cannot be extracted
public IconListBrowser(JScrollPane parentScrollPane,
String[] dicomFileNames)
throws DicomException,
FileNotFoundException,
IOException
Build and display a graphical user interface view of a set of DICOM image files.
Uses default icon size.
parentScrollPane - the scrolling pane in which the icons will be rendereddicomFileNames - a list of DICOM files
DicomException - thrown if the icons cannot be extracted
FileNotFoundException - thrown if a file cannot be found
IOException - thrown if a file cannot be read
public IconListBrowser(Container content,
String[] dicomFileNames)
throws DicomException,
FileNotFoundException,
IOException
Build and display a graphical user interface view of a set of DICOM image files.
content - a container to which will be added will be added a scrolling pane containing the icon browserdicomFileNames - a list of DICOM files
DicomException - thrown if the icons cannot be extracted
FileNotFoundException - thrown if a file cannot be found
IOException - thrown if a file cannot be read
public IconListBrowser(JFrame frame,
String[] dicomFileNames)
throws DicomException,
FileNotFoundException,
IOException
Build and display a graphical user interface view of a set of DICOM image files.
frame - a frame to whose content pane will be added a scrolling pane containing the icon browserdicomFileNames - a list of DICOM files
DicomException - thrown if the icons cannot be extracted
FileNotFoundException - thrown if a file cannot be found
IOException - thrown if a file cannot be read| Method Detail |
|---|
protected void setParentScrollPane(JScrollPane parentScrollPane)
Set the parent scoll pane.
Used from within constructors.
parentScrollPane -
public void addDicomFiles(String[] dicomFileNames)
throws DicomException,
FileNotFoundException,
IOException
Add a set of DICOM image files.
dicomFileNames - a list of DICOM files
DicomException - thrown if the icons cannot be extracted
FileNotFoundException - thrown if a file cannot be found
IOException - thrown if a file cannot be read
public void add(String dicomFileName)
throws DicomException,
FileNotFoundException,
IOException
Add an annotated icon of a DICOM image.
dicomFileName - the name of the file containing the DICOM image
DicomException - thrown if the icons cannot be extracted
FileNotFoundException - thrown if a file cannot be found
IOException - thrown if a file cannot be readpublic static void main(String[] arg)
Method for testing.
arg - a list of DICOM image files from which to extract one icon each and display
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||