public abstract class AbstractVisualization extends Object implements Visualization, ResultListener, VisualizationListener, DataStoreListener
Modifier and Type | Field and Description |
---|---|
protected VisualizerContext |
context
Our context
|
private double |
height
Height
|
protected Element |
layer
Layer storage
|
protected VisualizationPlot |
svgp
The plot we are attached to
|
protected VisualizationTask |
task
The visualization task we do.
|
private double |
width
Width
|
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()
Visualization
destroy
in interface Visualization
public Element getLayer()
Visualization
getLayer
in interface Visualization
protected double getWidth()
protected double getHeight()
public void incrementalRedraw()
incrementalRedraw
in interface Visualization
public abstract void fullRedraw()
Visualization
fullRedraw
in interface Visualization
public void resultAdded(Result child, Result parent)
ResultListener
resultAdded
in interface ResultListener
child
- New child result addedparent
- Parent result that was added topublic void resultChanged(Result current)
ResultListener
resultChanged
in interface ResultListener
current
- Result that has changed.public void resultRemoved(Result child, Result parent)
ResultListener
resultRemoved
in interface ResultListener
child
- result that was removedparent
- Parent result that was removed frompublic void visualizationChanged(VisualizationItem item)
VisualizationListener
visualizationChanged
in interface VisualizationListener
item
- Changed visualizationpublic void contentChanged(DataStoreEvent e)
DataStoreListener
contentChanged
in interface DataStoreListener
e
- the update eventCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.