|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.file.types.CmsResourceTypeImage.CmsImageAdjuster
protected static class CmsResourceTypeImage.CmsImageAdjuster
A data container for image size and scale operations.
| Constructor Summary | |
|---|---|
CmsResourceTypeImage.CmsImageAdjuster(byte[] content,
java.lang.String rootPath,
java.util.List<CmsProperty> properties,
CmsImageScaler downScaler)
Creates a new image data container. |
|
| Method Summary | |
|---|---|
void |
adjust()
Calculates the image size and adjusts the image dimensions (if required) accoring to the configured image downscale settings. |
byte[] |
getContent()
Returns the image content. |
java.util.List<CmsProperty> |
getProperties()
Returns the image properties. |
java.lang.String |
getRootPath()
Returns the image VFS root path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsResourceTypeImage.CmsImageAdjuster(byte[] content,
java.lang.String rootPath,
java.util.List<CmsProperty> properties,
CmsImageScaler downScaler)
content - the image byte contentrootPath - the image root pathproperties - the image propertiesdownScaler - the (optional) image scaler that contains the image downscale settings| Method Detail |
|---|
public void adjust()
The image dimensions are always calculated from the given image. The internal list of properties is updated
with a value for that
contains the calculated image dimensions.CmsPropertyDefinition.PROPERTY_IMAGE_SIZE
public byte[] getContent()
public java.util.List<CmsProperty> getProperties()
public java.lang.String getRootPath()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||