ImageConsumer.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_IMAGE_IMAGECONSUMER_H
00002 #define JAVA_AWT_IMAGE_IMAGECONSUMER_H 1
00003 
00004 #ifndef JAVA_UTIL_MAP_H
00005 #include <java_util/Map.h>
00006 #endif /* JAVA_UTIL_MAP_H */
00007 #ifndef JAVA_AWT_IMAGE_COLORMODEL_H
00008 #include <java_awt_image/ColorModel.h>
00009 #endif /* JAVA_AWT_IMAGE_COLORMODEL_H */
00010 #ifndef JAVA_AWT_SPEC
00011 #include <java_awt/Spec.h>
00012 #endif /* JAVA_AWT_SPEC */
00013 
00014 namespace java {
00015   namespace awt {
00016     namespace image {
00017 
00018       using namespace java::util;
00019 
00031       class JAVA_AWT_SPEC ImageConsumer : virtual public Interface {
00032 
00033       public:
00034 
00035         enum HINT_FLAGS {
00036 
00044           RANDOMPIXELORDER = 1,
00045 
00050           TOPDOWNLEFTRIGHT = 2,
00051 
00057           COMPLETESCANLINES = 4,
00058 
00067           SINGLEPASS = 8,
00068 
00081           SINGLEFRAME = 16,
00082 
00083         };
00084 
00085         enum COMPLETE_STATUS {
00086 
00091           IMAGEERROR = 1,
00092 
00098           SINGLEFRAMEDONE,
00099 
00105           STATICIMAGEDONE,
00106 
00111           IMAGEABORTED,
00112 
00113         };
00114 
00121         virtual void setDimensions(jint width, jint height) = 0;
00122 
00128         virtual void setProperties(const Ref<Map>& props) = 0;
00129 
00146         virtual void setColorModel(const Ref<ColorModel>& model) = 0;
00147 
00163         virtual void setHints(jint hintflags) = 0;
00164 
00185         virtual void setPixels
00186           (jint x, jint y, jint w, jint h,
00187            const Ref<ColorModel>& model, const Array<jbyte>& pixels, jint off, jint scansize) = 0;
00188 
00210         virtual void setPixels
00211           (jint x, jint y, jint w, jint h,
00212            const Ref<ColorModel>& model, const Array<jint>& pixels, jint off, jint scansize) = 0;
00213 
00225         virtual void imageComplete(jint status) = 0;
00226 
00227       private:
00228 
00229         REGISTER_MEMBERS;
00230 
00231       };
00232 
00233     } // namespace image
00234   } // namespace awt
00235 } // namespace java
00236 
00237 #endif /* JAVA_AWT_IMAGE_IMAGECONSU
00238 MER_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3