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 java.awt.image.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(VisualizerContext context,
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.
|
org.w3c.dom.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 java.awt.image.BufferedImage thumb
private SVGPlot plot
private Projection proj
public ThumbnailVisualization(VisualizerContext context, VisFactory visFactory, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj, int thumbsize)
context
- Visualizer contextvisFactory
- 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 org.w3c.dom.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 © 2019 ELKI Development Team. License information.