Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.visualization.visualizers.adapter
Class DefaultAdapter<NV extends NumberVector<NV,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.adapter.DefaultAdapter<NV>
Type Parameters:
NV - Vector type
All Implemented Interfaces:
Parameterizable, AlgorithmAdapter

public class DefaultAdapter<NV extends NumberVector<NV,?>>
extends Object
implements AlgorithmAdapter

Class to add various default visualizations.

Author:
Erich Schubert

Field Summary
private  AxisVisualizer<NV> axisVisualizer
          Visualizer to draw the axes on 2D projections
private  Projection1DHistogramVisualizer<NV> histoVisualizer
          Visualizer to draw 1D distribution histograms
private  MergedParameterization reconfig
          Track parameters for subclasses for "replay".
private  SettingsVisualizer settingsVisualizer
          Visualizer to show the settings.
 
Constructor Summary
DefaultAdapter(Parameterization config)
          Constructor, adhering to Parameterizable
 
Method Summary
 boolean canVisualize(VisualizerContext context)
          Returns true if the adapter can provide one or more Visualizers for the given Result, else false.
 Collection<Visualizer> getProvidedVisualizers()
          Returns a collection of Visualizers this adapter generally provides.
 Collection<Visualizer> getUsableVisualizers(VisualizerContext context)
          Returns a collection of Visualizers this adapter provides, depending on the given database and result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settingsVisualizer

private SettingsVisualizer settingsVisualizer
Visualizer to show the settings.


axisVisualizer

private AxisVisualizer<NV extends NumberVector<NV,?>> axisVisualizer
Visualizer to draw the axes on 2D projections


histoVisualizer

private Projection1DHistogramVisualizer<NV extends NumberVector<NV,?>> histoVisualizer
Visualizer to draw 1D distribution histograms


reconfig

private MergedParameterization reconfig
Track parameters for subclasses for "replay".

Constructor Detail

DefaultAdapter

public DefaultAdapter(Parameterization config)
Constructor, adhering to Parameterizable

Parameters:
config - Parameterization
Method Detail

canVisualize

public boolean canVisualize(VisualizerContext context)
Description copied from interface: AlgorithmAdapter
Returns true if the adapter can provide one or more Visualizers for the given Result, else false.

Specified by:
canVisualize in interface AlgorithmAdapter
Parameters:
context - Context to store shared visualization properties.
Returns:
true if the adapter can provide one or more Visualizers for the given Result, else false.

getProvidedVisualizers

public Collection<Visualizer> getProvidedVisualizers()
Description copied from interface: AlgorithmAdapter
Returns a collection of Visualizers this adapter generally provides.

Specified by:
getProvidedVisualizers in interface AlgorithmAdapter
Returns:
a collection of Visualizers this adapter generally provides.

getUsableVisualizers

public Collection<Visualizer> getUsableVisualizers(VisualizerContext context)
Description copied from interface: AlgorithmAdapter
Returns a collection of Visualizers this adapter provides, depending on the given database and result.

Specified by:
getUsableVisualizers in interface AlgorithmAdapter
Parameters:
context - Context to store shared visualization properties.
Returns:
a collection of Visualizers this adapter provides, depending on the given database and result.

Release 0.3 (2010-03-31_1612)