public class CropAspectConfig extends AbstractConfig implements AspectConfigInterface
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<CropAspectConfig> |
CREATOR |
static CropAspectConfig |
FREE_CROP |
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
CropAspectConfig(int cropWidth,
int cropHeight) |
|
CropAspectConfig(int name,
int cropWidth,
int cropHeight) |
|
CropAspectConfig(int name,
int cropWidth,
int cropHeight,
boolean fixedSize) |
protected |
CropAspectConfig(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
DataSourceListAdapter.DataSourceViewHolder<AbstractConfig.BindData> |
createViewHolder(android.view.View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.math.BigDecimal |
getAspect()
Get Aspect the ration or #CropAspectConfig.CUSTOM_ASPECT if it is custom aspect mode.
|
int |
getCropHeight() |
int |
getCropWidth() |
int |
getLayout()
Get the layout res id of the list item view.
|
boolean |
hasEqualAspect(AspectConfigInterface o) |
int |
hashCode() |
boolean |
hasSpecificSize() |
boolean |
isFreeCrop() |
boolean |
isSelectable() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
generateBindData, generateBindDataAsync, getId, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, getVerticalLayout, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
generateBindData, generateBindDataAsync, getId, getName, getVerticalLayout, isDirty, setDirtyFlag
public static final android.os.Parcelable.Creator<CropAspectConfig> CREATOR
public static final CropAspectConfig FREE_CROP
public CropAspectConfig(int cropWidth, int cropHeight)
public CropAspectConfig(@StringRes int name, int cropWidth, int cropHeight)
public CropAspectConfig(@StringRes int name, int cropWidth, int cropHeight, boolean fixedSize)
protected CropAspectConfig(android.os.Parcel in)
@NonNull public DataSourceListAdapter.DataSourceViewHolder<AbstractConfig.BindData> createViewHolder(@NonNull android.view.View view, boolean useVerticalLayout)
DataSourceInterface
createViewHolder
in interface DataSourceInterface<AbstractConfig.BindData>
createViewHolder
in class AbstractConfig
view
- view inflated with #getLayoutpublic int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class AbstractConfig
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public java.math.BigDecimal getAspect()
getAspect
in interface AspectConfigInterface
public int getCropHeight()
getCropHeight
in interface AspectConfigInterface
public int getCropWidth()
getCropWidth
in interface AspectConfigInterface
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface<AbstractConfig.BindData>
public boolean hasEqualAspect(@Nullable AspectConfigInterface o)
hasEqualAspect
in interface AspectConfigInterface
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasSpecificSize()
hasSpecificSize
in interface AspectConfigInterface
public boolean isFreeCrop()
isFreeCrop
in interface AspectConfigInterface
public boolean isSelectable()
isSelectable
in interface DataSourceInterface<AbstractConfig.BindData>
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractConfig