java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.atlassian.jira.avatar.Avatar.Size |
The standard sizes for avatars.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Avatar.Size | LARGE | A large avatar (48x48 pixels). | |||||||||
Avatar.Size | LARGE_3X | ||||||||||
Avatar.Size | MEDIUM | A medium avatar (32x32 pixels). | |||||||||
Avatar.Size | NORMAL | A small avatar (24x24 pixels). | |||||||||
Avatar.Size | NORMAL_3X | ||||||||||
Avatar.Size | RETINA_XXLARGE | ||||||||||
Avatar.Size | RETINA_XXLARGE_3X | ||||||||||
Avatar.Size | RETINA_XXXLARGE | ||||||||||
Avatar.Size | RETINA_XXXLARGE_3X | ||||||||||
Avatar.Size | SMALL | An extra-small avatar (16x16 pixels). | |||||||||
Avatar.Size | XLARGE | ||||||||||
Avatar.Size | XXLARGE | ||||||||||
Avatar.Size | XXXLARGE |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LOW_RES |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the Size which is exactly the same size as the given pixel edge value, rounding upward if no
exact match is available, except if the given value is greater than the maximum available size in which
case the maximum size will be returned.
| |||||||||||
Returns an avatar image size matching the text provided.
| |||||||||||
Returns the
Avatar.Size for the given AUI standard size name. | |||||||||||
In order to cater for future addition of larger sizes this method finds the largest image size.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
A medium avatar (32x32 pixels). Use in comments and other activity streams.
A small avatar (24x24 pixels). Use when outputting user's names.
Returns the Size which is exactly the same size as the given pixel edge value, rounding upward if no exact match is available, except if the given value is greater than the maximum available size in which case the maximum size will be returned.
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.
Returns an avatar image size matching the text provided.
If none can be found, returns defaultSize()
.
text | the images size. Will match "s", "small", "SMALL". Can also be an integer value (16, 24, etc.) |
---|
Returns the Avatar.Size
for the given AUI standard size name.
Each AUI size name can be specified with a 2x or 3x multiplier. So the following sizes are available:
param | the standard name of the size (e.g. small, medium, xlarge), may be multiplied |
---|
Avatar.Size
NoSuchElementException | if there is no known size by that name. |
---|
In order to cater for future addition of larger sizes this method finds the largest image size.
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.