|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<com.xinapse.util.InfoItem>
com.xinapse.util.InfoList
public class InfoList
Representation of a list of information to be associated either with an image as a whole, or with a particular element of a particular dimension of an image.
For example, a 3-D multi-slice image may have different information for each slice. Thus, the information will be different for each element (slice) of dimension 0.
Always use the appropriate methods in the image class to retrieve and manipulate the info fields for an image.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
InfoList()
Construct an empty InfoList. |
|
InfoList(java.io.DataInputStream s)
Creates a InfoList Object by reading it from a DataInputStream. |
|
InfoList(java.lang.String HTMLList)
Creates an InfoList from an HTML description of that list. |
|
| Method Summary | |
|---|---|
void |
append(InfoList extraInfo)
Sticks an InfoList onto the end of an existing one. |
java.lang.Object |
clone()
Makes a copy of this InfoList. |
java.lang.String |
getInfo(java.lang.String name)
An InfoList is a list of Strings of the form "name=value". |
void |
putInfo(java.lang.String name,
java.util.Date date)
Adds "name=value" to the InfoList. |
void |
putInfo(java.lang.String name,
double value)
Adds "name=value" to the InfoList. |
void |
putInfo(java.lang.String name,
float value)
Adds "name=value" to the InfoList. |
void |
putInfo(java.lang.String name,
int value)
Adds "name=value" to the InfoList. |
void |
putInfo(java.lang.String name,
long value)
Adds "name=value" to the InfoList. |
void |
putInfo(java.lang.String name,
java.lang.String value)
Adds "name=value" to the InfoList. |
void |
removeInfo(java.lang.String name)
Removes "name=value" from the InfoList. |
static InfoList |
sortInfo(InfoList[] sliceInfo)
Sort info from each slice into general and slice-specific info. |
java.lang.String |
toHTML()
Creates a description of this InfoList in HTML format. |
java.lang.String |
toString()
Creates a description of this InfoList. |
void |
write(java.io.DataOutputStream s)
Write an InfoList to a DataOutPutStream. |
void |
write(java.io.RandomAccessFile f)
Write an InfoList to a RandomAccessFile. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public InfoList()
public InfoList(java.io.DataInputStream s)
throws java.io.IOException
s - the DataInputStream that will supply the InfoList.
java.io.IOException - if the InfoList cannot be read completely from the stream.
public InfoList(java.lang.String HTMLList)
throws com.xinapse.util.InfoListException
HTMLList - a String of HTML that was its self created by InfoList.toHTML().
com.xinapse.util.InfoListException| Method Detail |
|---|
public void write(java.io.DataOutputStream s)
throws java.io.IOException
s - the DataOutputStream to which the InfoList will be written.
java.io.IOException
public void write(java.io.RandomAccessFile f)
throws java.io.IOException
f - the RandomAccessFile to which the InfoList will be written.
java.io.IOException
public java.lang.String getInfo(java.lang.String name)
throws InfoNotFoundException
name - the name of the information item.
InfoNotFoundException - if the name is null, or the information
item cannot be found.
public void putInfo(java.lang.String name,
java.lang.String value)
name - the name of the information item.value - the value of the information item.
public void putInfo(java.lang.String name,
int value)
name - the name of the information item.value - the value of the information item.
public void putInfo(java.lang.String name,
long value)
name - the name of the information item.value - the value of the information item.
public void putInfo(java.lang.String name,
float value)
name - the name of the information item.value - the value of the information item.
public void putInfo(java.lang.String name,
double value)
name - the name of the information item.value - the value of the information item.
public void putInfo(java.lang.String name,
java.util.Date date)
name - the name of the information item.date - the value of the information item.public void removeInfo(java.lang.String name)
name - the name of the information item to remove.public void append(InfoList extraInfo)
extraInfo - the InfoList of extra information items to append.public java.lang.String toString()
toString in class java.util.AbstractCollection<com.xinapse.util.InfoItem>public java.lang.String toHTML()
public static InfoList sortInfo(InfoList[] sliceInfo)
sliceInfo - an array of InfoLists that contain all the information items for
each of the image slices. On return, all the information items that are common to all
images slices will have been removed from these InfoLists.
public java.lang.Object clone()
clone in class java.util.ArrayList<com.xinapse.util.InfoItem>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||