public class EditorLoadSettings extends Settings<EditorLoadSettings.Event>
Modifier and Type | Class and Description |
---|---|
static class |
EditorLoadSettings.Event |
Settings.RevertibleField
StateObservable.StateUnbindedExeption
Observable.OnPropertyChangedCallback
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED, STATE_REVERTED_EVENT
STATE_INVALID_EVENT
Modifier | Constructor and Description |
---|---|
|
EditorLoadSettings() |
protected |
EditorLoadSettings(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.math.BigDecimal |
getImageAspect() |
ImageFileFormat |
getImageFileFormat() |
int |
getImageSourceAngle()
Get the real sourceType image Exif rotation
|
int |
getImageSourceHeight()
Get the real sourceType image height
|
java.lang.String |
getImageSourcePath() |
int |
getImageSourceWidth()
Get the real sourceType image width
|
static Bitmap |
getPreviewImage() |
boolean |
hasSize() |
boolean |
isDeleteProtectedSource() |
boolean |
isImageIsBroken() |
boolean |
isRectOutsideTheRawImage(Rect chunkRect) |
protected void |
loadImageInfo(EditorShowState editorShowState) |
protected void |
preloadPreviewImage() |
EditorLoadSettings |
setImageSourcePath(java.lang.String imagePath)
Set Image sourceType path
|
EditorLoadSettings |
setImageSourcePath(java.lang.String imagePath,
boolean deleteProtectedSource)
Set Image sourceType path
|
void |
writeToParcel(Parcel dest,
int flags) |
getDefaultCompareState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, revertState, saveInitState, saveState
addCallback, flagAsDirty, getStateModel, notifyChange, notifyPropertyChanged, notifyPropertyChanged, onBind, onBind, removeCallback
addOnPropertyChangedCallback, removeOnPropertyChangedCallback
public EditorLoadSettings()
protected EditorLoadSettings(Parcel in)
public int describeContents()
describeContents
in class Settings<EditorLoadSettings.Event>
public java.math.BigDecimal getImageAspect()
public ImageFileFormat getImageFileFormat()
public int getImageSourceAngle()
public int getImageSourceHeight()
public java.lang.String getImageSourcePath()
public int getImageSourceWidth()
@Nullable public static Bitmap getPreviewImage()
public boolean hasSize()
public boolean isDeleteProtectedSource()
public boolean isImageIsBroken()
public boolean isRectOutsideTheRawImage(Rect chunkRect)
protected void loadImageInfo(EditorShowState editorShowState)
protected void preloadPreviewImage()
public EditorLoadSettings setImageSourcePath(java.lang.String imagePath)
imagePath
- path of the image.public EditorLoadSettings setImageSourcePath(@NonNull java.lang.String imagePath, boolean deleteProtectedSource)
imagePath
- path of the image.deleteProtectedSource
- if true the sourceType image are not destroyed by save policy @see #EditorSaveSettings.setSavePolicypublic void writeToParcel(Parcel dest, int flags)
writeToParcel
in class Settings<EditorLoadSettings.Event>