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() |
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 android.graphics.Bitmap |
getPreviewImage() |
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 |
setImageSourcePath(java.lang.String imagePath)
Set Image sourceType path
|
EditorLoadSettings |
setImageSourcePath(java.lang.String imagePath,
boolean deleteProtectedSource)
Set Image sourceType path
|
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, getStateModel, hasModelNonDefaultValue, notifyPropertyChanged, onBind, onBind, removeCallback, removeCallback
public static final android.os.Parcelable.Creator<EditorLoadSettings> CREATOR
public static int PREVIEW_RESOLUTION_IN_DPI
public EditorLoadSettings()
protected EditorLoadSettings(android.os.Parcel in)
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class Settings<EditorLoadSettings.Event>
public double getImageAspect()
public ImageFileFormat getImageFileFormat()
public int getImageSourceAngle()
public int getImageSourceHeight()
public java.lang.String getImageSourcePath()
public int getImageSourceWidth()
@Nullable public static android.graphics.Bitmap getPreviewImage()
public int getRealImageSourceHeight()
public int getRealImageSourceWidth()
public boolean hasNonDefaults()
hasNonDefaults
in class Settings<EditorLoadSettings.Event>
public boolean hasSize()
public boolean isDeleteProtectedSource()
public boolean isImageIsBroken()
public boolean isRectOutsideTheRawImage(android.graphics.Rect chunkRect)
@WorkerThread public void loadImageInfo()
@AnyThread protected void loadImageInfo(EditorShowState editorShowState)
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 saveImage policy @see #EditorSaveSettings.setSavePolicypublic static void setPreviewImage(android.graphics.Bitmap previewImage)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Settings<EditorLoadSettings.Event>