public class CropAspectAsset extends AbstractAsset
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<CropAspectAsset> |
CREATOR |
static CropAspectAsset |
FREE_CROP |
static java.lang.String |
FREE_CROP_ID |
static java.lang.String |
RESET_CROP_ID |
Modifier | Constructor and Description |
---|---|
protected |
CropAspectAsset(android.os.Parcel in) |
|
CropAspectAsset(java.lang.String id,
int cropWidth,
int cropHeight,
boolean fixedSize) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.math.BigDecimal |
getAspect()
Get Aspect the ration or #CropAspectAsset.CUSTOM_ASPECT if it is custom aspect mode.
|
java.lang.Class<? extends AbstractAsset> |
getConfigType() |
int |
getCropHeight() |
int |
getCropWidth() |
boolean |
hasEqualAspect(CropAspectAsset o) |
int |
hashCode() |
boolean |
hasSpecificSize() |
boolean |
isFreeCrop() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
afterAddToAssetMap, equals, getId
public static final java.lang.String FREE_CROP_ID
public static final java.lang.String RESET_CROP_ID
public static final CropAspectAsset FREE_CROP
public static final android.os.Parcelable.Creator<CropAspectAsset> CREATOR
public CropAspectAsset(java.lang.String id, int cropWidth, int cropHeight, boolean fixedSize)
protected CropAspectAsset(android.os.Parcel in)
public final java.lang.Class<? extends AbstractAsset> getConfigType()
getConfigType
in class AbstractAsset
public boolean isFreeCrop()
public java.math.BigDecimal getAspect()
public boolean hasSpecificSize()
public int getCropWidth()
public int getCropHeight()
public boolean hasEqualAspect(@Nullable CropAspectAsset o)
public int hashCode()
hashCode
in class AbstractAsset
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class AbstractAsset
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractAsset