public class PlotGeneratorResult extends Result
Result
that may be used to generate plots for different output formats using
GraphicsAdaptor
sub-classes. Graphics are generated on demand.Modifier and Type | Class and Description |
---|---|
static interface |
PlotGeneratorResult.PlotGenerator
Interface for a class that may generate a plot using the specified
GraphicsAdaptor . |
comment, datatype, name
Constructor and Description |
---|
PlotGeneratorResult(StringBuffer rep)
Creates a new
PlotGeneratorResult from its XML representation. |
PlotGeneratorResult(String name,
String comment,
PlotGeneratorResult.PlotGenerator gen,
boolean isStatic)
Creates a new
PlotGeneratorResult with the given name, comment, PlotGeneratorResult.PlotGenerator . |
Modifier and Type | Method and Description |
---|---|
protected void |
appendFurtherInfos(StringBuffer buf)
This method can be used in the method
Storable.toXML() to extract
further information (name, comment, datatype). |
protected void |
extractFurtherInfos(StringBuffer buf)
This method can be used in the constructor with parameter
StringBuffer to
extract the further information. |
PlotGeneratorResult.PlotGenerator |
getValue()
Returns the value of the
AnnotatedEntity . |
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description.
|
boolean |
isStatic()
Returns
true if the plot is considered static and may be cached. |
checkDatatype, createResult, getOriginalName, isCastableResult, isComparableResult, rename
getComment, getDatatype, getName, toXML
public PlotGeneratorResult(String name, String comment, PlotGeneratorResult.PlotGenerator gen, boolean isStatic)
PlotGeneratorResult
with the given name, comment, PlotGeneratorResult.PlotGenerator
.name
- the name of the resultcomment
- a comment on the resultgen
- the object that may generate the plotisStatic
- if true
, the plot is considered static and may be cached.public PlotGeneratorResult(StringBuffer rep) throws NonParsableException
PlotGeneratorResult
from its XML representation.rep
- the XML representationNonParsableException
- if XML could not be parsedpublic String getXMLTag()
AnnotatedEntity
getXMLTag
in class AnnotatedEntity
protected void appendFurtherInfos(StringBuffer buf)
AnnotatedEntity
Storable.toXML()
to extract
further information (name, comment, datatype).appendFurtherInfos
in class Result
buf
- a XML representation of the main information as
StringBuffer
Storable.toXML()
protected void extractFurtherInfos(StringBuffer buf) throws NonParsableException
AnnotatedEntity
StringBuffer
to
extract the further information.extractFurtherInfos
in class Result
buf
- a XML represenation of the main information as
StringBuffer
NonParsableException
- if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)
public PlotGeneratorResult.PlotGenerator getValue()
AnnotatedEntity
AnnotatedEntity
.getValue
in class AnnotatedEntity
AnnotatedEntity
public boolean isStatic()
true
if the plot is considered static and may be cached.