public static final enum

Avatar.Size

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.jira.avatar.Avatar.Size

Class Overview

The standard sizes for avatars.

Summary

Enum Values
Avatar.Size  LARGE  A large avatar (48x48 pixels). 
Avatar.Size  MEDIUM  A medium avatar (32x32 pixels). 
Avatar.Size  NORMAL  A small avatar (24x24 pixels). 
Avatar.Size  RETINA_XXLARGE   
Avatar.Size  RETINA_XXXLARGE   
Avatar.Size  SMALL  An extra-small avatar (16x16 pixels). 
Avatar.Size  XLARGE   
Avatar.Size  XXLARGE   
Avatar.Size  XXXLARGE   
Public Methods
static Avatar.Size biggerThan(int pixelValue)
static Avatar.Size defaultSize()
String getParam()
int getPixels()
static Avatar.Size getSizeFromParam(String param)
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)
final static Size[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Avatar.Size LARGE

A large avatar (48x48 pixels).

public static final Avatar.Size MEDIUM

A medium avatar (32x32 pixels). Use in comments and other activity streams.

public static final Avatar.Size NORMAL

A small avatar (24x24 pixels). Use when outputting user's names.

public static final Avatar.Size RETINA_XXLARGE

public static final Avatar.Size RETINA_XXXLARGE

public static final Avatar.Size SMALL

An extra-small avatar (16x16 pixels).

public static final Avatar.Size XLARGE

public static final Avatar.Size XXLARGE

public static final Avatar.Size XXXLARGE

Public Methods

public static Avatar.Size biggerThan (int pixelValue)

Parameters
pixelValue minimum number of pixels tall+wide the avatar size should be
Returns
  • an avatar 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 defaultSize ()

Returns
  • the default size for avatars.
See Also
  • {@link com.atlassian.jira.avatar.AvatarManager.ImageSize#defaultSize()}, they need to be kept in sync.

public String getParam ()

public int getPixels ()

public static Avatar.Size getSizeFromParam (String param)

public static Avatar.Size largest ()

In order to cater for future addition of larger sizes this method finds the largest image size.

Returns
  • The largest Size
See Also
  • {@link com.atlassian.jira.avatar.AvatarManager.ImageSize#largest()}, they need to be kept in sync.

public static Avatar.Size smallerThan (int pixelValue)

Parameters
pixelValue minimum number of pixels tall+wide the avatar size should be
Returns
  • an avatar Avatar.Size that's equal to or larger than the pixelValue, or null if there's no size that could cater the value.

public String toString ()

public static Avatar.Size valueOf (String name)

public static final Size[] values ()