public interface Resolution
Project.getResolutions()
Modifier and Type | Field and Description |
---|---|
static String |
ORIGINAL_RESOLUTION_NAME |
static String |
PREVIEW_RES_NAME |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the technical description of this resolution
|
String |
getDescription(Language language)
Get the editorial description of this resolution for the given language
or
null if not defined for the language |
String |
getDisplayName(Language language)
Gets display name of the resolution for the given language.
|
int |
getHeight()
Gets the height of the resolution
|
boolean |
getKeepAspectRatio()
Returns
true if aspect ratio of the original resolution should be kept, false otherwise
(default) |
String |
getName()
Deprecated.
since 4.2.12 use
getUid() instead |
String |
getUid()
Returns the unique identifier of this resolution.
|
int |
getWidth()
Gets the width of the resolution
|
boolean |
isOriginal()
Returns
true if this resolution is the original resolution |
void |
setDescription(Language language,
String description)
Sets the editorial description of the resolution for the given language
|
void |
setDescription(String description)
Sets the technical description of the resolution
|
void |
setDisplayName(Language language,
String displayName)
Sets the display name of the resolution for the given language
|
void |
setHeight(int height)
Sets the height of the resolution
|
void |
setKeepAspectRatio(boolean value)
Provide
true if aspect ratio of the original resolution should be kept, false otherwise
(default) |
void |
setName(String uid)
Deprecated.
since 4.2.12 - no replacement
|
void |
setUid(String uid)
Deprecated.
since 5.0.18 - remove resolution from project and create new instance instead.
|
void |
setWidth(int width)
Sets the width of the resolution
|
static final String ORIGINAL_RESOLUTION_NAME
static final String PREVIEW_RES_NAME
@Deprecated String getName()
getUid()
insteadgetUid()
.String getUid()
setUid(String)
@Nullable String getDisplayName(Language language)
language
- Language for which the display name is requested.null
if not defined@Deprecated void setName(String uid)
uid
- new uid@Deprecated void setUid(String uid)
uid
- new uidgetUid()
void setDisplayName(Language language, String displayName)
displayName
- the new displaynamelanguage
- the language to set the display name forString getDescription()
@Nullable String getDescription(Language language)
null
if not defined for the languagelanguage
- the language to get the description fornull
otherwisevoid setDescription(String description)
description
- the new descriptionvoid setDescription(Language language, String description)
description
- the new descriptionlanguage
- the language to set the description forint getHeight()
void setHeight(int height)
height
- the new height valueint getWidth()
void setWidth(int width)
width
- the new width valueboolean isOriginal()
true
if this resolution is the original resolutiontrue
if it is the original resolution, false
otherwiseboolean getKeepAspectRatio()
true
if aspect ratio of the original resolution should be kept, false
otherwise
(default)void setKeepAspectRatio(boolean value)
true
if aspect ratio of the original resolution should be kept, false
otherwise
(default)value
- if true the set width and height of this resolution is used as maximum side lengthCopyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500