模块 java.desktop

接口 ImageObserver

所有已知的实现类:
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 , JLayer , 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
一个异步更新接口,用于在构建 Image 时接收有关 Image 信息的通知。
  • 字段摘要

    字段
    修饰符和类型
    Field
    描述
    static final int
    imageUpdate 的 infoflags 参数中的这个标志表示异步跟踪的图像在生产完成之前被中止。
    static final int
    imageUpdate 的 infoflags 参数中的这个标志表示之前绘制的静态图像现在已经完成并且可以以其最终形式再次绘制。
    static final int
    imageUpdate 的 infoflags 参数中的这个标志表示异步跟踪的图像遇到了错误。
    static final int
    imageUpdate 的 infoflags 参数中的这个标志表示以前绘制的多帧图像的另一个完整帧现在可以再次绘制。
    static final int
    imageUpdate 的 infoflags 参数中的此标志表示基础图像的高度现在可用,并且可以从 imageUpdate 回调方法的高度参数中获取。
    static final int
    imageUpdate 的 infoflags 参数中的这个标志表示图像的属性现在可用。
    static final int
    imageUpdate 的 infoflags 参数中的此标志表示绘制图像缩放变化所需的更多像素可用。
    static final int
    imageUpdate 的 infoflags 参数中的此标志表示基础图像的宽度现在可用,并且可以从 imageUpdate 回调方法的宽度参数中获取。
  • 方法总结

    修饰符和类型
    方法
    描述
    boolean
    imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
    当有关先前使用异步接口请求的图像的信息可用时,将调用此方法。