|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aetrion.flickr.photos.Size
public class Size
This class descibes a Size of a Photo.
Field Summary | |
---|---|
static int |
LARGE
Large, 1024 on longest side (only exists for very large original images). |
static int |
MEDIUM
Medium, 500 on longest side. |
static int |
ORIGINAL
Original image, either a jpg, gif or png, depending on source format. |
static int |
SMALL
Small, 240 on longest side. |
static int |
SQUARE
Small square 75x75. |
static int |
THUMB
Thumbnail, 100 on longest side. |
Constructor Summary | |
---|---|
Size()
|
Method Summary | |
---|---|
int |
getHeight()
|
int |
getLabel()
Size of the Photo. |
java.lang.String |
getSource()
URL of the image. |
java.lang.String |
getUrl()
URL of the photopage. |
int |
getWidth()
|
void |
setHeight(int height)
|
void |
setHeight(java.lang.String height)
|
void |
setLabel(int label)
Size of the Photo. |
void |
setLabel(java.lang.String label)
|
void |
setSource(java.lang.String source)
|
void |
setUrl(java.lang.String url)
|
void |
setWidth(int width)
|
void |
setWidth(java.lang.String width)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int THUMB
getLabel()
,
setLabel(int)
,
PhotosInterface.getImage(Photo, int)
,
PhotosInterface.getImageAsStream(Photo, int)
,
Constant Field Valuespublic static final int SQUARE
getLabel()
,
setLabel(int)
,
PhotosInterface.getImage(Photo, int)
,
PhotosInterface.getImageAsStream(Photo, int)
,
Constant Field Valuespublic static final int SMALL
getLabel()
,
setLabel(int)
,
PhotosInterface.getImage(Photo, int)
,
PhotosInterface.getImageAsStream(Photo, int)
,
Constant Field Valuespublic static final int MEDIUM
getLabel()
,
setLabel(int)
,
PhotosInterface.getImage(Photo, int)
,
PhotosInterface.getImageAsStream(Photo, int)
,
Constant Field Valuespublic static final int LARGE
getLabel()
,
setLabel(int)
,
PhotosInterface.getImage(Photo, int)
,
PhotosInterface.getImageAsStream(Photo, int)
,
Constant Field Valuespublic static final int ORIGINAL
getLabel()
,
setLabel(int)
,
PhotosInterface.getImage(Photo, int)
,
PhotosInterface.getImageAsStream(Photo, int)
,
Constant Field ValuesConstructor Detail |
---|
public Size()
Method Detail |
---|
public int getLabel()
THUMB
,
SQUARE
,
SMALL
,
MEDIUM
,
LARGE
,
ORIGINAL
public void setLabel(java.lang.String label)
public void setLabel(int label)
label
- The integer-representation of a sizeTHUMB
,
SQUARE
,
SMALL
,
MEDIUM
,
LARGE
,
ORIGINAL
public int getWidth()
public void setWidth(int width)
public void setWidth(java.lang.String width)
public int getHeight()
public void setHeight(int height)
public void setHeight(java.lang.String height)
public java.lang.String getSource()
public void setSource(java.lang.String source)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |