
public abstract class AbstractVisualization extends Object implements Visualization, ResultListener
| Modifier and Type | Field and Description | 
|---|---|
| protected VisualizerContext | contextOur context | 
| protected Element | layerLayer storage | 
| protected Runnable | pendingRedrawPending redraw | 
| protected SVGPlot | svgpThe plot we are attached to | 
| protected VisualizationTask | taskThe visualization task we do. | 
| Constructor and Description | 
|---|
| AbstractVisualization(VisualizationTask task)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | contentChanged(DataStoreEvent e)Default implementation for
  DataStoreListener.contentChanged(de.lmu.ifi.dbs.elki.database.datastore.DataStoreEvent)Not enabled or used by default, but saves redundant code. | 
| void | destroy()Destroy the visualization. | 
| protected double | getHeight()Get the height | 
| Element | getLayer()Get the SVG layer of the given visualization. | 
| protected double | getWidth()Get the width | 
| protected void | incrementalRedraw()Redraw the visualization (maybe incremental). | 
| protected abstract void | redraw()Perform a full redraw. | 
| void | resultAdded(Result child,
           Result parent)A new derived result was added. | 
| void | resultChanged(Result current)Notify that the current result has changed substantially. | 
| void | resultRemoved(Result child,
             Result parent)A result was removed. | 
| protected void | synchronizedRedraw()Trigger a redraw, but avoid excessive redraws. | 
protected final VisualizationTask task
protected final VisualizerContext context
protected final SVGPlot svgp
protected Runnable pendingRedraw
protected Element layer
public AbstractVisualization(VisualizationTask task)
task - Visualization taskpublic void destroy()
Visualizationdestroy in interface Visualizationpublic Element getLayer()
VisualizationgetLayer in interface Visualizationprotected double getWidth()
protected double getHeight()
protected final void synchronizedRedraw()
protected void incrementalRedraw()
protected abstract void redraw()
public void resultAdded(Result child, Result parent)
ResultListenerresultAdded in interface ResultListenerchild - New child result addedparent - Parent result that was added topublic void resultChanged(Result current)
ResultListenerresultChanged in interface ResultListenercurrent - Result that has changed.public void resultRemoved(Result child, Result parent)
ResultListenerresultRemoved in interface ResultListenerchild - result that was removedparent - Parent result that was removed frompublic void contentChanged(DataStoreEvent e)
DataStoreListener.contentChanged(de.lmu.ifi.dbs.elki.database.datastore.DataStoreEvent)
 
 Not enabled or used by default, but saves redundant code.e - Data store event