|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.AnnotatedEntity
de.jstacs.results.Result
de.jstacs.results.ImageResult
public class ImageResult
A class for results that are images of the PNG format. The images themselves cannot be stored to an XML representation and thus only the description (name, etc.) is stored.
| Field Summary |
|---|
| Fields inherited from class de.jstacs.AnnotatedEntity |
|---|
comment, datatype, name |
| Constructor Summary | |
|---|---|
ImageResult(StringBuffer xml)
The standard constructor for the interface Storable. |
|
ImageResult(String name,
String comment,
BufferedImage image)
Constructs a new ImageResult from a BufferedImage. |
|
| Method Summary | |
|---|---|
protected void |
appendFurtherInfos(StringBuffer xml)
This method can be used in the method Storable.toXML() to extract
further information (name, comment, datatype). |
protected void |
extractFurtherInfos(StringBuffer representation)
This method can be used in the constructor with parameter StringBuffer to
extract the further information. |
BufferedImage |
getValue()
Returns the value of the AnnotatedEntity. |
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description. |
String |
toString()
|
| Methods inherited from class de.jstacs.results.Result |
|---|
checkDatatype, createResult, isCastableResult, isComparableResult |
| Methods inherited from class de.jstacs.AnnotatedEntity |
|---|
getComment, getDatatype, getName, toXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImageResult(String name,
String comment,
BufferedImage image)
ImageResult from a BufferedImage.
name - the name of the imagecomment - a comment on the imageimage - the image itself
public ImageResult(StringBuffer xml)
throws NonParsableException
Storable.
Constructs a ImageResult out of an XML representation.
xml - the XML representation as StringBuffer
NonParsableException - if the ImageResult could not be reconstructed out of
the StringBuffer xml| Method Detail |
|---|
public BufferedImage getValue()
AnnotatedEntityAnnotatedEntity.
getValue in class AnnotatedEntityAnnotatedEntitypublic String getXMLTag()
AnnotatedEntity
getXMLTag in class AnnotatedEntityprotected void appendFurtherInfos(StringBuffer xml)
AnnotatedEntityStorable.toXML() to extract
further information (name, comment, datatype).
appendFurtherInfos in class AnnotatedEntityxml - a XML representation of the main information as
StringBufferStorable.toXML()
protected void extractFurtherInfos(StringBuffer representation)
throws NonParsableException
AnnotatedEntityStringBuffer to
extract the further information.
extractFurtherInfos in class AnnotatedEntityrepresentation - a XML represenation of the main information as
StringBuffer
NonParsableException - if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||