Package eu.webtoolkit.jwt
Class WPainter.Image
java.lang.Object
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.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Image
public Image(java.lang.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(java.lang.String url, java.lang.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 java.lang.String getUri()Returns the url. -
getWidth
public int getWidth()Returns the image width. -
getHeight
public int getHeight()Returns the image height.
-