public class ThumbnailVisualization extends AbstractVisualization implements ThumbnailThread.Listener, DataStoreListener
| Modifier and Type | Field and Description |
|---|---|
private int |
mask
The event mask.
|
static int |
ON_DATA
Constant to listen for data changes
|
static int |
ON_SELECTION
Constant to listen for selection changes
|
protected ThumbnailThread.Task |
pendingThumbnail
Pending redraw
|
protected File |
thumb
The thumbnail file.
|
protected int |
tresolution
Thumbnail resolution
|
protected VisFactory |
visFactory
Visualizer factory
|
context, layer, pendingRedraw, svgp, task| Constructor and Description |
|---|
ThumbnailVisualization(VisFactory visFactory,
VisualizationTask task,
int mask)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
contentChanged(DataStoreEvent e)
Invoked after objects of the datastore have been updated, inserted or
removed in some way.
|
void |
contextChanged(ContextChangedEvent e)
Method called on context changes (e.g. projection changes).
|
void |
destroy()
Destroy the visualization.
|
void |
doThumbnail(Thumbnailer t)
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.
|
protected boolean |
testRedraw(ContextChangedEvent e)
Override this method to add additional redraw triggers!
|
getHeight, getWidth, resultAdded, resultRemoved, synchronizedRedrawpublic static final int ON_DATA
public static final int ON_SELECTION
protected final VisFactory visFactory
protected File thumb
protected ThumbnailThread.Task pendingThumbnail
protected int tresolution
private int mask
ON_DATA, ON_SELECTIONpublic 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 AbstractVisualizationpublic void contextChanged(ContextChangedEvent e)
ContextChangeListenercontextChanged in interface ContextChangeListenercontextChanged in class AbstractVisualizatione - Change eventprotected boolean testRedraw(ContextChangedEvent e)
testRedraw in class AbstractVisualizatione - Eventpublic void contentChanged(DataStoreEvent e)
DataStoreListenercontentChanged in interface DataStoreListenere - the update eventprotected void incrementalRedraw()
incrementalRedraw in class AbstractVisualizationprotected void redraw()
redraw in class AbstractVisualizationpublic void doThumbnail(Thumbnailer t)
ThumbnailThread.ListenerdoThumbnail in interface ThumbnailThread.Listenert - Thumbnailer to useprotected void refreshThumbnail()
public void resultChanged(Result current)
ResultListenerresultChanged in interface ResultListenerresultChanged in class AbstractVisualizationcurrent - Result that has changed.