public class DetailView extends SVGPlot implements ResultListener
Modifier and Type | Class and Description |
---|---|
protected class |
DetailView.InsertVisualization
Class used to insert a new visualization layer
|
SVGPlot.CloneNoExport
Modifier and Type | Field and Description |
---|---|
(package private) VisualizerContext |
context
The visualizer context
|
private double |
height
The created height
|
(package private) Map<VisualizationTask,Visualization> |
layermap
Map from visualizers to layers
|
(package private) double |
ratio
Ratio of this view.
|
(package private) PlotItem |
visi
Meta information on the visualizers contained.
|
private double |
width
The created width
|
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.
|
Map<VisualizationTask,Visualization> |
getLayermap() |
double |
getRatio()
Get the plot ratio.
|
protected void |
redraw() |
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
|
addCSSClassOrLogError, cloneDocument, dumpDebugFile, elementCoordinatesFromEvent, getAllIds, getCSSClassManager, getDefs, getDisableInteractions, getDocument, 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
PlotItem visi
double ratio
VisualizerContext context
Map<VisualizationTask,Visualization> layermap
private double width
private double height
public DetailView(VisualizerContext context, PlotItem vis, double ratio)
vis
- Visualizations to useratio
- Plot ratioprivate void addBackground(VisualizerContext context)
context
- protected void redraw()
public void destroy()
private void destroyVisualizations()
public void dispose()
SVGPlot
public double getRatio()
public void setRatio(double ratio)
ratio
- the new ratio to setpublic Map<VisualizationTask,Visualization> getLayermap()
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 from