de.cau.cs.kieler.kiml.grana.visualization
Class Visualization

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.visualization.Visualization

public class Visualization
extends Object

This class represents a concrete visualization.

Rating red

Constructor Summary
Visualization(IVisualizer<Object,Object> theVisualizer)
          Constructs a Visualization.
 
Method Summary
<S> S
apply(AbstractInfoAnalysis analysis, Object result, Object parameter)
          Performs the visualization by attaching it in some way to the given parameter.
<S> S
get(AbstractInfoAnalysis analysis, Object result)
          Performs the visualization and returns the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Visualization

public Visualization(IVisualizer<Object,Object> theVisualizer)
Constructs a Visualization.

Parameters:
theVisualizer - the visualizer that handles the visualization
Method Detail

get

public <S> S get(AbstractInfoAnalysis analysis,
                 Object result)
Performs the visualization and returns the result. If this method can be called depends on the implementation of the visualizer.

Type Parameters:
S - the result type
Parameters:
analysis - the analysis
result - the analysis result
Returns:
the visualization result

apply

public <S> S apply(AbstractInfoAnalysis analysis,
                   Object result,
                   Object parameter)
Performs the visualization by attaching it in some way to the given parameter.

Type Parameters:
S - the result type
Parameters:
analysis - the analysis
result - the analysis result
parameter - the parameter
Returns:
the visualization result