public class DetailView extends VisualizationPlot implements ResultListener, VisualizationListener
SVGPlot.CloneNoExport
Modifier and Type | Field and Description |
---|---|
(package private) VisualizerContext |
context
The visualizer context
|
private double |
height
The created height
|
(package private) Map<Visualization,Element> |
layermap
Map from visualizations to SVG layers.
|
private static Logging |
LOG
Class logger
|
(package private) AtomicReference<Runnable> |
pendingRefresh
Pending refresh, for lazy refreshing
|
(package private) double |
ratio
Ratio of this view.
|
(package private) Map<VisualizationTask,Visualization> |
taskmap
Map from tasks to visualizations.
|
(package private) PlotItem |
visi
Meta information on the visualizers contained.
|
private double |
width
The created width
|
pendingRedraw, updateQueue
DEFAULT_QUALITY, NO_EXPORT_ATTRIBUTE
Constructor and Description |
---|
DetailView(VisualizerContext context,
PlotItem vis,
double ratio)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addBackground(VisualizerContext context)
Create a background node.
|
void |
destroy()
Cleanup function.
|
private void |
destroyVisualizations() |
void |
dispose()
Clean up the plot.
|
double |
getRatio()
Get the plot ratio.
|
private void |
initialize() |
private Visualization |
instantiateVisualization(VisualizationTask task)
Instantiate a visualization.
|
private void |
lazyRefresh()
Trigger a refresh.
|
protected void |
redraw()
Redraw all pending updates.
|
private void |
refresh()
Do a refresh (when visibilities have changed).
|
void |
resultAdded(Result child,
Result parent)
A new derived result was added.
|
void |
resultChanged(Result current)
Notify that the current result has changed substantially.
|
void |
resultRemoved(Result child,
Result parent)
A result was removed.
|
void |
setRatio(double ratio)
Set the plot ratio
|
void |
visualizationChanged(VisualizationItem current)
Visualization has changed.
|
requestRedraw, synchronizedRedraw
addCSSClassOrLogError, cloneDocument, dumpDebugFile, elementCoordinatesFromEvent, getAllIds, getCSSClassManager, getDefs, getDisableInteractions, getDocument, getDomImpl, getIdElement, getRoot, getStyle, hasFOPInstalled, makeAWTImage, putIdElement, saveAsANY, saveAsEPS, saveAsJPEG, saveAsJPEG, saveAsPDF, saveAsPNG, saveAsPS, saveAsSVG, scheduleUpdate, setDisableInteractions, svgCircle, svgElement, svgLine, svgRect, svgText, synchronizeWith, transcode, unsynchronizeWith, updateStyleElement
private static final Logging LOG
PlotItem visi
double ratio
VisualizerContext context
Map<VisualizationTask,Visualization> taskmap
Map<Visualization,Element> layermap
private double width
private double height
AtomicReference<Runnable> pendingRefresh
public DetailView(VisualizerContext context, PlotItem vis, double ratio)
vis
- Visualizations to useratio
- Plot ratioprivate void addBackground(VisualizerContext context)
context
- private void initialize()
private void refresh()
private Visualization instantiateVisualization(VisualizationTask task)
task
- Task to instantiatepublic void destroy()
private void destroyVisualizations()
public void dispose()
SVGPlot
public double getRatio()
public void setRatio(double ratio)
ratio
- the new ratio to setprivate void lazyRefresh()
public void resultAdded(Result child, Result parent)
ResultListener
resultAdded
in interface ResultListener
child
- New child result addedparent
- Parent result that was added topublic void resultChanged(Result current)
ResultListener
resultChanged
in interface ResultListener
current
- Result that has changed.public void resultRemoved(Result child, Result parent)
ResultListener
resultRemoved
in interface ResultListener
child
- result that was removedparent
- Parent result that was removed frompublic void visualizationChanged(VisualizationItem current)
VisualizationListener
visualizationChanged
in interface VisualizationListener
current
- Changed visualizationprotected void redraw()
VisualizationPlot
redraw
in class VisualizationPlot
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.