Class DataPoolPanel

    • Constructor Detail

      • DataPoolPanel

        public DataPoolPanel()
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • getPool

        public DataPool getPool()
        Returns the data pool.
        Returns:
        the data pool
      • getPlot

        public PlotPanel getPlot()
        Returns the plot panel of the panel, null if no panel present.
        Specified by:
        getPlot in class PaintablePanel
        Returns:
        the plot panel
      • postUpdate

        protected void postUpdate()
        Hook method, called after the update was performed.

        Post-processes the data pool.
        Overrides:
        postUpdate in class PaintablePanel
      • canPaint

        protected boolean canPaint​(Graphics g)
        Returns true if the paintlets can be executed.
        Specified by:
        canPaint in class PaintablePanel
        Parameters:
        g - the graphics context
        Returns:
        true if painting can go ahead
      • setPostProcessor

        public void setPostProcessor​(AbstractDataPoolPostProcessor value)
        The post processor to use on the data.
        Parameters:
        value - the post processor
      • addData

        public void addData​(Object obj)
        Adds the data point to the pool and initiates a replot.
      • addData

        public void addData​(Object obj,
                            boolean redraw)
        Adds the data point to the pool and initiates a replot if requested.
        Parameters:
        obj - the data point to add
        redraw - whether to redraw the plot
      • clear

        public void clear()
        Clears the data pool and initiates a replot.