Java Doc for ImageConsumer.java in  » 6.0-JDK-Modules » j2me » java » awt » image » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » java.awt.image 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.image.ImageConsumer

All known Subclasses:   sun.awt.image.ImageRepresentation,  java.awt.image.PixelGrabber,  java.awt.QtImage,  java.awt.MWImage,  java.awt.image.ImageFilter,  java.awt.X11Image,
ImageConsumer
public interface ImageConsumer (Code)
The interface for objects expressing interest in image data through the ImageProducer interfaces. When a consumer is added to an image producer, the producer delivers all of the data about the image using the method calls defined in this interface.
See Also:   ImageProducer
version:
   1.17 08/19/02
author:
   Jim Graham


Field Summary
 intCOMPLETESCANLINES
     The pixels will be delivered in (multiples of) complete scanlines at a time.
 intIMAGEABORTED
     The image creation process was deliberately aborted.
 intIMAGEERROR
     An error was encountered while producing the image.
 intRANDOMPIXELORDER
     The pixels will be delivered in a random order.
 intSINGLEFRAME
     The image contain a single static image.
 intSINGLEFRAMEDONE
     One frame of the image is complete but there are more frames to be delivered.
 intSINGLEPASS
     The pixels will be delivered in a single pass.
 intSTATICIMAGEDONE
     The image is complete and there are no more pixels or frames to be delivered.
 intTOPDOWNLEFTRIGHT
     The pixels will be delivered in top-down, left-to-right order.


Method Summary
 voidimageComplete(int status)
     The imageComplete method is called when the ImageProducer is finished delivering all of the pixels that the source image contains, or when a single frame of a multi-frame animation has been completed, or when an error in loading or producing the image has occured.
 voidsetColorModel(ColorModel model)
     The ColorModel object used for the majority of the pixels reported using the setPixels method calls.
 voidsetDimensions(int width, int height)
     The dimensions of the source image are reported using the setDimensions method call.
 voidsetHints(int hintflags)
     The ImageProducer can deliver the pixels in any order, but the ImageConsumer may be able to scale or convert the pixels to the destination ColorModel more efficiently or with higher quality if it knows some information about how the pixels will be delivered up front.
 voidsetPixels(int x, int y, int w, int h, ColorModel model, byte pixels, int off, int scansize)
     The pixels of the image are delivered using one or more calls to the setPixels method.
 voidsetPixels(int x, int y, int w, int h, ColorModel model, int pixels, int off, int scansize)
     The pixels of the image are delivered using one or more calls to the setPixels method.
 voidsetProperties(Hashtable props)
     Sets the extensible list of properties associated with this image.

Field Detail
COMPLETESCANLINES
int COMPLETESCANLINES(Code)
The pixels will be delivered in (multiples of) complete scanlines at a time.
See Also:   ImageConsumer.setHints



IMAGEABORTED
int IMAGEABORTED(Code)
The image creation process was deliberately aborted.
See Also:   ImageConsumer.imageComplete



IMAGEERROR
int IMAGEERROR(Code)
An error was encountered while producing the image.
See Also:   ImageConsumer.imageComplete



RANDOMPIXELORDER
int RANDOMPIXELORDER(Code)
The pixels will be delivered in a random order. This tells the ImageConsumer not to use any optimizations that depend on the order of pixel delivery, which should be the default assumption in the absence of any call to the setHints method.
See Also:   ImageConsumer.setHints



SINGLEFRAME
int SINGLEFRAME(Code)
The image contain a single static image. The pixels will be defined in calls to the setPixels methods and then the imageComplete method will be called with the STATICIMAGEDONE flag after which no more image data will be delivered. An example of an image type which would not meet these criteria would be the output of a video feed, or the representation of a 3D rendering being manipulated by the user. The end of each frame in those types of images will be indicated by calling imageComplete with the SINGLEFRAMEDONE flag.
See Also:   ImageConsumer.setHints
See Also:   ImageConsumer.imageComplete



SINGLEFRAMEDONE
int SINGLEFRAMEDONE(Code)
One frame of the image is complete but there are more frames to be delivered.
See Also:   ImageConsumer.imageComplete



SINGLEPASS
int SINGLEPASS(Code)
The pixels will be delivered in a single pass. Each pixel will appear in only one call to any of the setPixels methods. An example of an image format which does not meet this criterion is a progressive JPEG image which defines pixels in multiple passes, each more refined than the previous.
See Also:   ImageConsumer.setHints



STATICIMAGEDONE
int STATICIMAGEDONE(Code)
The image is complete and there are no more pixels or frames to be delivered.
See Also:   ImageConsumer.imageComplete



TOPDOWNLEFTRIGHT
int TOPDOWNLEFTRIGHT(Code)
The pixels will be delivered in top-down, left-to-right order.
See Also:   ImageConsumer.setHints





Method Detail
imageComplete
void imageComplete(int status)(Code)
The imageComplete method is called when the ImageProducer is finished delivering all of the pixels that the source image contains, or when a single frame of a multi-frame animation has been completed, or when an error in loading or producing the image has occured. The ImageConsumer should remove itself from the list of consumers registered with the ImageProducer at this time, unless it is interested in successive frames.
See Also:   ImageProducer.removeConsumer



setColorModel
void setColorModel(ColorModel model)(Code)
The ColorModel object used for the majority of the pixels reported using the setPixels method calls. Note that each set of pixels delivered using setPixels contains its own ColorModel object, so no assumption should be made that this model will be the only one used in delivering pixel values. A notable case where multiple ColorModel objects may be seen is a filtered image when for each set of pixels that it filters, the filter determines whether the pixels can be sent on untouched, using the original ColorModel, or whether the pixels should be modified (filtered) and passed on using a ColorModel more convenient for the filtering process.
See Also:   ColorModel



setDimensions
void setDimensions(int width, int height)(Code)
The dimensions of the source image are reported using the setDimensions method call.



setHints
void setHints(int hintflags)(Code)
The ImageProducer can deliver the pixels in any order, but the ImageConsumer may be able to scale or convert the pixels to the destination ColorModel more efficiently or with higher quality if it knows some information about how the pixels will be delivered up front. The setHints method should be called before any calls to any of the setPixels methods with a bit mask of hints about the manner in which the pixels will be delivered. If the ImageProducer does not follow the guidelines for the indicated hint, the results are undefined.



setPixels
void setPixels(int x, int y, int w, int h, ColorModel model, byte pixels, int off, int scansize)(Code)
The pixels of the image are delivered using one or more calls to the setPixels method. Each call specifies the location and size of the rectangle of source pixels that are contained in the array of pixels. The specified ColorModel object should be used to convert the pixels into their corresponding color and alpha components. Pixel (m,n) is stored in the pixels array at index (n * scansize + m + off). The pixels delivered using this method are all stored as bytes.
See Also:   ColorModel



setPixels
void setPixels(int x, int y, int w, int h, ColorModel model, int pixels, int off, int scansize)(Code)
The pixels of the image are delivered using one or more calls to the setPixels method. Each call specifies the location and size of the rectangle of source pixels that are contained in the array of pixels. The specified ColorModel object should be used to convert the pixels into their corresponding color and alpha components. Pixel (m,n) is stored in the pixels array at index (n * scansize + m + off). The pixels delivered using this method are all stored as ints.
See Also:   ColorModel



setProperties
void setProperties(Hashtable props)(Code)
Sets the extensible list of properties associated with this image.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.