Interface ImagePanel.ImageValue

All Superinterfaces:
Observable<BufferedImage>, Observer<BufferedImage>, Value<BufferedImage>
Enclosing class:
ImagePanel

public static interface ImagePanel.ImageValue extends Value<BufferedImage>
Controls the image displayed in an ImagePanel
  • Method Details

    • set

      void set(byte[] imageBytes)
      Parameters:
      imageBytes - the image bytes
    • set

      void set(String imagePath) throws IOException
      Parameters:
      imagePath - the path from which to load the image
      Throws:
      IOException - in case image loading failed
    • set

      void set(BufferedImage image, String format) throws IOException
      Parameters:
      image - the image
      format - the format
      Throws:
      IOException - in case of an exception
      IllegalArgumentException - in case no writer was found for the given format