public class ThumbnailVisualization extends AbstractVisualization implements ThumbnailThread.Listener, DataStoreListener
Modifier and Type | Field and Description |
---|---|
private int |
mask
The event mask.
|
static int |
NO_PROJECTION
Constant to not listen for projection changes
|
static int |
ON_DATA
Constant to listen for data changes
|
static int |
ON_SELECTION
Constant to listen for selection changes
|
static int |
ON_STYLE
Constant to listen for style result changes
|
protected ThumbnailThread.Task |
pendingThumbnail
Pending redraw
|
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, 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, synchronizedRedraw
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentChanged
public 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()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
public Element getLayer()
Visualization
getLayer
in interface Visualization
getLayer
in class AbstractVisualization
protected void incrementalRedraw()
incrementalRedraw
in class AbstractVisualization
protected void redraw()
redraw
in class AbstractVisualization
public void doThumbnail()
ThumbnailThread.Listener
doThumbnail
in interface ThumbnailThread.Listener
protected void refreshThumbnail()
public void resultChanged(Result current)
ResultListener
resultChanged
in interface ResultListener
resultChanged
in class AbstractVisualization
current
- Result that has changed.