|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization de.lmu.ifi.dbs.elki.visualization.visualizers.thumbs.ThumbnailVisualization
public class ThumbnailVisualization
Thumbnail visualization.
Field Summary | |
---|---|
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 |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
context, layer, pendingRedraw, svgp, task |
Constructor Summary | |
---|---|
ThumbnailVisualization(VisFactory visFactory,
VisualizationTask task,
int mask)
Constructor. |
Method Summary | |
---|---|
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! |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
getHeight, getWidth, resultAdded, resultRemoved, synchronizedRedraw |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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_SELECTION
Constructor Detail |
---|
public ThumbnailVisualization(VisFactory visFactory, VisualizationTask task, int mask)
visFactory
- Visualizer Factory to usetask
- Task to usemask
- Event mask (for auto-updating)Method Detail |
---|
public 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 contextChanged(ContextChangedEvent e)
ContextChangeListener
contextChanged
in interface ContextChangeListener
contextChanged
in class AbstractVisualization
e
- Change eventprotected boolean testRedraw(ContextChangedEvent e)
testRedraw
in class AbstractVisualization
e
- Event
public void contentChanged(DataStoreEvent e)
DataStoreListener
contentChanged
in interface DataStoreListener
e
- the update eventprotected void incrementalRedraw()
incrementalRedraw
in class AbstractVisualization
protected void redraw()
redraw
in class AbstractVisualization
public void doThumbnail(Thumbnailer t)
ThumbnailThread.Listener
doThumbnail
in interface ThumbnailThread.Listener
t
- Thumbnailer to useprotected void refreshThumbnail()
public void resultChanged(Result current)
ResultListener
resultChanged
in interface ResultListener
resultChanged
in class AbstractVisualization
current
- Result that has changed.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |