|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<AvatarManager.ImageSize> com.atlassian.jira.avatar.AvatarManager.ImageSize
public static enum AvatarManager.ImageSize
Represents the different sizes of avatars that can be requested!
Enum Constant Summary | |
---|---|
LARGE
|
|
MEDIUM
|
|
SMALL
|
Method Summary | |
---|---|
static AvatarManager.ImageSize |
fromString(String text)
Returns an avatar image size matching the text provided. |
String |
getFilenameFlag()
|
Selection |
getOriginSelection()
|
int |
getPixels()
|
static AvatarManager.ImageSize |
largest()
In order to cater for future addition of larger sizes this method finds the largest image size. |
static AvatarManager.ImageSize |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AvatarManager.ImageSize[] |
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 |
---|
public static final AvatarManager.ImageSize LARGE
public static final AvatarManager.ImageSize MEDIUM
public static final AvatarManager.ImageSize SMALL
Method Detail |
---|
public static AvatarManager.ImageSize[] values()
for (AvatarManager.ImageSize c : AvatarManager.ImageSize.values()) System.out.println(c);
public static AvatarManager.ImageSize valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getPixels()
public String getFilenameFlag()
public Selection getOriginSelection()
public static AvatarManager.ImageSize largest()
public static AvatarManager.ImageSize fromString(String text)
text
- the images size. Will match "s", "small", "SMALL"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |