|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.content.transform.magick.ImageCropOptions
public class ImageCropOptions
DTO used to store options for ImageMagick cropping.
Constructor Summary | |
---|---|
ImageCropOptions()
|
Method Summary | |
---|---|
java.lang.String |
getGravity()
Gets the 'gravity' which determines how the offset is applied. |
int |
getHeight()
Gets the height of the cropped image. |
int |
getWidth()
Sets the width of the cropped image. |
int |
getXOffset()
Gets the horizontal offset. |
int |
getYOffset()
Gets the vertical offset. |
boolean |
isPercentageCrop()
|
void |
setGravity(java.lang.String gravity)
Sets the 'gravity' which determines how the offset is applied. |
void |
setHeight(int height)
Sets the height of the cropped image. |
void |
setPercentageCrop(boolean isPercentageCrop)
|
void |
setWidth(int width)
Sets the width of the cropped image. |
void |
setXOffset(int xOffset)
Sets the horizontal offset. |
void |
setYOffset(int yOffset)
Sets the vertical offset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageCropOptions()
Method Detail |
---|
public int getHeight()
isPercentageCrop
is set to true then it changes to
percentage.
public void setHeight(int height)
isPercentageCrop
is set to true then it changes to
percentage.
height
- the height to setpublic int getWidth()
isPercentageCrop
is set to true then it changes to
percentage.
public void setWidth(int width)
isPercentageCrop
is set to true then it changes to
percentage.
width
- the width to setpublic int getXOffset()
gravity
property can change this.
public void setXOffset(int xOffset)
gravity
property can change this.
xOffset
- the xOffset to setpublic int getYOffset()
gravity
property
can change this.
public void setYOffset(int yOffset)
gravity
property
can change this.
yOffset
- the yOffset to setpublic boolean isPercentageCrop()
public void setPercentageCrop(boolean isPercentageCrop)
isPercentageCrop
- the isPercentageCrop to setpublic void setGravity(java.lang.String gravity)
gravity
- the gravity to setpublic java.lang.String getGravity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |