|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<MediaSize> magoffin.matt.ma2.MediaSize
public enum MediaSize
Size constants for media items.
This enumeration defines a finite set of sizes that media items can
be requested as. This is to limit the number of sizes the application
needs to generate, and possibly cache. Each enumeration defines a
default Geometry
that represents the width and height of that
size, in pixels, but these defaults may be overridden by the application
if desired.
Enum Constant Summary | |
---|---|
BIG
Big size, eg 800x600. |
|
BIGGER
Bigger size, eg 1024x768. |
|
BIGGEST
Biggest size, eg 1600x1200. |
|
NORMAL
Normal size, eg 640x480. |
|
SMALL
Small size, eg 480x320. |
|
THUMB_BIG
Normal thumbnail size. |
|
THUMB_BIGGER
Big thumbnail size. |
|
THUMB_NORMAL
Small thumbnail size. |
|
THUMB_SMALL
Tiny thumbnail size. |
|
TINY
Tiny size, eg 320x240. |
Method Summary | |
---|---|
Geometry |
getGeometry()
Get a default Geometry object for this size. |
static MediaSize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MediaSize[] |
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 |
---|
public static final MediaSize BIGGEST
public static final MediaSize BIGGER
public static final MediaSize BIG
public static final MediaSize NORMAL
public static final MediaSize SMALL
public static final MediaSize TINY
public static final MediaSize THUMB_BIGGER
public static final MediaSize THUMB_BIG
public static final MediaSize THUMB_NORMAL
public static final MediaSize THUMB_SMALL
Method Detail |
---|
public static final MediaSize[] values()
for(MediaSize c : MediaSize.values()) System.out.println(c);
public static MediaSize valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic Geometry getGeometry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |