public final class Thumbnail extends Object
setUrl(String) and setSize(int, int) methods.| Constructor and Description |
|---|
Thumbnail() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getHeight()
Returns the image height (pixels).
|
String |
getUrl()
Returns the Url pointing to the thumbnail image.
|
int |
getWidth()
Returns the image width (pixels).
|
int |
hashCode() |
boolean |
isSizeSpecified()
Returns
true if the size was explicitly set, false
otherwise. |
void |
setSize(int width,
int height)
Sets the thumbnail size.
|
void |
setUrl(String url)
Sets the Url that should point to the thumbnail image.
|
String |
toString() |
public String getUrl()
public void setUrl(String url)
public int getWidth()
isSizeSpecified() to check
if this object contains valid size information.IllegalStateException - if the thumbnail size information is not setpublic int getHeight()
isSizeSpecified() to check
if this object contains valid size information.IllegalStateException - if the thumbnail size information is not setpublic void setSize(int width,
int height)
width - the width of the thumbnail, expressed in pixelsheight - the height of the thumbnail, expressed in pixelspublic boolean isSizeSpecified()
true if the size was explicitly set, false
otherwise.Copyright © 2012. All Rights Reserved.