| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv BufferedImage | |
| pack-priv WritableRaster | |
| protected ColorModel | |
| private boolean | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int | |
| pack-priv ToolkitImage | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv Rectangle | |
| pack-priv int | |
| private int | |
| pack-priv long | |
| pack-priv static boolean | |
| pack-priv InputStreamImageSource | |
| pack-priv int[] | |
| pack-priv int | |
| pack-priv ColorModel | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | ImageRepresentation(ToolkitImage im, ColorModel cmodel, boolean forceCMhint)
Create an ImageRepresentation for the given Image. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized void | |
| public int | |
| private synchronized void | |
| private void | |
| pack-priv void | |
| protected BufferedImage | createImage(ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied, Hashtable<?, ?> properties)
Returns the BufferedImage that will be used as the representation of the pixel data. |
| private synchronized void | |
| pack-priv synchronized void | |
| public boolean | |
| public boolean | drawToBufImage(Graphics g, ToolkitImage img, int x, int y, int w, int h, Color bg, ImageObserver iw)
|
| public boolean | drawToBufImage(Graphics g, ToolkitImage img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bg, ImageObserver iw)
|
| public boolean | |
| pack-priv BufferedImage | |
| pack-priv ColorModel | |
| public int | |
| public BufferedImage | |
| public int | |
| public void | imageComplete(int status)
Implements java. 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 occurred. |
| private static native void | |
| public synchronized void | |
| public boolean | |
| public synchronized void | |
| public void | |
| public void | setColorModel(ColorModel model)
Implements java. Sets the ColorModel object used for the majority of the pixels reported using the setPixels method calls. |
| private native boolean | setDiffICM(int x, int y, int w, int h, int[] lut, int transPix, int numLut, IndexColorModel icm, byte[] pix, int off, int scansize, ByteComponentRaster bct, int chanOff)
|
| public void | setDimensions(int w, int h)
Implements java. The dimensions of the source image are reported using the setDimensions method call. |
| public void | setHints(int h)
Implements java. Sets the hints that the ImageConsumer uses to process the pixels delivered by the ImageProducer. |
| private native boolean | setICMpixels(int x, int y, int w, int h, int[] lut, byte[] pix, int off, int scansize, IntegerComponentRaster ict)
|
| public void | setPixels(int x, int y, int w, int h, ColorModel model, byte[] pix, int off, int scansize)
Implements java. Delivers the pixels of the image with one or more calls to this method. |
| public void | setPixels(int x, int y, int w, int h, ColorModel model, int[] pix, int off, int scansize)
Implements java. The pixels of the image are delivered using one or more calls to the setPixels method. |
| public void | setProperties(Hashtable<?, ?> props)
Implements java. Sets the extensible list of properties associated with this image. |
| pack-priv void |
| availinfo | back to summary |
|---|---|
| pack-priv int availinfo | |
| bimage | back to summary |
|---|---|
| pack-priv BufferedImage bimage | |
| biRaster | back to summary |
|---|---|
| pack-priv WritableRaster biRaster | |
| cmodel | back to summary |
|---|---|
| protected ColorModel cmodel | |
| consuming | back to summary |
|---|---|
| private boolean consuming | |
| forceCMhint | back to summary |
|---|---|
| pack-priv boolean forceCMhint | |
| height | back to summary |
|---|---|
| pack-priv int height | |
| hints | back to summary |
|---|---|
| pack-priv int hints | |
| image | back to summary |
|---|---|
| pack-priv ToolkitImage image | |
| isDefaultBI | back to summary |
|---|---|
| pack-priv boolean isDefaultBI | |
| isSameCM | back to summary |
|---|---|
| pack-priv boolean isSameCM | |
| newbits | back to summary |
|---|---|
| pack-priv Rectangle newbits | |
| numSrcLUT | back to summary |
|---|---|
| pack-priv int numSrcLUT | |
| numWaiters | back to summary |
|---|---|
| private int numWaiters | |
| pData | back to summary |
|---|---|
| pack-priv long pData | |
| s_useNative | back to summary |
|---|---|
| pack-priv static boolean s_useNative | |
| src | back to summary |
|---|---|
| pack-priv InputStreamImageSource src | |
| srcLUT | back to summary |
|---|---|
| pack-priv int[] srcLUT | |
| srcLUTtransIndex | back to summary |
|---|---|
| pack-priv int srcLUTtransIndex | |
| srcModel | back to summary |
|---|---|
| pack-priv ColorModel srcModel | |
| sstride | back to summary |
|---|---|
| pack-priv int sstride | |
| tag | back to summary |
|---|---|
| pack-priv int tag | |
| width | back to summary |
|---|---|
| pack-priv int width | |
| ImageRepresentation | back to summary |
|---|---|
| public ImageRepresentation(ToolkitImage im, ColorModel cmodel, boolean forceCMhint) Create an ImageRepresentation for the given Image. The width and height are unknown at this point. The color model is a hint as to the color model to use when creating the buffered image. If null, the src color model will be used. | |
| abort | back to summary |
|---|---|
| pack-priv synchronized void abort() | |
| check | back to summary |
|---|---|
| public int check(ImageObserver iw) | |
| checkConsumption | back to summary |
|---|---|
| private synchronized void checkConsumption() | |
| convertToRGB | back to summary |
|---|---|
| private void convertToRGB() | |
| createBufferedImage | back to summary |
|---|---|
| pack-priv void createBufferedImage() | |
| createImage | back to summary |
|---|---|
| protected BufferedImage createImage(ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied, Hashtable<?, ?> properties) Returns the BufferedImage that will be used as the representation of the pixel data. Subclasses can override this method to return platform specific subclasses of BufferedImage that may or may not be accelerated. It is subclass' responsibility to propagate acceleration priority to the newly created image. | |
| decrementWaiters | back to summary |
|---|---|
| private synchronized void decrementWaiters() | |
| dispose | back to summary |
|---|---|
| pack-priv synchronized void dispose() | |
| drawToBufImage | back to summary |
|---|---|
| public boolean drawToBufImage(Graphics g, ToolkitImage img, int x, int y, Color bg, ImageObserver iw) | |
| drawToBufImage | back to summary |
|---|---|
| public boolean drawToBufImage(Graphics g, ToolkitImage img, int x, int y, int w, int h, Color bg, ImageObserver iw) | |
| drawToBufImage | back to summary |
|---|---|
| public boolean drawToBufImage(Graphics g, ToolkitImage img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bg, ImageObserver iw) | |
| drawToBufImage | back to summary |
|---|---|
| public boolean drawToBufImage(Graphics g, ToolkitImage img, AffineTransform xform, ImageObserver iw) | |
| getBufferedImage | back to summary |
|---|---|
| pack-priv BufferedImage getBufferedImage() | |
| getColorModel | back to summary |
|---|---|
| pack-priv ColorModel getColorModel() | |
| getHeight | back to summary |
|---|---|
| public int getHeight() | |
| getOpaqueRGBImage | back to summary |
|---|---|
| public BufferedImage getOpaqueRGBImage() | |
| getWidth | back to summary |
|---|---|
| public int getWidth() | |
| imageComplete | back to summary |
|---|---|
| public void imageComplete(int status) Implements java. Doc from java. 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 occurred. The ImageConsumer should remove itself from the list of consumers registered with the ImageProducer at this time, unless it is interested in successive frames. | |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() | |
| notifyWatcherListEmpty | back to summary |
|---|---|
| public synchronized void notifyWatcherListEmpty() Implements abstract sun. | |
| prepare | back to summary |
|---|---|
| public boolean prepare(ImageObserver iw) | |
| reconstruct | back to summary |
|---|---|
| public synchronized void reconstruct(int flags) | |
| setAccelerationPriority | back to summary |
|---|---|
| public void setAccelerationPriority(float priority) | |
| setColorModel | back to summary |
|---|---|
| public void setColorModel(ColorModel model) Implements java. Doc from java. Sets 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. | |
| setDiffICM | back to summary |
|---|---|
| private native boolean setDiffICM(int x, int y, int w, int h, int[] lut, int transPix, int numLut, IndexColorModel icm, byte[] pix, int off, int scansize, ByteComponentRaster bct, int chanOff) | |
| setDimensions | back to summary |
|---|---|
| public void setDimensions(int w, int h) Implements java. Doc from java. The dimensions of the source image are reported using the setDimensions method call. | |
| setHints | back to summary |
|---|---|
| public void setHints(int h) Implements java. Doc from java. Sets the hints that the ImageConsumer uses to process the pixels delivered by the ImageProducer. 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. | |
| setICMpixels | back to summary |
|---|---|
| private native boolean setICMpixels(int x, int y, int w, int h, int[] lut, byte[] pix, int off, int scansize, IntegerComponentRaster ict) | |
| setPixels | back to summary |
|---|---|
| public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pix, int off, int scansize) Implements java. Doc from java. Delivers the pixels of the image with one or more calls to this 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. | |
| setPixels | back to summary |
|---|---|
| public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pix, int off, int scansize) Implements java. Doc from java. 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. this method are all stored as ints. | |
| setProperties | back to summary |
|---|---|
| public void setProperties(Hashtable<?, ?> props) Implements java. Doc from java. Sets the extensible list of properties associated with this image. | |
| startProduction | back to summary |
|---|---|
| pack-priv void startProduction() | |