Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.visualization.gui.overview
Class VisualizationLabel

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.gui.overview.VisualizationInfo
      extended by de.lmu.ifi.dbs.elki.visualization.gui.overview.VisualizationLabel

public class VisualizationLabel
extends VisualizationInfo

Trivial "visualizer" that displays a label. The visualizer is meant to be used for dimension labels in the overview, and doesn't support a "detail" view.

Author:
Erich Schubert

Field Summary
(package private)  String label
          Label to display
(package private)  StyleLibrary style
           
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.gui.overview.VisualizationInfo
height, thumbnail, width
 
Constructor Summary
VisualizationLabel(String label, double width, double height)
          Constructor
 
Method Summary
 Element build(SVGPlot plot, double width, double height)
          Build (render) the visualization into an SVG tree.
protected  Visualizer getVisualization()
           
 boolean hasDetails()
          Test whether a detail view is available.
 boolean isVisible()
          Test whether the visualization is set to be visible.
 Element makeElement(SVGPlot plot)
          Make an element for this visualization.
 boolean thumbnailEnabled()
          Test whether a thumbnail is needed for this visualization.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.gui.overview.VisualizationInfo
generateThumbnail, getHeight, getThumbnailIfGenerated, getWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

style

StyleLibrary style

label

String label
Label to display

Constructor Detail

VisualizationLabel

public VisualizationLabel(String label,
                          double width,
                          double height)
Constructor

Parameters:
label - Label to display
width - Width
height - Height
Method Detail

isVisible

public boolean isVisible()
Description copied from class: VisualizationInfo
Test whether the visualization is set to be visible.

Overrides:
isVisible in class VisualizationInfo
Returns:
Whether or not to show this visualization.

thumbnailEnabled

public boolean thumbnailEnabled()
Description copied from class: VisualizationInfo
Test whether a thumbnail is needed for this visualization.

Overrides:
thumbnailEnabled in class VisualizationInfo
Returns:
Whether or not to generate a thumbnail.

build

public Element build(SVGPlot plot,
                     double width,
                     double height)
Description copied from class: VisualizationInfo
Build (render) the visualization into an SVG tree.

Specified by:
build in class VisualizationInfo
Parameters:
plot - SVG plot context (factory)
width - Canvas width
height - Canvas height
Returns:
SVG subtree

getVisualization

protected Visualizer getVisualization()
Specified by:
getVisualization in class VisualizationInfo

makeElement

public Element makeElement(SVGPlot plot)
Description copied from class: VisualizationInfo
Make an element for this visualization.

Overrides:
makeElement in class VisualizationInfo
Parameters:
plot - Plot to insert into
Returns:
SVG Element

hasDetails

public boolean hasDetails()
Description copied from class: VisualizationInfo
Test whether a detail view is available.

Overrides:
hasDetails in class VisualizationInfo
Returns:
Whether or not a detail view is available.

Release 0.3 (2010-03-31_1612)