public interface PictureResolution extends StoreElement
Modifier and Type | Method and Description |
---|---|
long |
getCrc()
Get the crc of the picture data or -1 if crc is not calculated
|
PictureCropData |
getCropData()
Get the Crop informations of current pictureresolution if exists (bounds related to original resolution)
or
null if paremeter cropData isn't set |
String |
getExtension()
Get the extension of the current picture resolution
|
int |
getHeight()
Get the height of the current pictureresolution
or -1 if parameter width isn't set
|
MimeType |
getMimeType()
Get the mime-type of the current picture resolution.
|
String |
getName()
Returns the name of the underlying resolution
(e.g.
|
Revision |
getPictureRevision()
Get revision for picture data.
|
Resolution |
getResolution()
Get the resolution as an object of the current pictureresolution
|
long |
getSize()
Get the size of the picture
or -1 if parameter size isn't set
|
int |
getWidth()
Get the width of the current pictureresolution
or -1 if parameter width isn't set
|
boolean |
isDeprecated()
Returns
true if the saved picture is deprecated (the cropped picture data was created based on a original
resolution image that doesn't exists any longer), and false otherwise |
void |
setCropData(PictureCropData cropData)
Sets the Crop informations of current pictureresolution, related to original resolution.
|
void |
setExtension(String extension)
Set the file extension.
|
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getNextSibling, getOutgoingReferences, getParent, getPermission, getPermission, getPermission, getProject, getReferenceName, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
int getHeight()
int getWidth()
@Nullable PictureCropData getCropData()
null
if paremeter cropData isn't setvoid setCropData(PictureCropData cropData)
null
to remove crop data informations.cropData
- the Crop informations related to original resolutionboolean isDeprecated()
true
if the saved picture is deprecated (the cropped picture data was created based on a original
resolution image that doesn't exists any longer), and false
otherwiseString getExtension()
@Nullable MimeType getMimeType()
void setExtension(String extension)
extension
- the file extensionlong getSize()
Resolution getResolution()
@NotNull String getName()
getName
in interface StoreElement
Revision getPictureRevision()
null
means the picture is generated (scaled from the orignal
resolution) on demand.long getCrc()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500