Class DetailView

    • Field Detail

      • LOG

        private static final Logging LOG
        Class logger
      • item

        private PlotItem item
        Meta information on the visualizers contained.
      • ratio

        double ratio
        Ratio of this view.
      • width

        private double width
        The created width
      • height

        private double height
        The created height
      • pendingRefresh

        java.util.concurrent.atomic.AtomicReference<java.lang.Runnable> pendingRefresh
        Pending refresh, for lazy refreshing
    • Constructor Detail

      • DetailView

        public DetailView​(VisualizerContext context,
                          PlotItem vis,
                          double ratio)
        Constructor.
        Parameters:
        vis - Visualizations to use
        ratio - Plot ratio
    • Method Detail

      • addBackground

        private void addBackground​(VisualizerContext context)
        Create a background node. Note: don't call this at arbitrary times - the background may cover already drawn parts of the image!
        Parameters:
        context -
      • initialize

        private void initialize()
      • refresh

        private void refresh()
        Do a refresh (when visibilities have changed).
      • instantiateVisualization

        private Visualization instantiateVisualization​(VisualizationTask task)
        Instantiate a visualization.
        Parameters:
        task - Task to instantiate
        Returns:
        Visualization
      • destroy

        public void destroy()
        Cleanup function. To remove listeners.
      • dispose

        public void dispose()
        Description copied from class: SVGPlot
        Clean up the plot.
        Overrides:
        dispose in class SVGPlot
      • getRatio

        public double getRatio()
        Get the plot ratio.
        Returns:
        the current ratio
      • setRatio

        public void setRatio​(double ratio)
        Set the plot ratio
        Parameters:
        ratio - the new ratio to set
      • lazyRefresh

        private void lazyRefresh()
        Trigger a refresh.
      • resultAdded

        public void resultAdded​(java.lang.Object child,
                                java.lang.Object parent)
        Description copied from interface: ResultListener
        A new derived result was added.
        Specified by:
        resultAdded in interface ResultListener
        Parameters:
        child - New child result added
        parent - Parent result that was added to
      • resultChanged

        public void resultChanged​(java.lang.Object current)
        Description copied from interface: ResultListener
        Notify that the current result has changed substantially.
        Specified by:
        resultChanged in interface ResultListener
        Parameters:
        current - Result that has changed.
      • resultRemoved

        public void resultRemoved​(java.lang.Object child,
                                  java.lang.Object parent)
        Description copied from interface: ResultListener
        A result was removed.
        Specified by:
        resultRemoved in interface ResultListener
        Parameters:
        child - result that was removed
        parent - Parent result that was removed from
      • getPlotItem

        public PlotItem getPlotItem()
        Get the item visualized by this view.
        Returns:
        Plot item