org.jickr
Enum Photo.Size

java.lang.Object
  extended by java.lang.Enum<Photo.Size>
      extended by org.jickr.Photo.Size
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Photo.Size>
Enclosing class:
Photo

public static enum Photo.Size
extends java.lang.Enum<Photo.Size>

List of possibly valid Photo sizes. Actual sizes available may be smaller.


Enum Constant Summary
LARGE
          Large photo - typically 1024x683.
MEDIUM
          Medium photo - 500x333 (Landscape).
ORIGINAL
          Original photo, same as uploaded.
SMALL
          Small photo - 240x160 (Landscape).
SQUARE
          Square small photo - Typically 75x75 square.
THUMB
          Thumbnail size photo - Typically 100x67 (Landscape).
 
Method Summary
static Photo.Size valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Photo.Size[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SQUARE

public static final Photo.Size SQUARE
Square small photo - Typically 75x75 square. JPG format.


THUMB

public static final Photo.Size THUMB
Thumbnail size photo - Typically 100x67 (Landscape). JPG format.


SMALL

public static final Photo.Size SMALL
Small photo - 240x160 (Landscape). JPG format.


MEDIUM

public static final Photo.Size MEDIUM
Medium photo - 500x333 (Landscape). Typically the default sized photo. JPG format.


LARGE

public static final Photo.Size LARGE
Large photo - typically 1024x683. JPG format - largest guarenteed JPG.


ORIGINAL

public static final Photo.Size ORIGINAL
Original photo, same as uploaded. In the original size, in the orginal format (GIF, PNG, JPG, TIF).

Method Detail

values

public static final Photo.Size[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Photo.Size c : Photo.Size.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Photo.Size valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name