Class AbstractImageOverlay

    • Field Detail

      • m_Enabled

        protected boolean m_Enabled
        whether the overlay is enabled.
    • Constructor Detail

      • AbstractImageOverlay

        public AbstractImageOverlay()
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean value)
        Sets whether this overlay is enabled or not.
        Parameters:
        value - true if to enable this overlay
      • isEnabled

        public boolean isEnabled()
        Returns whether this overlay is enabled or not.
        Returns:
        true if overlay enabled
      • enabledTipText

        public String enabledTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doImageChanged

        protected abstract void doImageChanged​(ImagePanel.PaintPanel panel)
        Notifies the overlay that the image has changed.
        Parameters:
        panel - the panel this overlay belongs to
      • imageChanged

        public void imageChanged​(ImagePanel.PaintPanel panel)
        Notifies the overlay that the image has changed.
        Specified by:
        imageChanged in interface ImageOverlay
        Parameters:
        panel - the panel this overlay belongs to
      • doPaintOverlay

        protected abstract void doPaintOverlay​(ImagePanel.PaintPanel panel,
                                               Graphics g)
        Performs the actual painting of the overlay.
        Parameters:
        panel - the panel this overlay is for
        g - the graphics context
      • overlayAdded

        public void overlayAdded​(ImagePanel.PaintPanel panel)
        Gets called when the image overlay got added to a paintable panel.
        Default implementation does nothing.
        Specified by:
        overlayAdded in interface ImageOverlay
        Parameters:
        panel - the panel it got added to
      • overlayRemoved

        public void overlayRemoved​(ImagePanel.PaintPanel panel)
        Gets called when the image overlay got removed from a paintable panel.
        Default implementation does nothing.
        Specified by:
        overlayRemoved in interface ImageOverlay
        Parameters:
        panel - the panel it got removed from
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.

        Default implementation does nothing.
        Specified by:
        cleanUp in interface CleanUpHandler