Class ShadowPaint

  • Direct Known Subclasses:
    ShadowTextPaint

    @Implements(value=android.graphics.Paint.class,
                looseSignatures=true)
    public class ShadowPaint
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowPaint()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void __constructor__​(android.graphics.Paint otherPaint)  
      protected int getAlpha()  
      android.graphics.Paint.Cap getCap()  
      protected int getColor()  
      protected android.graphics.ColorFilter getColorFilter()  
      protected int getFlags()  
      protected int getFontMetricsInt​(android.graphics.Paint.FontMetricsInt fmi)  
      android.graphics.Paint.Join getJoin()  
      protected android.graphics.PathEffect getPathEffect()  
      protected android.graphics.Shader getShader()  
      int getShadowColor()  
      float getShadowDx()  
      float getShadowDy()  
      float getShadowRadius()  
      protected android.graphics.Paint.Cap getStrokeCap()  
      protected android.graphics.Paint.Join getStrokeJoin()  
      protected float getStrokeWidth()  
      protected android.graphics.Paint.Style getStyle()  
      protected android.graphics.Paint.Align getTextAlign()  
      protected float getTextSize()  
      protected android.graphics.Typeface getTypeface()  
      float getWidth()  
      protected boolean isAntiAlias()  
      protected boolean isDither()  
      protected float measureText​(char[] text, int index, int count)  
      protected float measureText​(java.lang.CharSequence text, int start, int end)  
      protected float measureText​(java.lang.String text)  
      protected float measureText​(java.lang.String text, int start, int end)  
      protected int native_breakText​(char[] text, int index, int count, float maxWidth, float[] measuredWidth)  
      protected int native_breakText​(char[] text, int index, int count, float maxWidth, int bidiFlags, float[] measuredWidth)  
      protected static int native_breakText​(long native_object, long native_typeface, char[] text, int index, int count, float maxWidth, int bidiFlags, float[] measuredWidth)  
      protected static int native_breakText​(long native_object, long native_typeface, java.lang.String text, boolean measureForwards, float maxWidth, int bidiFlags, float[] measuredWidth)  
      protected int native_breakText​(java.lang.String text, boolean measureForwards, float maxWidth, float[] measuredWidth)  
      protected int native_breakText​(java.lang.String text, boolean measureForwards, float maxWidth, int bidiFlags, float[] measuredWidth)  
      protected static float native_getRunAdvance​(long nativeObject, long nativeTypeface, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset)  
      protected static float native_getTextRunAdvances​(int nativeObject, char[] text, int index, int count, int contextIndex, int contextCount, int flags, float[] advances, int advancesIndex)  
      protected static float native_getTextRunAdvances​(int nativeObject, char[] text, int index, int count, int contextIndex, int contextCount, int flags, float[] advances, int advancesIndex, int reserved)  
      protected static float native_getTextRunAdvances​(int nativeObject, java.lang.String text, int start, int end, int contextStart, int contextEnd, int flags, float[] advances, int advancesIndex)  
      protected static float native_getTextRunAdvances​(int nativeObject, java.lang.String text, int start, int end, int contextStart, int contextEnd, int flags, float[] advances, int advancesIndex, int reserved)  
      protected static float native_getTextRunAdvances​(long nativeObject, long nativeTypeface, char[] text, int index, int count, int contextIndex, int contextCount, boolean isRtl, float[] advances, int advancesIndex)  
      protected static float native_getTextRunAdvances​(long nativeObject, long nativeTypeface, java.lang.String text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex)  
      protected static int nBreakText​(long nObject, char[] text, int index, int count, float maxWidth, int bidiFlags, float[] measuredWidth)  
      protected static int nBreakText​(long nObject, long nTypeface, char[] text, int index, int count, float maxWidth, int bidiFlags, float[] measuredWidth)  
      protected static int nBreakText​(long nObject, long nTypeface, java.lang.String text, boolean measureForwards, float maxWidth, int bidiFlags, float[] measuredWidth)  
      protected static int nBreakText​(long nObject, java.lang.String text, boolean measureForwards, float maxWidth, int bidiFlags, float[] measuredWidth)  
      protected static int nGetFontMetricsInt​(long nativePaint, long nativeTypeface, android.graphics.Paint.FontMetricsInt fmi)  
      protected static int nGetFontMetricsInt​(long paintPtr, android.graphics.Paint.FontMetricsInt fmi)  
      protected int nGetFontMetricsInt​(java.lang.Object nativePaint, java.lang.Object nativeTypeface, java.lang.Object fmi)  
      protected static float nGetRunAdvance​(long paintPtr, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset)  
      protected static float nGetRunAdvance​(long paintPtr, long typefacePtr, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset)  
      protected static long nInit()  
      protected void setAlpha​(int alpha)  
      protected void setAntiAlias​(boolean antiAlias)  
      protected void setColor​(int color)  
      protected android.graphics.ColorFilter setColorFilter​(android.graphics.ColorFilter filter)  
      protected void setDither​(boolean dither)  
      protected void setFlags​(int flags)  
      protected android.graphics.PathEffect setPathEffect​(android.graphics.PathEffect effect)  
      protected android.graphics.Shader setShader​(android.graphics.Shader shader)  
      protected void setShadowLayer​(float radius, float dx, float dy, int color)  
      protected void setStrokeCap​(android.graphics.Paint.Cap cap)  
      protected void setStrokeJoin​(android.graphics.Paint.Join join)  
      protected void setStrokeWidth​(float width)  
      protected void setStyle​(android.graphics.Paint.Style style)  
      protected void setTextAlign​(android.graphics.Paint.Align align)  
      protected void setTextSize​(float textSize)  
      protected android.graphics.Typeface setTypeface​(android.graphics.Typeface typeface)  
      protected void setUnderlineText​(boolean underlineText)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowPaint

        public ShadowPaint()
    • Method Detail

      • __constructor__

        @Implementation
        protected void __constructor__​(android.graphics.Paint otherPaint)
      • nInit

        @Implementation(minSdk=24)
        protected static long nInit()
      • getFlags

        @Implementation
        protected int getFlags()
      • setFlags

        @Implementation
        protected void setFlags​(int flags)
      • setUnderlineText

        @Implementation
        protected void setUnderlineText​(boolean underlineText)
      • setShader

        @Implementation
        protected android.graphics.Shader setShader​(android.graphics.Shader shader)
      • getAlpha

        @Implementation
        protected int getAlpha()
      • setAlpha

        @Implementation
        protected void setAlpha​(int alpha)
      • getShader

        @Implementation
        protected android.graphics.Shader getShader()
      • setColor

        @Implementation
        protected void setColor​(int color)
      • getColor

        @Implementation
        protected int getColor()
      • setStyle

        @Implementation
        protected void setStyle​(android.graphics.Paint.Style style)
      • getStyle

        @Implementation
        protected android.graphics.Paint.Style getStyle()
      • setStrokeCap

        @Implementation
        protected void setStrokeCap​(android.graphics.Paint.Cap cap)
      • getStrokeCap

        @Implementation
        protected android.graphics.Paint.Cap getStrokeCap()
      • setStrokeJoin

        @Implementation
        protected void setStrokeJoin​(android.graphics.Paint.Join join)
      • getStrokeJoin

        @Implementation
        protected android.graphics.Paint.Join getStrokeJoin()
      • setStrokeWidth

        @Implementation
        protected void setStrokeWidth​(float width)
      • getStrokeWidth

        @Implementation
        protected float getStrokeWidth()
      • setShadowLayer

        @Implementation
        protected void setShadowLayer​(float radius,
                                      float dx,
                                      float dy,
                                      int color)
      • getTypeface

        @Implementation
        protected android.graphics.Typeface getTypeface()
      • setTypeface

        @Implementation
        protected android.graphics.Typeface setTypeface​(android.graphics.Typeface typeface)
      • getTextSize

        @Implementation
        protected float getTextSize()
      • setTextSize

        @Implementation
        protected void setTextSize​(float textSize)
      • setTextAlign

        @Implementation
        protected void setTextAlign​(android.graphics.Paint.Align align)
      • getTextAlign

        @Implementation
        protected android.graphics.Paint.Align getTextAlign()
      • getShadowRadius

        public float getShadowRadius()
        Returns:
        shadow radius (Paint related shadow, not Robolectric Shadow)
      • getShadowDx

        public float getShadowDx()
        Returns:
        shadow Dx (Paint related shadow, not Robolectric Shadow)
      • getShadowDy

        public float getShadowDy()
        Returns:
        shadow Dx (Paint related shadow, not Robolectric Shadow)
      • getShadowColor

        public int getShadowColor()
        Returns:
        shadow color (Paint related shadow, not Robolectric Shadow)
      • getCap

        public android.graphics.Paint.Cap getCap()
      • getJoin

        public android.graphics.Paint.Join getJoin()
      • getWidth

        public float getWidth()
      • getColorFilter

        @Implementation
        protected android.graphics.ColorFilter getColorFilter()
      • setColorFilter

        @Implementation
        protected android.graphics.ColorFilter setColorFilter​(android.graphics.ColorFilter filter)
      • setAntiAlias

        @Implementation
        protected void setAntiAlias​(boolean antiAlias)
      • setDither

        @Implementation
        protected void setDither​(boolean dither)
      • isDither

        @Implementation
        protected final boolean isDither()
      • isAntiAlias

        @Implementation
        protected final boolean isAntiAlias()
      • getPathEffect

        @Implementation
        protected android.graphics.PathEffect getPathEffect()
      • setPathEffect

        @Implementation
        protected android.graphics.PathEffect setPathEffect​(android.graphics.PathEffect effect)
      • measureText

        @Implementation
        protected float measureText​(java.lang.String text)
      • measureText

        @Implementation
        protected float measureText​(java.lang.CharSequence text,
                                    int start,
                                    int end)
      • measureText

        @Implementation
        protected float measureText​(java.lang.String text,
                                    int start,
                                    int end)
      • measureText

        @Implementation
        protected float measureText​(char[] text,
                                    int index,
                                    int count)
      • native_breakText

        @Implementation(maxSdk=17)
        protected int native_breakText​(char[] text,
                                       int index,
                                       int count,
                                       float maxWidth,
                                       float[] measuredWidth)
      • native_breakText

        @Implementation(minSdk=18,
                        maxSdk=20)
        protected int native_breakText​(char[] text,
                                       int index,
                                       int count,
                                       float maxWidth,
                                       int bidiFlags,
                                       float[] measuredWidth)
      • native_breakText

        @Implementation(minSdk=21,
                        maxSdk=23)
        protected static int native_breakText​(long native_object,
                                              long native_typeface,
                                              char[] text,
                                              int index,
                                              int count,
                                              float maxWidth,
                                              int bidiFlags,
                                              float[] measuredWidth)
      • nBreakText

        @Implementation(minSdk=24,
                        maxSdk=27)
        protected static int nBreakText​(long nObject,
                                        long nTypeface,
                                        char[] text,
                                        int index,
                                        int count,
                                        float maxWidth,
                                        int bidiFlags,
                                        float[] measuredWidth)
      • nBreakText

        @Implementation(minSdk=28)
        protected static int nBreakText​(long nObject,
                                        char[] text,
                                        int index,
                                        int count,
                                        float maxWidth,
                                        int bidiFlags,
                                        float[] measuredWidth)
      • native_breakText

        @Implementation(maxSdk=17)
        protected int native_breakText​(java.lang.String text,
                                       boolean measureForwards,
                                       float maxWidth,
                                       float[] measuredWidth)
      • native_breakText

        @Implementation(minSdk=18,
                        maxSdk=20)
        protected int native_breakText​(java.lang.String text,
                                       boolean measureForwards,
                                       float maxWidth,
                                       int bidiFlags,
                                       float[] measuredWidth)
      • native_breakText

        @Implementation(minSdk=21,
                        maxSdk=23)
        protected static int native_breakText​(long native_object,
                                              long native_typeface,
                                              java.lang.String text,
                                              boolean measureForwards,
                                              float maxWidth,
                                              int bidiFlags,
                                              float[] measuredWidth)
      • nBreakText

        @Implementation(minSdk=24,
                        maxSdk=27)
        protected static int nBreakText​(long nObject,
                                        long nTypeface,
                                        java.lang.String text,
                                        boolean measureForwards,
                                        float maxWidth,
                                        int bidiFlags,
                                        float[] measuredWidth)
      • nBreakText

        @Implementation(minSdk=28)
        protected static int nBreakText​(long nObject,
                                        java.lang.String text,
                                        boolean measureForwards,
                                        float maxWidth,
                                        int bidiFlags,
                                        float[] measuredWidth)
      • nGetFontMetricsInt

        @Implementation(minSdk=28)
        protected static int nGetFontMetricsInt​(long paintPtr,
                                                android.graphics.Paint.FontMetricsInt fmi)
      • nGetFontMetricsInt

        @Implementation(minSdk=26,
                        maxSdk=27)
        protected static int nGetFontMetricsInt​(long nativePaint,
                                                long nativeTypeface,
                                                android.graphics.Paint.FontMetricsInt fmi)
      • nGetFontMetricsInt

        @Implementation(minSdk=24,
                        maxSdk=25)
        protected int nGetFontMetricsInt​(java.lang.Object nativePaint,
                                         java.lang.Object nativeTypeface,
                                         java.lang.Object fmi)
      • getFontMetricsInt

        @Implementation(maxSdk=23)
        protected int getFontMetricsInt​(android.graphics.Paint.FontMetricsInt fmi)
      • nGetRunAdvance

        @Implementation(minSdk=28)
        protected static float nGetRunAdvance​(long paintPtr,
                                              char[] text,
                                              int start,
                                              int end,
                                              int contextStart,
                                              int contextEnd,
                                              boolean isRtl,
                                              int offset)
      • nGetRunAdvance

        @Implementation(minSdk=24,
                        maxSdk=27)
        protected static float nGetRunAdvance​(long paintPtr,
                                              long typefacePtr,
                                              char[] text,
                                              int start,
                                              int end,
                                              int contextStart,
                                              int contextEnd,
                                              boolean isRtl,
                                              int offset)
      • native_getRunAdvance

        @Implementation(minSdk=23,
                        maxSdk=23)
        protected static float native_getRunAdvance​(long nativeObject,
                                                    long nativeTypeface,
                                                    char[] text,
                                                    int start,
                                                    int end,
                                                    int contextStart,
                                                    int contextEnd,
                                                    boolean isRtl,
                                                    int offset)
      • native_getTextRunAdvances

        @Implementation(minSdk=20,
                        maxSdk=22)
        protected static float native_getTextRunAdvances​(long nativeObject,
                                                         long nativeTypeface,
                                                         char[] text,
                                                         int index,
                                                         int count,
                                                         int contextIndex,
                                                         int contextCount,
                                                         boolean isRtl,
                                                         float[] advances,
                                                         int advancesIndex)
      • native_getTextRunAdvances

        @Implementation(minSdk=20,
                        maxSdk=22)
        protected static float native_getTextRunAdvances​(long nativeObject,
                                                         long nativeTypeface,
                                                         java.lang.String text,
                                                         int start,
                                                         int end,
                                                         int contextStart,
                                                         int contextEnd,
                                                         boolean isRtl,
                                                         float[] advances,
                                                         int advancesIndex)
      • native_getTextRunAdvances

        @Implementation(minSdk=18,
                        maxSdk=19)
        protected static float native_getTextRunAdvances​(int nativeObject,
                                                         char[] text,
                                                         int index,
                                                         int count,
                                                         int contextIndex,
                                                         int contextCount,
                                                         int flags,
                                                         float[] advances,
                                                         int advancesIndex)
      • native_getTextRunAdvances

        @Implementation(minSdk=18,
                        maxSdk=19)
        protected static float native_getTextRunAdvances​(int nativeObject,
                                                         java.lang.String text,
                                                         int start,
                                                         int end,
                                                         int contextStart,
                                                         int contextEnd,
                                                         int flags,
                                                         float[] advances,
                                                         int advancesIndex)
      • native_getTextRunAdvances

        @Implementation(maxSdk=17)
        protected static float native_getTextRunAdvances​(int nativeObject,
                                                         char[] text,
                                                         int index,
                                                         int count,
                                                         int contextIndex,
                                                         int contextCount,
                                                         int flags,
                                                         float[] advances,
                                                         int advancesIndex,
                                                         int reserved)
      • native_getTextRunAdvances

        @Implementation(maxSdk=17)
        protected static float native_getTextRunAdvances​(int nativeObject,
                                                         java.lang.String text,
                                                         int start,
                                                         int end,
                                                         int contextStart,
                                                         int contextEnd,
                                                         int flags,
                                                         float[] advances,
                                                         int advancesIndex,
                                                         int reserved)