|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.gbase.client.Thumbnail
public final class Thumbnail
Class representing parsed information for one thumbnail: the size (in pixels)
and the Url for accessing the image. This class is mutable through its
setUrl(String)
and setSize(int, int)
methods.
Constructor Summary | |
---|---|
Thumbnail()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Thumbnail()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |