de.cau.cs.kieler.kiml.grana.visualization
Class AbstractSimpleVisualizer<S>
java.lang.Object
de.cau.cs.kieler.kiml.grana.visualization.AbstractSimpleVisualizer<S>
- Type Parameters:
S
- the result type of the visualization
- All Implemented Interfaces:
- IVisualizer<S,Object>
- Direct Known Subclasses:
- AnalysisFailedHtmlVisualizer, ArrayResultVisualizer, BasicCSVVisualizer, ToStringVisualizer
public abstract class AbstractSimpleVisualizer<S>
- extends Object
- implements IVisualizer<S,Object>
An abstract base class for result visualizers. It provides a simpler
interface that has to be implemented at the loss of functionality.
- Rating

Method Summary |
abstract S |
visualize(AbstractInfoAnalysis analysis,
Object result)
Visualizes the given analysis result by returning an object that
represents the visualization, if canVisualize returns true for
the given result. |
S |
visualize(AbstractInfoAnalysis analysis,
Object result,
Object parameter)
Visualizes the given analysis result by modifying the given parameter
and/or returning an object that represents the visualization, if
canVisualize returns true for the given result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleVisualizer
public AbstractSimpleVisualizer()
visualize
public S visualize(AbstractInfoAnalysis analysis,
Object result,
Object parameter)
- Visualizes the given analysis result by modifying the given parameter
and/or returning an object that represents the visualization, if
canVisualize
returns true for the given result.
- Specified by:
visualize
in interface IVisualizer<S,Object>
- Parameters:
analysis
- the analysisresult
- the result to visualizeparameter
- the parameter
- Returns:
- an object that represents the visualization or null if not
applicable
visualize
public abstract S visualize(AbstractInfoAnalysis analysis,
Object result)
- Visualizes the given analysis result by returning an object that
represents the visualization, if
canVisualize
returns true for
the given result.
- Parameters:
analysis
- the analysisresult
- the analysis result
- Returns:
- the visualization result