de.cau.cs.kieler.kiml.grana.visualizers
Class ToStringVisualizer

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.AbstractAnalysisResultVisualizer
      extended by de.cau.cs.kieler.kiml.grana.visualizers.ToStringVisualizer

public class ToStringVisualizer
extends AbstractAnalysisResultVisualizer

The simplest possible visualizer. Returns the result of the toString method.

Rating red

Constructor Summary
ToStringVisualizer()
           
 
Method Summary
 boolean canVisualize(Object result)
          Returns whether this class can visualize the given analysis result.
 String visualize(Object result)
          Visualizes the given result object by returning html 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
 

Constructor Detail

ToStringVisualizer

public ToStringVisualizer()
Method Detail

canVisualize

public boolean canVisualize(Object result)
Returns whether this class can visualize the given analysis result.

Specified by:
canVisualize in class AbstractAnalysisResultVisualizer
Parameters:
result - the result of an analysis
Returns:
true if this class can visualize the result

visualize

public String visualize(Object result)
Visualizes the given result object by returning html if canVisualize returns true for the given result. Returns null if usesResultDialog returns true.

Specified by:
visualize in class AbstractAnalysisResultVisualizer
Parameters:
result - the result to visualize
Returns:
the html to display in the result dialog or null if this visualizer displays the results in another way