org.jickr
Class Photo.PhotoSize

java.lang.Object
  extended by org.jickr.Photo.PhotoSize
Enclosing class:
Photo

public class Photo.PhotoSize
extends java.lang.Object

PhotoSize encapsulates information for a certain size of a photo. It's intended that many of these will be associated with a single instance of Photo.

See Also:
Photo

Method Summary
 int getHeight()
          Gets the height of the image associated with the PhotoSize.
 java.net.URL getPage()
          Gets the URL of the Page for this PhotoSize at Flickr.
 Photo.Size getSize()
          Gets the size of the Photo.
 java.net.URL getStaticURL()
          Gets the static URL of the image for this PhotoSize.
 int getWidth()
          Gets the width of the image associated with the PhotoSize.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSize

public Photo.Size getSize()
Gets the size of the Photo.

Returns:
The size of the Photo in this object.

getWidth

public int getWidth()
Gets the width of the image associated with the PhotoSize.

Returns:
The width in pixels.

getHeight

public int getHeight()
Gets the height of the image associated with the PhotoSize.

Returns:
The height in pixels.

getStaticURL

public java.net.URL getStaticURL()
Gets the static URL of the image for this PhotoSize.

Returns:
The URL of the static reference for the image of this PhotoSize.

getPage

public java.net.URL getPage()
Gets the URL of the Page for this PhotoSize at Flickr. This is the page that you would want to call up in a browser, for instance, or send in an email. Note this is different than the page returned by Photo.getPhotoPage()

Returns:
The URL of the page containing the Photo of this size.
See Also:
Photo.getPhotoPage()