Class ImagePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ImagePanel extends JPanel implements ImageObserver, Serializable
A JPanel subclass that draws an image in its background
Version:
%version: 2 % %date_modified: Mon Sep 27 14:09:10 1999 %
Author:
larrylf
See Also:
  • Field Details

  • Constructor Details

    • ImagePanel

      public ImagePanel()
    • ImagePanel

      public ImagePanel(ImageIcon img, int mode)
  • Method Details

    • setBackgroundImageMode

      public void setBackgroundImageMode(int drawMode)
    • getBackgroundImageMode

      public int getBackgroundImageMode()
    • setBackgroundImageIcon

      public void setBackgroundImageIcon(ImageIcon img)
    • getBackgroundImageIcon

      public ImageIcon getBackgroundImageIcon()
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • imageUpdate

      public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
      Specified by:
      imageUpdate in interface ImageObserver
      Overrides:
      imageUpdate in class Component