public final class Thumbnail
extends java.lang.Object
setUrl(String)
and setSize(int, int)
methods.Constructor and Description |
---|
Thumbnail() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getHeight()
Returns the image height (pixels).
|
java.lang.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(java.lang.String url)
Sets the Url that should point to the thumbnail image.
|
java.lang.String |
toString() |
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public int getWidth()
isSizeSpecified()
to check
if this object contains valid size information.java.lang.IllegalStateException
- if the thumbnail size information is not setpublic int getHeight()
isSizeSpecified()
to check
if this object contains valid size information.java.lang.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.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object