com.atlassian.jira.avatar
Enum AvatarManager.ImageSize

java.lang.Object
  extended by java.lang.Enum<AvatarManager.ImageSize>
      extended by com.atlassian.jira.avatar.AvatarManager.ImageSize
All Implemented Interfaces:
Serializable, Comparable<AvatarManager.ImageSize>
Enclosing interface:
AvatarManager

Deprecated. in JIRA 6.0 -- use Avatar.Size.

public static enum AvatarManager.ImageSize
extends Enum<AvatarManager.ImageSize>

Represents the different sizes of avatars that can be requested!


Enum Constant Summary
LARGE
          Deprecated.  
MEDIUM
          Deprecated.  
NORMAL
          Deprecated.  
RETINA_XXLARGE
          Deprecated.  
RETINA_XXXLARGE
          Deprecated.  
SMALL
          Deprecated.  
XLARGE
          Deprecated.  
XXLARGE
          Deprecated.  
XXXLARGE
          Deprecated.  
 
Method Summary
static AvatarManager.ImageSize defaultSize()
          Deprecated.  
static AvatarManager.ImageSize fromSize(Avatar.Size size)
          Deprecated.  
static AvatarManager.ImageSize fromString(String text)
          Deprecated. Returns an avatar image size matching the text provided.
 String getFilenameFlag()
          Deprecated.  
 Selection getOriginSelection()
          Deprecated.  
 int getPixels()
          Deprecated.  
 Avatar.Size getSize()
          Deprecated.  
static AvatarManager.ImageSize largest()
          Deprecated. In order to cater for future addition of larger sizes this method finds the largest image size.
 String toString()
          Deprecated.  
static AvatarManager.ImageSize valueOf(String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static AvatarManager.ImageSize[] values()
          Deprecated. 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

NORMAL

public static final AvatarManager.ImageSize NORMAL
Deprecated. 

SMALL

public static final AvatarManager.ImageSize SMALL
Deprecated. 

MEDIUM

public static final AvatarManager.ImageSize MEDIUM
Deprecated. 

LARGE

public static final AvatarManager.ImageSize LARGE
Deprecated. 

XLARGE

public static final AvatarManager.ImageSize XLARGE
Deprecated. 

XXLARGE

public static final AvatarManager.ImageSize XXLARGE
Deprecated. 

XXXLARGE

public static final AvatarManager.ImageSize XXXLARGE
Deprecated. 

RETINA_XXLARGE

public static final AvatarManager.ImageSize RETINA_XXLARGE
Deprecated. 

RETINA_XXXLARGE

public static final AvatarManager.ImageSize RETINA_XXXLARGE
Deprecated. 
Method Detail

values

public static AvatarManager.ImageSize[] values()
Deprecated. 
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AvatarManager.ImageSize c : AvatarManager.ImageSize.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AvatarManager.ImageSize valueOf(String name)
Deprecated. 
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromSize

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

getSize

public Avatar.Size getSize()
Deprecated. 

getPixels

public int getPixels()
Deprecated. 

getFilenameFlag

public String getFilenameFlag()
Deprecated. 

getOriginSelection

public Selection getOriginSelection()
Deprecated. 

largest

public static AvatarManager.ImageSize largest()
Deprecated. 
In order to cater for future addition of larger sizes this method finds the largest image size.

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

defaultSize

public static AvatarManager.ImageSize defaultSize()
Deprecated. 
Returns:
the default size for avatars.
See Also:
com.atlassian.jira.avatar.Avatar.Size#defaultSize()}, they need to be kept in sync.

fromString

public static AvatarManager.ImageSize fromString(String text)
Deprecated. 
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

toString

public String toString()
Deprecated. 
Overrides:
toString in class Enum<AvatarManager.ImageSize>


Copyright © 2002-2015 Atlassian. All Rights Reserved.