|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Avatar.Size>
com.atlassian.jira.avatar.Avatar.Size
public static enum Avatar.Size
The standard sizes for avatars.
Enum Constant Summary | |
---|---|
LARGE
A large avatar (48x48 pixels). |
|
MEDIUM
A medium avatar (32x32 pixels). |
|
NORMAL
A small avatar (24x24 pixels). |
|
RETINA_XXLARGE
|
|
RETINA_XXXLARGE
|
|
SMALL
An extra-small avatar (16x16 pixels). |
|
XLARGE
|
|
XXLARGE
|
|
XXXLARGE
|
Method Summary | |
---|---|
static Avatar.Size |
biggerThan(int pixelValue)
|
static Avatar.Size |
defaultSize()
|
String |
getParam()
|
int |
getPixels()
|
static Avatar.Size |
largest()
In order to cater for future addition of larger sizes this method finds the largest image size. |
static Avatar.Size |
smallerThan(int pixelValue)
|
String |
toString()
|
static Avatar.Size |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Avatar.Size[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Avatar.Size NORMAL
public static final Avatar.Size SMALL
public static final Avatar.Size MEDIUM
public static final Avatar.Size LARGE
public static final Avatar.Size XLARGE
public static final Avatar.Size XXLARGE
public static final Avatar.Size XXXLARGE
public static final Avatar.Size RETINA_XXLARGE
public static final Avatar.Size RETINA_XXXLARGE
Method Detail |
---|
public static Avatar.Size[] values()
for (Avatar.Size c : Avatar.Size.values()) System.out.println(c);
public static Avatar.Size 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 static Avatar.Size largest()
com.atlassian.jira.avatar.AvatarManager.ImageSize#largest()}, they need to be kept in sync.
public static Avatar.Size defaultSize()
com.atlassian.jira.avatar.AvatarManager.ImageSize#defaultSize()}, they need to be kept in sync.
public static Avatar.Size biggerThan(int pixelValue)
pixelValue
- minimum number of pixels tall+wide the avatar size should be
Avatar.Size
that's equal to or larger than the pixelValue
,
or null
if there's no size that could cater the value.public static Avatar.Size smallerThan(int pixelValue)
pixelValue
- minimum number of pixels tall+wide the avatar size should be
Avatar.Size
that's equal to or larger than the pixelValue
,
or null
if there's no size that could cater the value.public int getPixels()
public String getParam()
public String toString()
toString
in class Enum<Avatar.Size>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |