com.aetrion.flickr.photos
Class Size

java.lang.Object
  extended by com.aetrion.flickr.photos.Size

public class Size
extends java.lang.Object

This class descibes a Size of a Photo.

Version:
$Id: Size.java,v 1.7 2009/07/23 20:41:03 x-mago Exp $
Author:
Anthony Eden

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
 boolean equals(java.lang.Object obj)
           
 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()
           
 int hashCode()
           
 void setHeight(int height)
           
 void setHeight(java.lang.String height)
           
 void setLabel(int label)
          Size of the Photo.
 void setLabel(java.lang.String label)
          Set the String-representation of size.
 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THUMB

public static final int THUMB
Thumbnail, 100 on longest side.

See Also:
getLabel(), setLabel(int), PhotosInterface.getImage(Photo, int), PhotosInterface.getImageAsStream(Photo, int), Constant Field Values

SQUARE

public static final int SQUARE
Small square 75x75.

See Also:
getLabel(), setLabel(int), PhotosInterface.getImage(Photo, int), PhotosInterface.getImageAsStream(Photo, int), Constant Field Values

SMALL

public static final int SMALL
Small, 240 on longest side.

See Also:
getLabel(), setLabel(int), PhotosInterface.getImage(Photo, int), PhotosInterface.getImageAsStream(Photo, int), Constant Field Values

MEDIUM

public static final int MEDIUM
Medium, 500 on longest side.

See Also:
getLabel(), setLabel(int), PhotosInterface.getImage(Photo, int), PhotosInterface.getImageAsStream(Photo, int), Constant Field Values

LARGE

public static final int LARGE
Large, 1024 on longest side (only exists for very large original images).

See Also:
getLabel(), setLabel(int), PhotosInterface.getImage(Photo, int), PhotosInterface.getImageAsStream(Photo, int), Constant Field Values

ORIGINAL

public static final int ORIGINAL
Original image, either a jpg, gif or png, depending on source format.
Only from pro-users original images are available!

See Also:
getLabel(), setLabel(int), PhotosInterface.getImage(Photo, int), PhotosInterface.getImageAsStream(Photo, int), Constant Field Values
Constructor Detail

Size

public Size()
Method Detail

getLabel

public int getLabel()
Size of the Photo.

Returns:
label
See Also:
THUMB, SQUARE, SMALL, MEDIUM, LARGE, ORIGINAL

setLabel

public void setLabel(java.lang.String label)
Set the String-representation of size. Like: Square, Thumbnail, Small, Medium, Large, Original.

Parameters:
label -

setLabel

public void setLabel(int label)
Size of the Photo.

Parameters:
label - The integer-representation of a size
See Also:
THUMB, SQUARE, SMALL, MEDIUM, LARGE, ORIGINAL

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

setWidth

public void setWidth(java.lang.String width)

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

setHeight

public void setHeight(java.lang.String height)

getSource

public java.lang.String getSource()
URL of the image.

Returns:
Image-URL

setSource

public void setSource(java.lang.String source)

getUrl

public java.lang.String getUrl()
URL of the photopage.

Returns:
Page-URL

setUrl

public void setUrl(java.lang.String url)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.