Class TransparentBackground

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Serializable

    public class TransparentBackground
    extends AbstractImageFilterProvider
    Uses the color at the specified location as background and turns it transparent.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -x <adams.core.Index> (property: X)
        The X position of the pixel to get the color of the background from.
        default: 
        example: An index is a number starting with 1; the following placeholders can be used as well: first, second, third, last_2, last_1, last
     
    -y <adams.core.Index> (property: Y)
        The Y position of the pixel to get the color of the background from.
        default: 
        example: An index is a number starting with 1; the following placeholders can be used as well: first, second, third, last_2, last_1, last
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_X

        protected Index m_X
        the X position of the background pixel.
      • m_Y

        protected Index m_Y
        the Y position of the background pixel.
    • Constructor Detail

      • TransparentBackground

        public TransparentBackground()
    • Method Detail

      • setX

        public void setX​(Index value)
        Sets the X position of the background pixel.
        Parameters:
        value - the position
      • getX

        public Index getX()
        Returns the Y position of the background pixel.
        Returns:
        the position
      • XTipText

        public String XTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setY

        public void setY​(Index value)
        Sets the Y position of the background pixel.
        Parameters:
        value - the position
      • getY

        public Index getY()
        Returns the Y position of the background pixel.
        Returns:
        the position
      • YTipText

        public String YTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui