Class WPainter.Image

java.lang.Object
eu.webtoolkit.jwt.WPainter.Image
Enclosing class:
WPainter

public static class WPainter.Image extends Object
An image that can be rendered on a WPainter.

The image is specified in terms of a URL, and the width and height.

See Also:
  • Constructor Details

    • Image

      public Image(String url, int width, int height)
      Creates an image.

      Create an image which is located at the uri, and which has dimensions width x height.

    • Image

      public Image(String url, String fileName)
      Creates an image.

      Create an image which is located at uri which is available on the local filesystem as file. The image dimensions are retrieved from the file.

  • Method Details

    • getUri

      public String getUri()
      Returns the url.
    • getWidth

      public int getWidth()
      Returns the image width.
    • getHeight

      public int getHeight()
      Returns the image height.