public class DetailView extends VisualizationPlot implements ResultListener, VisualizationListener
Modifier and Type | Field and Description |
---|---|
(package private) VisualizerContext |
context
The visualizer context
|
private double |
height
The created height
|
private PlotItem |
item
Meta information on the visualizers contained.
|
private static Logging |
LOG
Class logger
|
(package private) java.util.concurrent.atomic.AtomicReference<java.lang.Runnable> |
pendingRefresh
Pending refresh, for lazy refreshing
|
(package private) double |
ratio
Ratio of this view.
|
(package private) java.util.Map<VisualizationTask,Visualization> |
taskmap
Map from tasks to visualizations.
|
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.
|
void |
dispose()
Clean up the plot.
|
PlotItem |
getPlotItem()
Get the item visualized by this view.
|
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, makeAWTImage, putIdElement, saveAsANY, saveAsEPS, saveAsJPEG, saveAsJPEG, saveAsPDF, saveAsPNG, saveAsPS, saveAsSVG, scheduleUpdate, setDisableInteractions, svgCircle, svgElement, svgElement, svgLine, svgRect, svgText, synchronizeWith, transcode, unsynchronizeWith, updateStyleElement
private static final Logging LOG
private PlotItem item
double ratio
VisualizerContext context
java.util.Map<VisualizationTask,Visualization> taskmap
private double width
private double height
java.util.concurrent.atomic.AtomicReference<java.lang.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()
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
public PlotItem getPlotItem()
Copyright © 2019 ELKI Development Team. License information.