public static final enum

AvatarManager.ImageSize

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.jira.avatar.AvatarManager.ImageSize

This enum is deprecated.
in JIRA 6.0 -- use Avatar.Size.

Class Overview

Represents the different sizes of avatars that can be requested!

Summary

Enum Values
AvatarManager.ImageSize  LARGE   
AvatarManager.ImageSize  LARGE_3X   
AvatarManager.ImageSize  MEDIUM   
AvatarManager.ImageSize  NORMAL   
AvatarManager.ImageSize  NORMAL_3X   
AvatarManager.ImageSize  RETINA_XXLARGE   
AvatarManager.ImageSize  RETINA_XXLARGE_3X   
AvatarManager.ImageSize  RETINA_XXXLARGE   
AvatarManager.ImageSize  RETINA_XXXLARGE_3X   
AvatarManager.ImageSize  SMALL   
AvatarManager.ImageSize  XLARGE   
AvatarManager.ImageSize  XXLARGE   
AvatarManager.ImageSize  XXXLARGE   
Public Methods
static AvatarManager.ImageSize defaultSize()
static AvatarManager.ImageSize fromSize(Avatar.Size size)
static AvatarManager.ImageSize fromString(String text)
Returns an avatar image size matching the text provided.
String getFilenameFlag()
Selection getOriginSelection()
int getPixels()
Avatar.Size getSize()
static AvatarManager.ImageSize largest()
In order to cater for future addition of larger sizes this method finds the largest image size.
String toString()
static AvatarManager.ImageSize valueOf(String name)
final static ImageSize[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final AvatarManager.ImageSize LARGE

public static final AvatarManager.ImageSize LARGE_3X

public static final AvatarManager.ImageSize MEDIUM

public static final AvatarManager.ImageSize NORMAL

public static final AvatarManager.ImageSize NORMAL_3X

public static final AvatarManager.ImageSize RETINA_XXLARGE

public static final AvatarManager.ImageSize RETINA_XXLARGE_3X

public static final AvatarManager.ImageSize RETINA_XXXLARGE

public static final AvatarManager.ImageSize RETINA_XXXLARGE_3X

public static final AvatarManager.ImageSize SMALL

public static final AvatarManager.ImageSize XLARGE

public static final AvatarManager.ImageSize XXLARGE

public static final AvatarManager.ImageSize XXXLARGE

Public Methods

public static AvatarManager.ImageSize defaultSize ()

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

public static AvatarManager.ImageSize fromSize (Avatar.Size size)

public static AvatarManager.ImageSize fromString (String text)

Returns an avatar image size matching the text provided. If none can be found, returns defaultSize().

Parameters
text the images size. Will match "s", "small", "SMALL". Can also be an integer value (16, 24, etc.)
Returns
  • the image size enum matching the string provided

public String getFilenameFlag ()

public Selection getOriginSelection ()

public int getPixels ()

public Avatar.Size getSize ()

public static AvatarManager.ImageSize largest ()

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

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

public String toString ()

public static AvatarManager.ImageSize valueOf (String name)

public static final ImageSize[] values ()