java.awt.image
Interface ImageObserver

All Known Implementing Classes:
AbstractButton, AbstractColorChooserPanel, Applet, BasicArrowButton, BasicComboBoxRenderer, BasicComboBoxRenderer.UIResource, BasicComboPopup, BasicInternalFrameTitlePane, BasicInternalFrameTitlePane.SystemMenuBar, BasicSplitPaneDivider, BasicToolBarUI.DragWindow, Box, Box.Filler, Button, Canvas, CellRendererPane, Checkbox, Choice, Component, Container, DefaultListCellRenderer, DefaultListCellRenderer.UIResource, DefaultTableCellRenderer, DefaultTableCellRenderer.UIResource, DefaultTreeCellEditor.DefaultTextField, DefaultTreeCellEditor.EditorContainer, DefaultTreeCellRenderer, Dialog, FileDialog, Frame, JApplet, JButton, JCheckBox, JCheckBoxMenuItem, JColorChooser, JComboBox, JComponent, JDesktopPane, JDialog, JEditorPane, JFileChooser, JFormattedTextField, JFrame, JInternalFrame, JInternalFrame.JDesktopIcon, JLabel, JLayeredPane, JList, JMenu, JMenuBar, JMenuItem, JOptionPane, JPanel, JPasswordField, JPopupMenu, JPopupMenu.Separator, JProgressBar, JRadioButton, JRadioButtonMenuItem, JRootPane, JScrollBar, JScrollPane, JScrollPane.ScrollBar, JSeparator, JSlider, JSpinner, JSpinner.DateEditor, JSpinner.DefaultEditor, JSpinner.ListEditor, JSpinner.NumberEditor, JSplitPane, JTabbedPane, JTable, JTableHeader, JTextArea, JTextComponent, JTextField, JTextPane, JToggleButton, JToolBar, JToolBar.Separator, JToolTip, JTree, JViewport, JWindow, Label, List, MetalComboBoxButton, MetalComboBoxUI.MetalComboPopup, MetalFileChooserUI.FileRenderer, MetalFileChooserUI.FilterComboBoxRenderer, MetalInternalFrameTitlePane, MetalScrollButton, Panel, Scrollbar, ScrollPane, TextArea, TextComponent, TextField, Window

public interface ImageObserver

An object implementing the ImageObserver interface can receive updates on image construction from an ImageProducer asynchronously.

See Also:
ImageProducer

Field Summary
static int ABORT
          Production of the image was aborted.
static int ALLBITS
          An image with a single frame, a static image, is complete.
static int ERROR
          An error was encountered while producing the image.
static int FRAMEBITS
          All the pixels needed to draw a complete frame of a multi-frame image are available.
static int HEIGHT
          The height of the image has been provided as the height argument to imageUpdate.
static int PROPERTIES
          The properties of the image have been provided.
static int SOMEBITS
          More pixels are now available for drawing a scaled variation of the image.
static int WIDTH
          The width of the image has been provided as the width argument to imageUpdate.
 
Method Summary
 boolean imageUpdate(Image image, int flags, int x, int y, int width, int height)
          This is a callback method for an asynchronous image producer to provide updates on the production of the image as it happens.
 

Field Detail

WIDTH

static final int WIDTH
The width of the image has been provided as the width argument to imageUpdate.

See Also:
imageUpdate(java.awt.Image, int, int, int, int, int), Constant Field Values

HEIGHT

static final int HEIGHT
The height of the image has been provided as the height argument to imageUpdate.

See Also:
imageUpdate(java.awt.Image, int, int, int, int, int), Constant Field Values

PROPERTIES

static final int PROPERTIES
The properties of the image have been provided.

See Also:
imageUpdate(java.awt.Image, int, int, int, int, int), (java.lang.String, java.awt.image.ImageObserver), Constant Field Values

SOMEBITS

static final int SOMEBITS
More pixels are now available for drawing a scaled variation of the image.

See Also:
imageUpdate(java.awt.Image, int, int, int, int, int), Constant Field Values

FRAMEBITS

static final int FRAMEBITS
All the pixels needed to draw a complete frame of a multi-frame image are available.

See Also:
imageUpdate(java.awt.Image, int, int, int, int, int), Constant Field Values

ALLBITS

static final int ALLBITS
An image with a single frame, a static image, is complete.

See Also:
imageUpdate(java.awt.Image, int, int, int, int, int), Constant Field Values

ERROR

static final int ERROR
An error was encountered while producing the image.

See Also:
imageUpdate(java.awt.Image, int, int, int, int, int), Constant Field Values

ABORT

static final int ABORT
Production of the image was aborted.

See Also:
imageUpdate(java.awt.Image, int, int, int, int, int), Constant Field Values
Method Detail

imageUpdate

boolean imageUpdate(Image image,
                    int flags,
                    int x,
                    int y,
                    int width,
                    int height)
This is a callback method for an asynchronous image producer to provide updates on the production of the image as it happens.

Parameters:
image - the image the update refers to
flags - a bit mask indicating what is provided with this update
x - the x coordinate of the image
y - the y coordinate of the image
width - the width of the image
height - the height of the image
See Also:
Image