eu.webtoolkit.jwt
Class WPainter.Image

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

public static class WPainter.Image
extends java.lang.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:
WPainter.drawImage(WPointF point, WPainter.Image image)

Constructor Summary
WPainter.Image(java.lang.String uri, int width, int height)
          Creates an image.
 
Method Summary
 int getHeight()
          Returns the image height.
 java.lang.String getUri()
          Returns the uri.
 int getWidth()
          Returns the image width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WPainter.Image

public WPainter.Image(java.lang.String uri,
                      int width,
                      int height)
Creates an image.

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

Method Detail

getUri

public java.lang.String getUri()
Returns the uri.


getWidth

public int getWidth()
Returns the image width.


getHeight

public int getHeight()
Returns the image height.