com.silverpeas.gallery.constant
Enum MediaResolution
java.lang.Object
java.lang.Enum<MediaResolution>
com.silverpeas.gallery.constant.MediaResolution
- All Implemented Interfaces:
- Serializable, Comparable<MediaResolution>
public enum MediaResolution
- extends Enum<MediaResolution>
TINY
public static final MediaResolution TINY
SMALL
public static final MediaResolution SMALL
MEDIUM
public static final MediaResolution MEDIUM
LARGE
public static final MediaResolution LARGE
PREVIEW
public static final MediaResolution PREVIEW
WATERMARK
public static final MediaResolution WATERMARK
ORIGINAL
public static final MediaResolution ORIGINAL
ALL
public static final Set<MediaResolution> ALL
values
public static MediaResolution[] values()
- 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 (MediaResolution c : MediaResolution.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MediaResolution valueOf(String name)
- 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
fromNameOrLabel
public static MediaResolution fromNameOrLabel(String nameOrLabel)
getName
public String getName()
isDisplayed
public boolean isDisplayed()
- Indicates if the definition can be displayed to the user.
- Returns:
- true if the definition can be displayed, false otherwise.
getLabel
public String getLabel()
getWidth
public Integer getWidth()
getHeight
public Integer getHeight()
getThumbnailSuffix
public String getThumbnailSuffix()
isWatermarkApplicable
public boolean isWatermarkApplicable()
getWatermarkSize
public Integer getWatermarkSize()
isTiny
public boolean isTiny()
isSmall
public boolean isSmall()
isMedium
public boolean isMedium()
isLarge
public boolean isLarge()
isPreview
public boolean isPreview()
isWatermark
public boolean isWatermark()
Copyright © 2016 Silverpeas. All Rights Reserved.