
public class ThumbnailVisualization extends AbstractVisualization implements ThumbnailThread.Listener, DataStoreListener
| Modifier and Type | Field and Description | 
|---|---|
| private int | maskThe event mask. | 
| static int | NO_PROJECTIONConstant to not listen for projection changes | 
| static int | ON_DATAConstant to listen for data changes | 
| static int | ON_SELECTIONConstant to listen for selection changes | 
| static int | ON_STYLEConstant to listen for style result changes | 
| protected ThumbnailThread.Task | pendingThumbnailPending redraw | 
| private BufferedImage | thumbOur thumbnail (keep a reference to prevent garbage collection!) | 
| protected int | thumbidThe thumbnail id. | 
| protected int | tresolutionThumbnail resolution | 
| protected VisFactory | visFactoryVisualizer factory | 
context, layer, pendingRedraw, svgp, task| Constructor and Description | 
|---|
| ThumbnailVisualization(VisFactory visFactory,
                      VisualizationTask task,
                      int mask)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | destroy()Destroy the visualization. | 
| void | doThumbnail()Callback when to (re-)compute the thumbnail. | 
| Element | getLayer()Get the SVG layer of the given visualization. | 
| protected void | incrementalRedraw()Redraw the visualization (maybe incremental). | 
| protected void | redraw()Perform a full redraw. | 
| protected void | refreshThumbnail() | 
| void | resultChanged(Result current)Notify that the current result has changed substantially. | 
contentChanged, getHeight, getWidth, resultAdded, resultRemoved, synchronizedRedrawclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontentChangedpublic static final int ON_DATA
public static final int ON_SELECTION
public static final int ON_STYLE
public static final int NO_PROJECTION
protected final VisFactory visFactory
protected int thumbid
protected ThumbnailThread.Task pendingThumbnail
protected int tresolution
private int mask
private BufferedImage thumb
public ThumbnailVisualization(VisFactory visFactory, VisualizationTask task, int mask)
visFactory - Visualizer Factory to usetask - Task to usemask - Event mask (for auto-updating)public void destroy()
Visualizationdestroy in interface Visualizationdestroy in class AbstractVisualizationpublic Element getLayer()
VisualizationgetLayer in interface VisualizationgetLayer in class AbstractVisualizationprotected void incrementalRedraw()
incrementalRedraw in class AbstractVisualizationprotected void redraw()
redraw in class AbstractVisualizationpublic void doThumbnail()
ThumbnailThread.ListenerdoThumbnail in interface ThumbnailThread.Listenerprotected void refreshThumbnail()
public void resultChanged(Result current)
ResultListenerresultChanged in interface ResultListenerresultChanged in class AbstractVisualizationcurrent - Result that has changed.