public class

OrientedDrawable

extends ForwardingDrawable
java.lang.Object
   ↳ android.graphics.drawable.Drawable
     ↳ com.facebook.drawee.drawable.ForwardingDrawable
       ↳ com.facebook.drawee.drawable.OrientedDrawable

Class Overview

Drawable that automatically rotates the underlying drawable with a pivot in the center of the drawable bounds based on a rotation angle.

Summary

[Expand]
Inherited Fields
From class com.facebook.drawee.drawable.ForwardingDrawable
Public Constructors
OrientedDrawable(Drawable drawable, int rotationAngle)
Creates a new OrientedDrawable.
Public Methods
void draw(Canvas canvas)
int getIntrinsicHeight()
int getIntrinsicWidth()
void getTransform(Matrix transform)
Called when the drawable needs to get all matrices applied to it.
Protected Methods
void onBoundsChange(Rect bounds)
[Expand]
Inherited Methods
From class com.facebook.drawee.drawable.ForwardingDrawable
From class android.graphics.drawable.Drawable
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface com.facebook.drawee.drawable.DrawableParent
From interface com.facebook.drawee.drawable.TransformAwareDrawable
From interface com.facebook.drawee.drawable.TransformCallback

Public Constructors

public OrientedDrawable (Drawable drawable, int rotationAngle)

Creates a new OrientedDrawable. The only rotation angles allowed are multiples of 90 or -1 if the angle is unknown.

Public Methods

public void draw (Canvas canvas)

public int getIntrinsicHeight ()

public int getIntrinsicWidth ()

public void getTransform (Matrix transform)

Called when the drawable needs to get all matrices applied to it.

Parameters
transform Matrix that is applied to the drawable by the parent drawables.

Protected Methods

protected void onBoundsChange (Rect bounds)