public class ImageCropOptions
extends java.lang.Object
| Constructor and Description |
|---|
ImageCropOptions() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
toString() |
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()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.