
public class OverviewPlot extends SVGPlot implements ResultListener
| Modifier and Type | Class and Description | 
|---|---|
| class  | OverviewPlot.SelectPlotEventEvent when a plot was selected. | 
SVGPlot.CloneNoExport| Modifier and Type | Field and Description | 
|---|---|
| private ArrayList<ActionListener> | actionListenersAction listeners for this plot. | 
| private VisualizerContext | contextVisualizer context | 
| private EventListener | hovererReact to mouse hover events | 
| private Element | hoverlayerLayer for hover elements | 
| private static Logging | LOGOur logging class | 
| (package private) Runnable | pendingRefreshPending refresh, for lazy refreshing | 
| private Element | plotlayerLayer for plot thumbnail | 
| protected RectangleArranger<PlotItem> | plotmapMap of coordinates to plots. | 
| private double | ratioScreen ratio | 
| private boolean | reinitOnRefreshReinitialize on refresh | 
| int | screenheightScreen size (used for thumbnail sizing) | 
| int | screenwidthScreen size (used for thumbnail sizing) | 
| private CSSClass | selcssThe CSS class used on "selectable" rectangles. | 
| private boolean | singleSingle view mode | 
| private LayerMap | vistoelemLookup | 
DEFAULT_QUALITY, NO_EXPORT_ATTRIBUTE| Constructor and Description | 
|---|
| OverviewPlot(HierarchicalResult result,
            VisualizerContext context,
            boolean single)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addActionListener(ActionListener actionListener)Adds an  ActionListenerto the plot. | 
| private RectangleArranger<PlotItem> | arrangeVisualizations(double width,
                     double height)Recompute the layout of visualizations. | 
| void | dispose()Cancel the overview, i.e. stop the thumbnailer | 
| private Visualization | embedOrThumbnail(int thumbsize,
                PlotItem it,
                VisualizationTask task,
                Element parent)Produce thumbnail for a visualizer. | 
| double | getRatio() | 
| void | lazyRefresh()Trigger a redraw, but avoid excessive redraws. | 
| DetailView | makeDetailView(PlotItem it)Event triggered when a plot was selected. | 
| private void | recalcViewbox()Recompute the view box of the plot. | 
| (package private) void | refresh()Do a refresh (when visibilities have changed). | 
| private void | reinitialize()Refresh the overview plot. | 
| 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) | 
| private void | setupHoverer()Setup the CSS hover effect. | 
| protected void | triggerSubplotSelectEvent(PlotItem it)When a subplot was selected, forward the event to listeners. | 
| protected boolean | visibleInOverview(VisualizationTask task)Test whether a task should be displayed in the overview plot. | 
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, updateStyleElementprivate static final Logging LOG
private VisualizerContext context
protected RectangleArranger<PlotItem> plotmap
private ArrayList<ActionListener> actionListeners
private boolean single
public int screenwidth
public int screenheight
private EventListener hoverer
private LayerMap vistoelem
private Element plotlayer
private Element hoverlayer
private CSSClass selcss
private double ratio
Runnable pendingRefresh
private boolean reinitOnRefresh
public OverviewPlot(HierarchicalResult result, VisualizerContext context, boolean single)
result - Result to visualizecontext - Visualizer contextsingle - Single view modeprivate RectangleArranger<PlotItem> arrangeVisualizations(double width, double height)
width - Initial widthheight - Initial heightprivate void reinitialize()
private Visualization embedOrThumbnail(int thumbsize, PlotItem it, VisualizationTask task, Element parent)
thumbsize - Thumbnail sizeit - Plot itemtask - Taskparent - Parent element to draw tovoid refresh()
protected boolean visibleInOverview(VisualizationTask task)
task - Task to displayprivate void recalcViewbox()
private void setupHoverer()
public DetailView makeDetailView(PlotItem it)
it - Plot item selectedpublic void addActionListener(ActionListener actionListener)
ActionListener to the plot.actionListener - the ActionListener to be addedprotected void triggerSubplotSelectEvent(PlotItem it)
it - PlotItem selectedpublic void dispose()
public double getRatio()
public void setRatio(double ratio)
ratio - the ratio to setpublic final void lazyRefresh()
public void resultAdded(Result child, Result parent)
ResultListenerresultAdded in interface ResultListenerchild - New child result addedparent - Parent result that was added topublic void resultChanged(Result current)
ResultListenerresultChanged in interface ResultListenercurrent - Result that has changed.public void resultRemoved(Result child, Result parent)
ResultListenerresultRemoved in interface ResultListenerchild - result that was removedparent - Parent result that was removed from