de.lmu.ifi.dbs.elki.visualization.visualizers.visunproj
Class LabelVisFactory

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisFactory
      extended by de.lmu.ifi.dbs.elki.visualization.visualizers.visunproj.LabelVisFactory
All Implemented Interfaces:
ResultProcessor, InspectionUtilFrequentlyScanned, Parameterizable, VisFactory

public class LabelVisFactory
extends AbstractVisFactory

Trivial "visualizer" that displays a static label. The visualizer is meant to be used for dimension labels in the overview.


Field Summary
private  String label
          The label to render
private  boolean rotated
          Flag to indicate rotated labels (90 deg to the left)
 
Constructor Summary
LabelVisFactory()
          Constructor.
LabelVisFactory(String label)
          The actually used constructor - with a static label.
LabelVisFactory(String label, boolean rotated)
          Constructor.
 
Method Summary
 boolean allowThumbnails(VisualizationTask task)
          Test whether to do a thumbnail or a full rendering.
 Visualization makeVisualization(VisualizationTask task)
          Produce a visualization instance for the given task
 void processNewResult(HierarchicalResult baseResult, Result newResult)
          Add visualizers for the given result (tree) to the context.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisFactory
makeVisualizationOrThumbnail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

private String label
The label to render


rotated

private boolean rotated
Flag to indicate rotated labels (90 deg to the left)

Constructor Detail

LabelVisFactory

public LabelVisFactory()
Constructor. Solely for API purposes (Parameterizable!)


LabelVisFactory

public LabelVisFactory(String label)
The actually used constructor - with a static label.

Parameters:
label - Label to use

LabelVisFactory

public LabelVisFactory(String label,
                       boolean rotated)
Constructor.

Parameters:
label - Label to use
rotated - Rotated 90 deg to the left
Method Detail

processNewResult

public void processNewResult(HierarchicalResult baseResult,
                             Result newResult)
Description copied from interface: VisFactory
Add visualizers for the given result (tree) to the context.

Parameters:
baseResult - Context to work with
newResult - Result to process

makeVisualization

public Visualization makeVisualization(VisualizationTask task)
Description copied from interface: VisFactory
Produce a visualization instance for the given task

Specified by:
makeVisualization in interface VisFactory
Specified by:
makeVisualization in class AbstractVisFactory
Parameters:
task - Visualization task
Returns:
Visualization

allowThumbnails

public boolean allowThumbnails(VisualizationTask task)
Description copied from class: AbstractVisFactory
Test whether to do a thumbnail or a full rendering. Override this with "false" to disable thumbnails!

Overrides:
allowThumbnails in class AbstractVisFactory
Parameters:
task - Task requested

Release 0.4.0 (2011-09-20_1324)