Interface ImageListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  ImageListener.Listeners
      Image listener list.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void baselineChanged​(Image image, int previousBaseline)
      Called when an image's baseline has changed.
      void regionUpdated​(Image image, int x, int y, int width, int height)
      Called when a region within an image needs to be repainted.
      void sizeChanged​(Image image, int previousWidth, int previousHeight)
      Called when an image's size has changed.
    • Method Detail

      • sizeChanged

        void sizeChanged​(Image image,
                         int previousWidth,
                         int previousHeight)
        Called when an image's size has changed.
        Parameters:
        image - The image whose size has changed.
        previousWidth - The previous width of the image.
        previousHeight - The previous height of the image.
      • baselineChanged

        void baselineChanged​(Image image,
                             int previousBaseline)
        Called when an image's baseline has changed.
        Parameters:
        image - The image that has changed.
        previousBaseline - The previous baseline value of the image.
      • regionUpdated

        void regionUpdated​(Image image,
                           int x,
                           int y,
                           int width,
                           int height)
        Called when a region within an image needs to be repainted.
        Parameters:
        image - The image that needs repainting.
        x - The upper left X-coordinate for the repaint.
        y - The upper left Y-coordinate for the repaint.
        width - The width of the image to repaint.
        height - The height of the area to repaint.