de.lmu.ifi.dbs.elki.visualization
Class VisualizerParameterizer

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.VisualizerParameterizer
All Implemented Interfaces:
InspectionUtilFrequentlyScanned, Parameterizable

public class VisualizerParameterizer
extends Object
implements Parameterizable

Utility class to determine the visualizers for a result class.


Nested Class Summary
static class VisualizerParameterizer.Parameterizer
          Parameterization class.
 
Field Summary
static String DEFAULT_HIDEVIS
          Default pattern for visualizer disabling.
private  Collection<VisFactory> factories
          (Result-to-visualization) Adapters
static OptionID HIDEVIS_ID
          Parameter to disable visualizers Key: -vis.hide Default: default properties file
private  Pattern hideVisualizers
          Visualizer disabling pattern
protected static Logging logger
          Get a logger for this class.
private  Collection<ProjectorFactory> projectors
          Projectors to use.
private  StyleLibrary stylelib
          Style library to use.
static OptionID STYLELIB_ID
          Parameter to get the style properties file.
 
Constructor Summary
VisualizerParameterizer(StyleLibrary stylelib, Collection<ProjectorFactory> projectors, Collection<VisFactory> factories, Pattern hideVisualizers)
          Constructor.
 
Method Summary
static String getTitle(Database db, Result result)
          Try to automatically generate a title for this.
 VisualizerContext newContext(HierarchicalResult result)
          Make a new visualization context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Logging logger
Get a logger for this class.


STYLELIB_ID

public static final OptionID STYLELIB_ID
Parameter to get the style properties file.

Key: -visualizer.stylesheet Default: default properties file


DEFAULT_HIDEVIS

public static final String DEFAULT_HIDEVIS
Default pattern for visualizer disabling.

See Also:
Constant Field Values

HIDEVIS_ID

public static final OptionID HIDEVIS_ID
Parameter to disable visualizers

Key: -vis.hide Default: default properties file


stylelib

private StyleLibrary stylelib
Style library to use.


factories

private Collection<VisFactory> factories
(Result-to-visualization) Adapters


hideVisualizers

private Pattern hideVisualizers
Visualizer disabling pattern


projectors

private Collection<ProjectorFactory> projectors
Projectors to use.

Constructor Detail

VisualizerParameterizer

public VisualizerParameterizer(StyleLibrary stylelib,
                               Collection<ProjectorFactory> projectors,
                               Collection<VisFactory> factories,
                               Pattern hideVisualizers)
Constructor.

Parameters:
stylelib - Style library
projectors - Projectors
factories - Factories to use
hideVisualizers - Visualizer hiding pattern
Method Detail

newContext

public VisualizerContext newContext(HierarchicalResult result)
Make a new visualization context

Parameters:
result - Base result
Returns:
New context

getTitle

public static String getTitle(Database db,
                              Result result)
Try to automatically generate a title for this.

Parameters:
db - Database
result - Result object
Returns:
generated title

Release 0.4.0 (2011-09-20_1324)