public abstract class UILayer extends LayerBase
Modifier and Type | Field and Description |
---|---|
protected android.graphics.Rect |
stage |
protected Transformation |
transformation |
isAttached, showState, uiDensity, willDrawUi
Constructor and Description |
---|
UILayer(StateHandler stateHandler) |
Modifier and Type | Method and Description |
---|---|
android.content.res.Resources |
getResources() |
void |
onActivated() |
void |
onDeactivated() |
abstract void |
onDrawUI(android.graphics.Canvas canvas) |
void |
onMotionEvent(TransformedMotionEvent event) |
void |
onSizeChanged(int w,
int h) |
void |
renderUi() |
void |
setTransformation(Transformation matrix) |
getStateHandler, isEnabled, onAttached, onAttachedToUI, onDetached, onDetachedFromUI, postInvalidateUi, setWillDrawUi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doRespondOnClick, isRelativeToCrop, setImageRect
protected Transformation transformation
protected android.graphics.Rect stage
public UILayer(StateHandler stateHandler)
public void onActivated()
onActivated
in interface LayerI
onActivated
in class LayerBase
public void onDeactivated()
onDeactivated
in interface LayerI
onDeactivated
in class LayerBase
public android.content.res.Resources getResources()
public void setTransformation(@NonNull Transformation matrix)
public void onSizeChanged(int w, int h)
onSizeChanged
in interface LayerI
onSizeChanged
in class LayerBase
public abstract void onDrawUI(android.graphics.Canvas canvas)
onDrawUI
in interface UIOverlayDrawer
onDrawUI
in class LayerBase
@MainThread public void onMotionEvent(@NonNull TransformedMotionEvent event)
@AnyThread public void renderUi()