KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > media > engine > image > ImagePluginSupport


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.media.engine.image;
8
9 import java.awt.image.BufferedImage JavaDoc;
10
11 import org.jboss.media.engine.MediaPlugin;
12
13 /**
14  * @version <tt>$Revision: 1.1 $</tt>
15  * @author <a HREF="mailto:spyridon_samothrakis@yahoo.com">Spyridon Samothrakis</a>
16  */

17 public abstract class ImagePluginSupport extends MediaPlugin
18 {
19
20    /* (non-Javadoc)
21     * @see org.jboss.media.engine.MediaPlugin#process(java.lang.Object)
22     */

23    public int process(Object JavaDoc output)
24    {
25       // genericStuff
26
// if(!(output instanceof BufferedImageHolder)) return 0;
27
//BufferedImageHolder buff = (BufferedImageHolder) output;
28
processImage((BufferedImage JavaDoc)output);
29       return 1;
30    }
31
32    /**
33     * @param buff
34     */

35    public abstract void processImage(BufferedImage JavaDoc buff);
36
37
38 }
39
Popular Tags