public class EditorLoadSettings extends Settings<EditorLoadSettings.Event>
Modifier and Type | Class and Description |
---|---|
static class |
EditorLoadSettings.Event |
Settings.RevertibleField, Settings.SaveState
StateObservable.StateUnbindedException
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<EditorLoadSettings> |
CREATOR |
static int |
PREVIEW_RESOLUTION_IN_DPI |
isRevertible, revertibleFields, STATE_REVERTED
isConfigObject
Modifier | Constructor and Description |
---|---|
|
EditorLoadSettings() |
protected |
EditorLoadSettings(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
double |
getImageAspect() |
ImageFileFormat |
getImageFileFormat() |
android.net.Uri |
getImageSource() |
int |
getImageSourceAngle()
Get the real source image Exif rotation
|
int |
getImageSourceHeight()
Get the real source image height
|
java.lang.String |
getImageSourcePath()
Deprecated.
|
int |
getImageSourceWidth()
Get the real source image width
|
android.graphics.Bitmap |
getPreviewImage() |
android.graphics.Bitmap |
getPreviewImage(ImageSource fallback) |
int |
getRealImageSourceHeight() |
int |
getRealImageSourceWidth() |
boolean |
hasNonDefaults() |
boolean |
hasSize() |
boolean |
isDeleteProtectedSource() |
boolean |
isImageIsBroken() |
boolean |
isRectOutsideTheRawImage(android.graphics.Rect chunkRect) |
void |
loadImageInfo() |
protected void |
loadImageInfo(EditorShowState editorShowState) |
EditorLoadSettings |
setImageSource(android.net.Uri imagePath) |
EditorLoadSettings |
setImageSource(android.net.Uri imagePath,
boolean deleteProtectedSource)
Set Image source path
|
EditorLoadSettings |
setImageSourcePath(java.lang.String imagePath)
Deprecated.
|
EditorLoadSettings |
setImageSourcePath(java.lang.String imagePath,
boolean deleteProtectedSource)
Deprecated.
|
static void |
setPreviewImage(android.graphics.Bitmap previewImage) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
createSaveState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, revertState, revertState, saveInitState, saveState
addCallback, addCallback, getSettingsHandler, getSettingsHolder, getStateModel, getStateModel, hasModelNonDefaultValue, hasModelNonDefaultValue, hasStateHandler, notifyPropertyChanged, onBind, onBind, removeCallback, removeCallback
public static int PREVIEW_RESOLUTION_IN_DPI
public static final android.os.Parcelable.Creator<EditorLoadSettings> CREATOR
public EditorLoadSettings()
protected EditorLoadSettings(android.os.Parcel in)
@Nullable public android.graphics.Bitmap getPreviewImage()
@Nullable public android.graphics.Bitmap getPreviewImage(ImageSource fallback)
@Deprecated public java.lang.String getImageSourcePath()
public android.net.Uri getImageSource()
@Deprecated public EditorLoadSettings setImageSourcePath(java.lang.String imagePath)
imagePath
- path of the image.public EditorLoadSettings setImageSource(android.net.Uri imagePath)
public static void setPreviewImage(android.graphics.Bitmap previewImage)
@Deprecated public EditorLoadSettings setImageSourcePath(@NonNull java.lang.String imagePath, boolean deleteProtectedSource)
imagePath
- path of the image.deleteProtectedSource
- if true the source image are not destroyed by saveImage policy @see #EditorSaveSettings.setSavePolicypublic EditorLoadSettings setImageSource(@NonNull android.net.Uri imagePath, boolean deleteProtectedSource)
imagePath
- path of the image.deleteProtectedSource
- if true the source image are not destroyed by saveImage policy @see #EditorSaveSettings.setSavePolicy@AnyThread protected void loadImageInfo(EditorShowState editorShowState)
@WorkerThread public void loadImageInfo()
public ImageFileFormat getImageFileFormat()
public boolean isRectOutsideTheRawImage(android.graphics.Rect chunkRect)
public int getImageSourceAngle()
public int getImageSourceWidth()
public double getImageAspect()
public boolean hasSize()
public int getRealImageSourceWidth()
public int getRealImageSourceHeight()
public int getImageSourceHeight()
public boolean isImageIsBroken()
public boolean isDeleteProtectedSource()
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class Settings<EditorLoadSettings.Event>
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Settings<EditorLoadSettings.Event>
public boolean hasNonDefaults()
hasNonDefaults
in class Settings<EditorLoadSettings.Event>