
public abstract class AbstractVisualization extends Object implements Visualization, ResultListener, VisualizationListener, DataStoreListener
| Modifier and Type | Field and Description | 
|---|---|
| protected VisualizerContext | contextOur context | 
| private double | heightHeight | 
| protected Element | layerLayer storage | 
| protected VisualizationPlot | svgpThe plot we are attached to | 
| protected VisualizationTask | taskThe visualization task we do. | 
| private double | widthWidth | 
| Constructor and Description | 
|---|
| AbstractVisualization(VisualizationTask task,
                     VisualizationPlot plot,
                     double width,
                     double height)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addListeners()Add the listeners according to the mask. | 
| void | contentChanged(DataStoreEvent e)Invoked after objects of the datastore have been updated, inserted or
 removed in some way. | 
| void | destroy()Destroy the visualization. | 
| abstract void | fullRedraw()Request a full redrawing of the visualization. | 
| protected double | getHeight()Get the height | 
| Element | getLayer()Get the SVG layer of the given visualization. | 
| protected double | getWidth()Get the width | 
| void | incrementalRedraw()Redraw the visualization (maybe incremental). | 
| 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. | 
| void | visualizationChanged(VisualizationItem item)Visualization has changed. | 
protected final VisualizationTask task
protected final VisualizerContext context
protected final VisualizationPlot svgp
protected Element layer
private double width
private double height
public AbstractVisualization(VisualizationTask task, VisualizationPlot plot, double width, double height)
task - Visualization taskplot - Plot to draw towidth - Embedding widthheight - Embedding heightprotected void addListeners()
public void destroy()
Visualizationdestroy in interface Visualizationpublic Element getLayer()
VisualizationgetLayer in interface Visualizationprotected double getWidth()
protected double getHeight()
public void incrementalRedraw()
incrementalRedraw in interface Visualizationpublic abstract void fullRedraw()
VisualizationfullRedraw in interface Visualizationpublic 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 visualizationChanged(VisualizationItem item)
VisualizationListenervisualizationChanged in interface VisualizationListeneritem - Changed visualizationpublic void contentChanged(DataStoreEvent e)
DataStoreListenercontentChanged in interface DataStoreListenere - the update eventCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.