View Javadoc

1   package org.jmage.filter;
2   
3   import org.apache.log4j.Logger;
4   
5   import javax.media.jai.PlanarImage;
6   import java.util.Properties;
7   
8   /***
9    * No Operation Filter for debugging purposes.
10   */
11  public class NoOpFilter extends ConfigurableImageFilter {
12      protected static Logger log = Logger.getLogger(NoOpFilter.class.getName());
13  
14      /***
15       * Initializes the ImageFilter with properties
16       *
17       * @param filterProperties
18       * @throws FilterException if the filter can't handle the properties.
19       */
20      public void initialize(Properties filterProperties) throws FilterException {
21          if (log.isDebugEnabled()) log.debug(" initialized NoOpFilter");
22      }
23  
24      /***
25       * Returns the image.
26       *
27       * @param image the image
28       * @return the filtered image
29       * @throws FilterException if an error occurs during filtering
30       */
31      public PlanarImage filter(PlanarImage image) throws FilterException {
32          if (log.isDebugEnabled()) log.debug(" passed image through NoOpFilter");
33          return image;
34      }
35  }