Class GrayFilterProvider

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

    public class GrayFilterProvider
    extends AbstractImageFilterProvider
    Generates a javax.swing.GrayFilter image filter.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -brighten-pixels <boolean> (property: brightenPixels)
        If enabled, the pixels get brightened.
        default: false
     
    -gray-percentage <int> (property: grayPercentage)
        The gray percentage: 0 = lightest, 100 = darkest.
        default: 0
        minimum: 0
        maximum: 100
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_BrightenPixels

        protected boolean m_BrightenPixels
        whether to brighten the pixels.
      • m_GrayPercentage

        protected int m_GrayPercentage
        the gray percentage.
    • Constructor Detail

      • GrayFilterProvider

        public GrayFilterProvider()
    • Method Detail

      • setBrightenPixels

        public void setBrightenPixels​(boolean value)
        Sets whether to brighten the pixels.
        Parameters:
        value - true if to brighten
      • getBrightenPixels

        public boolean getBrightenPixels()
        Returns whether to brighten the pixels.
        Returns:
        true if to brighten
      • brightenPixelsTipText

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

        public void setGrayPercentage​(int value)
        Sets the gray percentage (0 lightest, 100 darkest).
        Parameters:
        value - the percentage (0-100)
      • getGrayPercentage

        public int getGrayPercentage()
        Returns the gray percentage (0 lightest, 100 darkest).
        Returns:
        the percentage (0-100)
      • grayPercentageTipText

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