Package snap.gfx

Class ImageBox

All Implemented Interfaces:
Cloneable

public class ImageBox extends RoundRect
A class to manage an image rendered in a rectangular area.
  • Constructor Details

    • ImageBox

      public ImageBox(Image anImage)
      Constructor.
    • ImageBox

      public ImageBox(Image anImage, Rect theBounds)
      Constructor.
    • ImageBox

      public ImageBox(Image anImage, double aW, double aH)
      Constructor.
    • ImageBox

      public ImageBox(Image anImage, double aX, double aY, double aW, double aH)
      Constructor.
  • Method Details

    • getImage

      public Image getImage()
      Returns the image.
    • getImageBounds

      public Rect getImageBounds()
      Returns the image bounds.
    • setImageBounds

      public void setImageBounds(Rect aRect)
      Sets the image bounds.
    • setImageBounds

      public void setImageBounds(double aX, double aY, double aW, double aH)
      Sets the image bounds.
    • paintImageBox

      public void paintImageBox(Painter aPntr, double aX, double aY)
      Paints the image box at given point.