| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| pack-priv ImageRepresentation | |
| private Hashtable | |
| pack-priv ImageProducer | source
The object which is used to reconstruct the original image data as needed. |
| pack-priv InputStreamImageSource | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized void | |
| private synchronized void | |
| public int | |
| public void | flush()
Overrides java. Flushes all reconstructable resources being used by this Image object. |
| public BufferedImage | |
| public ColorModel | |
| public Graphics | getGraphics()
Implements abstract java. Creates a graphics context for drawing to an off-screen image. |
| public int | |
| public synchronized int | getHeight(ImageObserver iw)
Implements abstract java. Return the height of the original image source. |
| public synchronized ImageRepresentation | |
| public Object | getProperty(String name, ImageObserver observer)
Implements abstract java. Return a property of the image by name. |
| public ImageProducer | getSource()
Implements abstract java. Gets the object that produces the pixels for the image. |
| public int | |
| public synchronized int | getWidth(ImageObserver iw)
Implements abstract java. Return the width of the original image source. |
| public boolean | |
| pack-priv synchronized void | |
| protected ImageRepresentation | |
| public void | |
| private synchronized void | |
| public void | setAccelerationPriority(float priority)
Overrides java. Sets a hint for this image about how important acceleration is. |
| pack-priv void | |
| pack-priv void |
| availinfo | back to summary |
|---|---|
| private int availinfo | |
| height | back to summary |
|---|---|
| private int height | |
| imagerep | back to summary |
|---|---|
| pack-priv ImageRepresentation imagerep | |
| properties | back to summary |
|---|---|
| private Hashtable<?, ?> properties | |
| source | back to summary |
|---|---|
| pack-priv ImageProducer source The object which is used to reconstruct the original image data as needed. | |
| src | back to summary |
|---|---|
| pack-priv InputStreamImageSource src | |
| width | back to summary |
|---|---|
| private int width | |
| ToolkitImage | back to summary |
|---|---|
| protected ToolkitImage() | |
| ToolkitImage | back to summary |
|---|---|
| public ToolkitImage(ImageProducer is) Construct an image from an ImageProducer object. | |
| addInfo | back to summary |
|---|---|
| pack-priv synchronized void addInfo(int newinfo) | |
| addWatcher | back to summary |
|---|---|
| private synchronized void addWatcher(ImageObserver iw, boolean load) | |
| check | back to summary |
|---|---|
| public int check(ImageObserver iw) | |
| flush | back to summary |
|---|---|
| public void flush() Overrides java. Doc from java. Flushes all reconstructable resources being used by this Image object. This includes any pixel data that is being cached for rendering to the screen as well as any system resources that are being used to store data or pixels for the image if they can be recreated. The image is reset to a state similar to when it was first created so that if it is again rendered, the image data will have to be recreated or fetched again from its source. Examples of how this method affects specific types of Image object:
| |
| getBufferedImage | back to summary |
|---|---|
| public BufferedImage getBufferedImage() | |
| getColorModel | back to summary |
|---|---|
| public ColorModel getColorModel() | |
| getGraphics | back to summary |
|---|---|
| public Graphics getGraphics() Implements abstract java. Doc from java. Creates a graphics context for drawing to an off-screen image. This method can only be called for off-screen images. | |
| getHeight | back to summary |
|---|---|
| public int getHeight() Return the height of the original image source. If the height isn't known, then the image is reconstructed. | |
| getHeight | back to summary |
|---|---|
| public synchronized int getHeight(ImageObserver iw) Implements abstract java. Return the height of the original image source. If the height isn't known, then the ImageObserver object will be notified when the data is available. | |
| getImageRep | back to summary |
|---|---|
| public synchronized ImageRepresentation getImageRep() | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name, ImageObserver observer) Implements abstract java. Return a property of the image by name. Individual property names are defined by the various image formats. If a property is not defined for a particular image, then this method will return the UndefinedProperty object. If the properties for this image are not yet known, then this method will return null and the ImageObserver object will be notified later. The property name "comment" should be used to store an optional comment which can be presented to the user as a description of the image, its source, or its author. | |
| getSource | back to summary |
|---|---|
| public ImageProducer getSource() Implements abstract java. Doc from java. Gets the object that produces the pixels for the image. This method is called by the image filtering classes and by methods that perform image conversion and scaling. | |
| getWidth | back to summary |
|---|---|
| public int getWidth() Return the width of the original image source. If the width isn't known, then the image is reconstructed. | |
| getWidth | back to summary |
|---|---|
| public synchronized int getWidth(ImageObserver iw) Implements abstract java. Return the width of the original image source. If the width isn't known, then the ImageObserver object will be notified when the data is available. | |
| hasError | back to summary |
|---|---|
| public boolean hasError() | |
| infoDone | back to summary |
|---|---|
| pack-priv synchronized void infoDone(int status) | |
| makeImageRep | back to summary |
|---|---|
| protected ImageRepresentation makeImageRep() | |
| preload | back to summary |
|---|---|
| public void preload(ImageObserver iw) | |
| reconstruct | back to summary |
|---|---|
| private synchronized void reconstruct(int flags) | |
| setAccelerationPriority | back to summary |
|---|---|
| public void setAccelerationPriority(float priority) Overrides java. Doc from java. Sets a hint for this image about how important acceleration is. This priority hint is used to compare to the priorities of other Image objects when determining how to use scarce acceleration resources such as video memory. When and if it is possible to accelerate this Image, if there are not enough resources available to provide that acceleration but enough can be freed up by de-accelerating some other image of lower priority, then that other Image may be de-accelerated in deference to this one. Images that have the same priority take up resources on a first-come, first-served basis. | |
| setDimensions | back to summary |
|---|---|
| pack-priv void setDimensions(int w, int h) | |
| setProperties | back to summary |
|---|---|
| pack-priv void setProperties(Hashtable<?, ?> props) | |