Class AbstractDataPlotUpdater<P extends DataContainerPanel,​C>

    • Constructor Detail

      • AbstractDataPlotUpdater

        public AbstractDataPlotUpdater()
    • Method Detail

      • canNotify

        protected abstract boolean canNotify​(P panel,
                                             C cont)
        Checks whether all conditions are met to notify the listeners for changes in the data container panel.
        Parameters:
        panel - the data container panel to potentially update
        cont - the current plot container
        Returns:
        true if the listeners can be notified
      • doUpdate

        protected void doUpdate​(P panel,
                                boolean notify)
        Updates the data container panel regardless, with optional notification of listeners.
        Parameters:
        panel - the data container panel to update
        notify - whether to notify listeners
      • update

        public boolean update​(P panel,
                              C cont)
        Updates the data container panel if necessary.
        Specified by:
        update in interface DataPlotUpdater<P extends DataContainerPanel,​C>
        Parameters:
        panel - the data container panel to potentially update
        cont - the current data container
        Returns:
        true if the change listeners were notified
      • update

        public void update​(P panel)
        Updates the data container panel regardless, notifying the listeners.
        Specified by:
        update in interface DataPlotUpdater<P extends DataContainerPanel,​C>
        Parameters:
        panel - the data container panel to update