com.dropbox.client2
Enum DropboxAPI.ThumbSize

java.lang.Object
  extended by java.lang.Enum<DropboxAPI.ThumbSize>
      extended by com.dropbox.client2.DropboxAPI.ThumbSize
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DropboxAPI.ThumbSize>
Enclosing class:
DropboxAPI<SESS_T extends Session>

public static enum DropboxAPI.ThumbSize
extends java.lang.Enum<DropboxAPI.ThumbSize>

Represents the size of thumbnails that the API can return.


Enum Constant Summary
BESTFIT_1024x768
          Fits within 1024x768 or 768x1024
BESTFIT_320x240
          Will either fit within a 320 x 240 rectangle or a 240 x 320 rectangle, whichever results in a larger image.
BESTFIT_480x320
          Fits within 480x320 or 320x480
BESTFIT_640x480
          Fits within 640x480 or 480x640
BESTFIT_960x640
          Fits within 960x640 or 640x960
ICON_128x128
          128 width or 128 height, with original aspect ratio.
ICON_256x256
          256 width or 256 height, with original aspect ratio.
ICON_32x32
          Will have at most a 32 width or 32 height, maintaining its original aspect ratio.
ICON_64x64
          64 width or 64 height, with original aspect ratio.
 
Method Summary
 java.lang.String toAPISize()
           
static DropboxAPI.ThumbSize valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DropboxAPI.ThumbSize[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ICON_32x32

public static final DropboxAPI.ThumbSize ICON_32x32
Will have at most a 32 width or 32 height, maintaining its original aspect ratio.


ICON_64x64

public static final DropboxAPI.ThumbSize ICON_64x64
64 width or 64 height, with original aspect ratio.


ICON_128x128

public static final DropboxAPI.ThumbSize ICON_128x128
128 width or 128 height, with original aspect ratio.


ICON_256x256

public static final DropboxAPI.ThumbSize ICON_256x256
256 width or 256 height, with original aspect ratio.


BESTFIT_320x240

public static final DropboxAPI.ThumbSize BESTFIT_320x240
Will either fit within a 320 x 240 rectangle or a 240 x 320 rectangle, whichever results in a larger image.


BESTFIT_480x320

public static final DropboxAPI.ThumbSize BESTFIT_480x320
Fits within 480x320 or 320x480


BESTFIT_640x480

public static final DropboxAPI.ThumbSize BESTFIT_640x480
Fits within 640x480 or 480x640


BESTFIT_960x640

public static final DropboxAPI.ThumbSize BESTFIT_960x640
Fits within 960x640 or 640x960


BESTFIT_1024x768

public static final DropboxAPI.ThumbSize BESTFIT_1024x768
Fits within 1024x768 or 768x1024

Method Detail

values

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

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

valueOf

public static DropboxAPI.ThumbSize 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
java.lang.NullPointerException - if the argument is null

toAPISize

public java.lang.String toAPISize()