public class ColorAdjustmentSettings extends Settings<ColorAdjustmentSettings.Event>
Modifier and Type | Class and Description |
---|---|
static class |
ColorAdjustmentSettings.Event |
Settings.RevertibleField, Settings.SaveState
StateObservable.StateUnbindedException
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<ColorAdjustmentSettings> |
CREATOR |
static float |
DEFAULT_BLACKS |
static float |
DEFAULT_BRIGHTNESS |
static float |
DEFAULT_CLARITY |
static float |
DEFAULT_CONTRAST |
static float |
DEFAULT_EXPOSURE |
static float |
DEFAULT_GAMMA |
static float |
DEFAULT_HIGHLIGHT |
static float |
DEFAULT_SATURATION |
static float |
DEFAULT_SHADOW |
static float |
DEFAULT_TEMPERATURE |
static float |
DEFAULT_WHITES |
isRevertible, revertibleFields, STATE_REVERTED
isConfigObject
Modifier | Constructor and Description |
---|---|
|
ColorAdjustmentSettings() |
protected |
ColorAdjustmentSettings(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
void |
callPreviewDirty() |
int |
describeContents() |
float |
getBlacks() |
float |
getBrightness()
Get the current brightness
|
float |
getClarity() |
float |
getContrast()
Get the current contrast
|
float |
getExposure() |
float |
getGamma() |
float |
getHighlight() |
float |
getSaturation()
Get the current Saturation.
|
float |
getShadow() |
float |
getTemperature() |
float |
getWhites() |
boolean |
hasNonDefaults() |
void |
setBlacks(float blacks) |
void |
setBrightness(float brightness)
Set image brightness
|
void |
setClarity(float clarity) |
void |
setContrast(float contrast)
Set the contrast.
|
void |
setDefaultValues() |
void |
setExposure(float exposure) |
void |
setGamma(float gamma) |
void |
setHighlight(float highlight) |
void |
setSaturation(float saturation)
Set image saturation.
|
void |
setShadow(float shadow) |
void |
setTemperature(float temperature) |
void |
setWhites(float whites) |
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 float DEFAULT_CONTRAST
public static float DEFAULT_BRIGHTNESS
public static float DEFAULT_SATURATION
public static float DEFAULT_CLARITY
public static float DEFAULT_SHADOW
public static float DEFAULT_GAMMA
public static float DEFAULT_EXPOSURE
public static float DEFAULT_HIGHLIGHT
public static float DEFAULT_TEMPERATURE
public static float DEFAULT_BLACKS
public static float DEFAULT_WHITES
public static final android.os.Parcelable.Creator<ColorAdjustmentSettings> CREATOR
public ColorAdjustmentSettings()
protected ColorAdjustmentSettings(android.os.Parcel in)
public boolean hasNonDefaults()
hasNonDefaults
in class Settings<ColorAdjustmentSettings.Event>
public void setDefaultValues()
public void callPreviewDirty()
public float getSaturation()
public void setSaturation(float saturation)
saturation
- A value of 0 maps the color to gray-scale. 1 is identity. 1 > intense the color.public float getClarity()
public void setClarity(float clarity)
public float getGamma()
public void setGamma(float gamma)
public float getShadow()
public void setShadow(float shadow)
public float getHighlight()
public void setHighlight(float highlight)
public float getExposure()
public void setExposure(float exposure)
public float getBlacks()
public float getWhites()
public float getTemperature()
public void setBlacks(float blacks)
public void setTemperature(float temperature)
public void setWhites(float whites)
public float getBrightness()
public void setBrightness(float brightness)
brightness
- A value of 0 maps the color to black. 1 is identity. 2 is white.public float getContrast()
public void setContrast(float contrast)
contrast
- A value of 0 the image is totally gray. 1 is identity. 1 > intense the contrast.public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class Settings<ColorAdjustmentSettings.Event>
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Settings<ColorAdjustmentSettings.Event>