public class ThumbnailVisualization extends AbstractVisualization implements ThumbnailThread.Listener, DataStoreListener, VisualizationListener
Modifier and Type | Field and Description |
---|---|
protected ThumbnailThread.Task |
pendingThumbnail
Pending redraw
|
private SVGPlot |
plot
Plot the thumbnail is in.
|
private Projection |
proj
Projection.
|
private BufferedImage |
thumb
Our thumbnail (keep a reference to prevent garbage collection!)
|
protected int |
thumbid
The thumbnail id.
|
protected int |
tresolution
Thumbnail resolution
|
protected VisFactory |
visFactory
Visualizer factory
|
context, layer, svgp, task
Constructor and Description |
---|
ThumbnailVisualization(VisFactory visFactory,
VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj,
int thumbsize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the visualization.
|
void |
doThumbnail()
Callback when to (re-)compute the thumbnail.
|
void |
fullRedraw()
Perform a full redraw.
|
Element |
getLayer()
Get the SVG layer of the given visualization.
|
private void |
refreshThumbnail() |
void |
resultChanged(Result current)
Notify that the current result has changed substantially.
|
void |
visualizationChanged(VisualizationItem item)
Visualization has changed.
|
addListeners, contentChanged, getHeight, getWidth, incrementalRedraw, resultAdded, resultRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentChanged
protected final VisFactory visFactory
protected int thumbid
protected ThumbnailThread.Task pendingThumbnail
protected int tresolution
private BufferedImage thumb
private SVGPlot plot
private Projection proj
public ThumbnailVisualization(VisFactory visFactory, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj, int thumbsize)
visFactory
- Visualizer Factory to usetask
- Task to useplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projectionthumbsize
- Thumbnail sizepublic void destroy()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
public Element getLayer()
Visualization
getLayer
in interface Visualization
getLayer
in class AbstractVisualization
public void fullRedraw()
fullRedraw
in interface Visualization
fullRedraw
in class AbstractVisualization
public void doThumbnail()
ThumbnailThread.Listener
doThumbnail
in interface ThumbnailThread.Listener
private void refreshThumbnail()
public void resultChanged(Result current)
ResultListener
resultChanged
in interface ResultListener
resultChanged
in class AbstractVisualization
current
- Result that has changed.public void visualizationChanged(VisualizationItem item)
VisualizationListener
visualizationChanged
in interface VisualizationListener
visualizationChanged
in class AbstractVisualization
item
- Changed visualizationCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.