public class EditorPreview extends ImgLyUIFrameContainer implements OrientationSensor.OrientationListener
uiDensity
Constructor and Description |
---|
EditorPreview(Context context) |
EditorPreview(Context context,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
protected void |
enableEditPadding(boolean enable) |
RectF |
getCropRectImage() |
RectF |
getCropRectStage() |
Rect |
getImageRect() |
float |
getImageScale() |
float |
getScalePan() |
void |
initStateHandler() |
void |
invalidateCrop(boolean instant) |
protected void |
invalidateCropAnimated() |
protected void |
invalidateCropInstant() |
protected void |
invalidFrameScale(FrameSettings frameSettings) |
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
protected void |
onEditModeChanged(EditorShowState showState) |
void |
onOrientationChange(OrientationSensor.ScreenOrientation screenOrientation) |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
protected void |
onSourceImagePath(EditorLoadSettings loadSettings) |
protected void |
onToolChange(EditorMenuState menuState) |
protected void |
setImageRotation(OrientationSettings settings) |
void |
setImageScale(float scaleImageScale) |
void |
setPanX(int x) |
void |
setPanY(int y) |
void |
setScalePan(float scalePan) |
getStateHandler, onAttachedToUI, onDetachedFromUI
public EditorPreview(Context context)
public EditorPreview(Context context, AttributeSet attrs)
protected void enableEditPadding(boolean enable)
public RectF getCropRectImage()
public RectF getCropRectStage()
public Rect getImageRect()
public float getImageScale()
public float getScalePan()
public void initStateHandler()
public void invalidateCrop(boolean instant)
protected void invalidateCropAnimated()
protected void invalidateCropInstant()
protected void invalidFrameScale(FrameSettings frameSettings)
protected void onAttachedToWindow()
onAttachedToWindow
in class ImgLyUIFrameContainer
protected void onDetachedFromWindow()
onDetachedFromWindow
in class ImgLyUIFrameContainer
protected void onEditModeChanged(EditorShowState showState)
public void onOrientationChange(@NonNull OrientationSensor.ScreenOrientation screenOrientation)
onOrientationChange
in interface OrientationSensor.OrientationListener
protected void onSizeChanged(int w, int h, int oldw, int oldh)
protected void onSourceImagePath(EditorLoadSettings loadSettings)
protected void onToolChange(EditorMenuState menuState)
protected void setImageRotation(OrientationSettings settings)
public void setImageScale(float scaleImageScale)
public void setPanX(int x)
public void setPanY(int y)
public void setScalePan(float scalePan)