Class OverlayLayer

    • Field Detail

      • m_ButtonApply

        protected BaseFlatButton m_ButtonApply
        the button for applying the values.
      • m_ButtonRemove

        protected BaseFlatButton m_ButtonRemove
        the button for removing the layer.
      • m_ButtonActivate

        protected BaseFlatButton m_ButtonActivate
        the button for activating, showing the name.
      • m_Active

        protected boolean m_Active
        whether the layer is active.
    • Constructor Detail

      • OverlayLayer

        public OverlayLayer()
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class AbstractLayer
      • setName

        public void setName​(String value)
        Sets the name of the layer.
        Specified by:
        setName in class AbstractImageLayer
        Parameters:
        value - the name
      • getName

        public String getName()
        Returns the name of the layer.
        Specified by:
        getName in class AbstractLayer
        Returns:
        the name
      • setAlpha

        public void setAlpha​(float value)
        Sets the alpha value to use for transparency.
        Parameters:
        value - the alpha value
      • getAlpha

        public float getAlpha()
        Returns the alpha value for transparency.
        Returns:
        the alpha value
      • setColor

        public void setColor​(Color value)
        Sets the color value to use for the layer.
        Parameters:
        value - the color value
      • getColor

        public Color getColor()
        Returns the color value for the layer.
        Returns:
        the color value
      • setActive

        public void setActive​(boolean value)
        Sets the active state of the layer.
        Parameters:
        value - true if active
      • isActive

        public boolean isActive()
        Returns the active state of the layer.
        Returns:
        true if active
      • isRemovable

        public boolean isRemovable()
        Returns whether the layer can be removed.
        Specified by:
        isRemovable in class AbstractLayer
        Returns:
        true if can be removed
      • setRemovable

        public void setRemovable​(boolean value)
        Sets whether the layer can be removed.
        Parameters:
        value - true if removable
      • hasActionsAvailable

        public boolean hasActionsAvailable()
        Returns whether actions are available.
        Specified by:
        hasActionsAvailable in class AbstractLayer
        Returns:
        true if available
      • setActionsAvailable

        public void setActionsAvailable​(boolean value)
        Sets whether the layer actions are available.
        Parameters:
        value - true if available
      • updateImage

        protected void updateImage()
        Updates the image using the current color.
      • getBinaryImage

        public BufferedImage getBinaryImage()
        Returns the image as binary image.
        Returns:
        the converted image
      • doDraw

        protected void doDraw​(Graphics2D g2d)
        Performs the drawing.
        Specified by:
        doDraw in class AbstractLayer
        Parameters:
        g2d - the graphics context
      • update

        protected void update()
        Notifies the change listeners.
        Overrides:
        update in class AbstractLayer