|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.visualization.svg.SVGPlot
de.lmu.ifi.dbs.elki.visualization.gui.overview.OverviewPlot<NV>
NV
- Number vector typepublic class OverviewPlot<NV extends NumberVector<NV,?>>
Generate an overview plot for a set of visualizations.
Nested Class Summary | |
---|---|
class |
OverviewPlot.SelectPlotEvent
Event when a plot was selected. |
protected class |
OverviewPlot.ThumbnailThread
Thread to update thumbnails in the background. |
Field Summary | |
---|---|
private Vector<ActionListener> |
actionListeners
Action listeners for this plot. |
private Database<? extends DatabaseObject> |
db
Database we work on. |
private EventListener |
hoverer
React to mouse hover events |
private Element |
hoverlayer
Layer for hover elements |
static int |
MAX_DIMENSIONS_DEFAULT
Maximum number of dimensions to visualize. |
private int |
maxdim
Stores the maximum number of dimensions to show. |
private Element |
plotlayer
Layer for plot thumbnail |
protected PlotMap<NV> |
plotmap
Map of coordinates to plots. |
(package private) Queue<Pair<Element,VisualizationInfo>> |
queue
Queue of thumbnails to generate. |
private MultiResult |
result
Result we work on. |
int |
screenheight
Screen size (used for thumbnail sizing) |
int |
screenwidth
Screen size (used for thumbnail sizing) |
private CSSClass |
selcss
The CSS class used on "selectable" rectangles. |
private boolean |
stopped
Flag to indicate shutdown. |
(package private) static Thumbnailer |
t
Thumbnailer to use. |
private OverviewPlot.ThumbnailThread |
thumbnails
Current thumbnail thread. |
private Collection<Visualizer> |
vis
Visualizations |
private HashMap<VisualizationInfo,Element> |
vistoelem
Lookup |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.svg.SVGPlot |
---|
DEFAULT_QUALITY |
Constructor Summary | |
---|---|
OverviewPlot(Database<? extends DatabaseObject> db,
MultiResult result,
int maxdim)
Constructor. |
Method Summary | |
---|---|
void |
addActionListener(ActionListener actionListener)
Adds an ActionListener to the plot. |
private void |
addOrQueueThumbnail(VisualizationInfo vi,
Element gg)
Queue a thumbnail for generation. |
void |
addVisualizations(Collection<Visualizer> vs)
Add vis to the plot. |
private void |
arrangeVisualizations()
Recompute the layout of visualizations. |
void |
dispose()
Cancel the overview, i.e. stop the thumbnailer |
protected void |
generateThumbnail(Element g,
VisualizationInfo vi)
Generate a single Thumbnail. |
SVGPlot |
makeDetailPlot(double x,
double y)
Event triggered when a plot was selected. |
private void |
queueThumbnail(VisualizationInfo vi,
Element gg)
Queue a thumbnail for generation. |
private void |
recalcViewbox()
Recompute the view box of the plot. |
void |
refresh()
Do a refresh (when visibilities have changed). |
void |
reinitialize()
Refresh the overview plot. |
private void |
setupHoverer()
Setup the CSS hover effect. |
private void |
stopThumbnailer()
Stop a running thumbnailer. |
void |
triggerRedraw(Visualizer caller)
Called when a redraw is needed. |
protected void |
triggerSubplotSelectEvent(double x,
double y)
When a subplot was selected, forward the event to listeners. |
private Database<NV> |
uglyCastDatabase()
Ugly cast of the database to a default number vector. |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.svg.SVGPlot |
---|
dumpDebugFile, getAllIds, getCSSClassManager, getDefs, getDisableInteractions, getDocument, getIdElement, getRoot, getStyle, putIdElement, saveAsANY, saveAsEPS, saveAsJPEG, saveAsJPEG, saveAsPDF, saveAsPNG, saveAsPS, saveAsSVG, scheduleUpdate, setDisableInteractions, svgCircle, svgElement, svgLine, svgRect, svgText, synchronizeWith, transcode, unsynchronizeWith, updateStyleElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_DIMENSIONS_DEFAULT
private int maxdim
private Collection<Visualizer> vis
private Database<? extends DatabaseObject> db
private MultiResult result
protected PlotMap<NV extends NumberVector<NV,?>> plotmap
static Thumbnailer t
private Vector<ActionListener> actionListeners
private OverviewPlot.ThumbnailThread thumbnails
Queue<Pair<Element,VisualizationInfo>> queue
public int screenwidth
public int screenheight
private EventListener hoverer
private HashMap<VisualizationInfo,Element> vistoelem
private Element plotlayer
private Element hoverlayer
private CSSClass selcss
private boolean stopped
Constructor Detail |
---|
public OverviewPlot(Database<? extends DatabaseObject> db, MultiResult result, int maxdim)
db
- Databaseresult
- Result to visualizemaxdim
- Maximum number of dimensionsMethod Detail |
---|
public void addVisualizations(Collection<Visualizer> vs)
refresh()
when done.
vs
- vis.private void arrangeVisualizations()
public void reinitialize()
public void refresh()
private void addOrQueueThumbnail(VisualizationInfo vi, Element gg)
vi
- VisualizationInfogg
- Thumbnail elementprivate void queueThumbnail(VisualizationInfo vi, Element gg)
vi
- VisualizationInfogg
- Thumbnail elementprivate void recalcViewbox()
private void stopThumbnailer()
private void setupHoverer()
protected void generateThumbnail(Element g, VisualizationInfo vi)
g
- Parent element to insert the thumbnail into.vi
- Visualization.private Database<NV> uglyCastDatabase()
public SVGPlot makeDetailPlot(double x, double y)
x
- X coordinatey
- Y coordinate
public void addActionListener(ActionListener actionListener)
ActionListener
to the plot.
actionListener
- the ActionListener
to be addedprotected void triggerSubplotSelectEvent(double x, double y)
x
- X coordinatey
- Y coordinatepublic void dispose()
public void triggerRedraw(Visualizer caller)
RedrawListener
triggerRedraw
in interface RedrawListener
caller
- Visualization that requested a redraw.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |