|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.volume.AtlasElement
public class AtlasElement
Encapsulate most of the information needed to specify an entry in an Atlas.
The major information is a unique id, color, abbreviation, the key in the atlas
and a full name. It can also support arbitrary information through the use
of a dictionary called info.
| Constructor Summary | |
|---|---|
AtlasElement(Element xml)
Parse the XML element of the form:
<Area abbrev="itps" id="H79" name="intraparietal sulcus"> |
|
AtlasElement(int value,
String abbreviation,
int color,
String name,
String uniqueId,
Map<String,String> info)
Create an AtlasElement for a new Structure. |
|
| Method Summary | |
|---|---|
int |
compareTo(AtlasElement o)
|
boolean |
equals(Object obj)
|
String |
getAbbreviation()
|
int |
getColor()
|
String |
getInfo(String key)
|
int |
getInt()
|
String |
getName()
|
String |
getSurfaceFile()
|
String |
getUniqueId()
|
int |
hashCode()
|
void |
setColor(int color)
|
void |
setSurfaceFile(String surface)
|
String |
toString()
|
Element |
toXML(Document doc)
Create an XML Element for this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AtlasElement(Element xml)
<Area abbrev="itps" id="H79" name="intraparietal sulcus">
<color b="0" g="0" r="255"/>
</Area>
xml -
public AtlasElement(int value,
String abbreviation,
int color,
String name,
String uniqueId,
Map<String,String> info)
value - The value in the volume that is keyed to this element.abbreviation - The preferred abbreviation for this structure.color - The preferred color.name - The name of this structure.uniqueId - A unique id, idealily it should be translatable to a structure in some common atlas.info - The dictionary of optional information.| Method Detail |
|---|
public Element toXML(Document doc)
doc -
public int getColor()
public String getAbbreviation()
public String toString()
toString in class Objectpublic String getUniqueId()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String getInfo(String key)
key - A key in the dictonary.
public int getInt()
public int compareTo(AtlasElement o)
compareTo in interface Comparable<AtlasElement>public String getName()
public void setColor(int color)
public String getSurfaceFile()
public void setSurfaceFile(String surface)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||