Enum Class AvatarManager.ImageSize

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

public static enum AvatarManager.ImageSize extends Enum<AvatarManager.ImageSize>
Deprecated.
in JIRA 6.0 -- use Avatar.Size.
Represents the different sizes of avatars that can be requested!
  • Enum Constant Details

  • Method Details

    • values

      public static AvatarManager.ImageSize[] values()
      Deprecated.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AvatarManager.ImageSize valueOf(String name)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
    • defaultSize

      public static AvatarManager.ImageSize defaultSize()
      Deprecated.
      Returns:
      the default size for avatars.
    • 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>