public class CropSettings extends Settings<CropSettings.Event>
| Modifier and Type | Class and Description |
|---|---|
static class |
CropSettings.Event |
class |
CropSettings.ScaleContext |
Settings.RevertibleFieldStateObservable.StateUnbindedExeption| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<CropSettings> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED, STATE_REVERTED_EVENTSTATE_INVALID, STATE_INVALID_EVENT| Modifier | Constructor and Description |
|---|---|
|
CropSettings() |
protected |
CropSettings(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
android.graphics.RectF |
calculateImageCrop() |
android.graphics.RectF |
calculateStageCrop() |
int |
describeContents() |
CropSettings.ScaleContext |
generateScaledContext(android.graphics.Rect rect) |
AbstractConfig.AspectConfigInterface |
getAspect() |
CropRect |
getCropRect() |
AbstractConfig.AspectConfigInterface |
getCurrentRotationBasedAspect()
Get the current config that best match currentAspect and rotation.
|
RelativeRect |
getRelativeCropRegion() |
protected RelativeRect |
getTransformedCropRect() |
protected void |
onBind(StateHandler stateHandler) |
protected void |
saveTransformation(RelativeRect relativeCropRect) |
CropSettings |
setAspect(AbstractConfig.AspectConfigInterface aspect) |
protected void |
setCropStageSize(EditorShowState settings) |
protected void |
setTransformations(java.math.BigDecimal offsetX,
java.math.BigDecimal offsetY,
java.math.BigDecimal scale) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getDefaultCompareState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isRevertible, revertState, saveInitState, saveStateaddCallback, getStateModel, invalidate, isFrozen, isInvalidateble, notifyChange, notifyPropertyChanged, notifyPropertyChanged, onBind, removeCallbackpublic static final android.os.Parcelable.Creator<CropSettings> CREATOR
public CropSettings()
protected CropSettings(android.os.Parcel in)
protected void onBind(StateHandler stateHandler)
onBind in class StateObservable<CropSettings.Event>public AbstractConfig.AspectConfigInterface getAspect()
public CropSettings setAspect(AbstractConfig.AspectConfigInterface aspect)
public CropRect getCropRect()
protected void setCropStageSize(EditorShowState settings)
public RelativeRect getRelativeCropRegion()
public android.graphics.RectF calculateStageCrop()
public android.graphics.RectF calculateImageCrop()
protected RelativeRect getTransformedCropRect()
public CropSettings.ScaleContext generateScaledContext(android.graphics.Rect rect)
protected void setTransformations(java.math.BigDecimal offsetX,
java.math.BigDecimal offsetY,
java.math.BigDecimal scale)
protected void saveTransformation(RelativeRect relativeCropRect)
@Nullable public AbstractConfig.AspectConfigInterface getCurrentRotationBasedAspect()
public int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class Settings<CropSettings.Event>public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class Settings<CropSettings.Event>