public class FrameView extends ImgLyUIView
isAttached, showState, uiDensity, willDrawUi
Constructor and Description |
---|
FrameView(Context context) |
FrameView(Context context,
AttributeSet attrs) |
FrameView(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
protected Animator |
createFrameInAnimation() |
protected Rect |
getFrameDestination() |
int |
getPaddingBottom() |
int |
getPaddingLeft() |
int |
getPaddingRight() |
int |
getPaddingTop() |
float |
getScale()
The amount that the stickers are scaled , as a proportion of
the stage unscaled size.
|
float |
getTranslationX() |
float |
getTranslationY() |
void |
initStateHandler() |
protected void |
onCropSettingsChanged() |
protected void |
onDraw(Canvas canvas) |
protected void |
onEditModeChanged(EditorShowState showState) |
protected void |
onSettingsChangeEvent() |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
boolean |
onTouchEvent(MotionEvent rawEvent) |
protected void |
reloadFrame() |
void |
setEnabled(boolean enabled) |
protected void |
setImageRect(EditorShowState editorShowState) |
void |
setPadding(int left,
int top,
int right,
int bottom) |
void |
setScale(float scale)
Sets the amount that the view is scaled, as a proportion of
the stages unscaled size.
|
void |
setTranslationX(float translationX)
Sets the horizontal location of this view relative to its left position.
|
void |
setTranslationY(float translationY)
Sets the vertical location of this view relative to its top position.
|
getStateHandler, onAttachedToUI, onAttachedToWindow, onDetachedFromUI, onDetachedFromWindow, onDrawUI, postInvalidateUi, setWillDrawUi
public FrameView(Context context)
public FrameView(Context context, AttributeSet attrs)
public FrameView(Context context, AttributeSet attrs, int defStyleAttr)
protected Animator createFrameInAnimation()
@AnyThread protected Rect getFrameDestination()
public int getPaddingBottom()
public int getPaddingLeft()
public int getPaddingRight()
public int getPaddingTop()
public float getScale()
public float getTranslationX()
public float getTranslationY()
public void initStateHandler()
protected void onCropSettingsChanged()
protected void onDraw(Canvas canvas)
protected void onEditModeChanged(EditorShowState showState)
protected void onSettingsChangeEvent()
protected void onSizeChanged(int w, int h, int oldw, int oldh)
public boolean onTouchEvent(MotionEvent rawEvent)
protected void reloadFrame()
public void setEnabled(boolean enabled)
protected void setImageRect(EditorShowState editorShowState)
public void setPadding(int left, int top, int right, int bottom)
public void setScale(float scale)
scale
- The scaling factor.public void setTranslationX(float translationX)
translationX
- The horizontal position of the stage relative to its left position,
in pixels.public void setTranslationY(float translationY)
translationY
- The vertical position of the stage relative to its top position,
in pixels.