|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
public abstract class AbstractVisualization

Abstract base class for visualizations.
| Field Summary | |
|---|---|
protected VisualizerContext |
context
Our context |
protected Element |
layer
Layer storage |
protected Runnable |
pendingRedraw
Pending redraw |
protected SVGPlot |
svgp
The plot we are attached to |
protected VisualizationTask |
task
The visualization task we do. |
| Constructor Summary | |
|---|---|
AbstractVisualization(VisualizationTask task)
Constructor. |
|
| Method Summary | |
|---|---|
void |
contextChanged(ContextChangedEvent e)
Method called on context changes (e.g. projection changes). |
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 boolean |
testRedraw(ContextChangedEvent e)
Override this method to add additional redraw triggers! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final VisualizationTask task
protected final VisualizerContext context
protected final SVGPlot svgp
protected Runnable pendingRedraw
protected Element layer
| Constructor Detail |
|---|
public AbstractVisualization(VisualizationTask task)
task - Visualization task| Method Detail |
|---|
public void destroy()
Visualization
destroy in interface Visualizationpublic Element getLayer()
Visualization
getLayer in interface Visualizationprotected double getWidth()
protected double getHeight()
public void contextChanged(ContextChangedEvent e)
ContextChangeListener
contextChanged in interface ContextChangeListenere - Change eventprotected boolean testRedraw(ContextChangedEvent e)
e - Event
protected final void synchronizedRedraw()
protected void incrementalRedraw()
protected abstract void redraw()
public void resultAdded(Result child,
Result parent)
ResultListener
resultAdded in interface ResultListenerchild - New child result addedparent - Parent result that was added topublic void resultChanged(Result current)
ResultListener
resultChanged in interface ResultListenercurrent - Result that has changed.
public void resultRemoved(Result child,
Result parent)
ResultListener
resultRemoved in interface ResultListenerchild - result that was removedparent - Parent result that was removed from
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||