Package org.robolectric.shadows
Class ShadowPorterDuffColorFilter
- java.lang.Object
-
- org.robolectric.shadows.ShadowPorterDuffColorFilter
-
@Implements(android.graphics.PorterDuffColorFilter.class) public class ShadowPorterDuffColorFilter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowPorterDuffColorFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void__constructor__(int color, android.graphics.PorterDuff.Mode mode)booleanequals(java.lang.Object object)intgetColor()android.graphics.PorterDuff.ModegetMode()inthashCode()protected voidsetColor(int color)protected voidsetMode(android.graphics.PorterDuff.Mode mode)
-
-
-
Method Detail
-
__constructor__
@Implementation protected void __constructor__(int color, android.graphics.PorterDuff.Mode mode)
-
setColor
@Implementation(minSdk=21, maxSdk=28) protected void setColor(int color)
-
setMode
@Implementation(minSdk=21, maxSdk=28) protected void setMode(android.graphics.PorterDuff.Mode mode)
-
equals
@Implementation public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
@Implementation public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getColor
public int getColor()
- Returns:
- Returns the ARGB color used to tint the source pixels when this filter is applied.
-
getMode
public android.graphics.PorterDuff.Mode getMode()
- Returns:
- Returns the Porter-Duff mode used to composite this color filter's color with the source pixel when this filter is applied.
-
-