Class ShadowPaint

    • Constructor Detail

      • ShadowPaint

        public ShadowPaint()
    • Method Detail

      • __constructor__

        @Implementation
        protected void __constructor__​(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 Shader setShader​(Shader shader)
      • getAlpha

        @Implementation
        protected int getAlpha()
      • setAlpha

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

        @Implementation
        protected Shader getShader()
      • setColor

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

        @Implementation
        protected int getColor()
      • setStyle

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

        @Implementation
        protected Paint.Style getStyle()
      • setStrokeCap

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

        @Implementation
        protected Paint.Cap getStrokeCap()
      • setStrokeJoin

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

        @Implementation
        protected 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 Typeface getTypeface()
      • setTypeface

        @Implementation
        protected Typeface setTypeface​(Typeface typeface)
      • getTextSize

        @Implementation
        protected float getTextSize()
      • setTextSize

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

        @Implementation
        protected float getTextScaleX()
      • setTextScaleX

        @Implementation
        protected void setTextScaleX​(float scaleX)
      • getTextSkewX

        @Implementation
        protected float getTextSkewX()
      • setTextSkewX

        @Implementation
        protected void setTextSkewX​(float skewX)
      • getLetterSpacing

        @Implementation(minSdk=21)
        protected float getLetterSpacing()
      • setLetterSpacing

        @Implementation(minSdk=21)
        protected void setLetterSpacing​(float letterSpacing)
      • getWordSpacing

        @Implementation(minSdk=29)
        protected float getWordSpacing()
      • setWordSpacing

        @Implementation(minSdk=29)
        protected void setWordSpacing​(float wordSpacing)
      • setTextAlign

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

        @Implementation
        protected 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)
      • getWidth

        public float getWidth()
      • getColorFilter

        @Implementation
        protected ColorFilter getColorFilter()
      • 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 PathEffect getPathEffect()
      • measureText

        @Implementation
        protected float measureText​(String text)
      • measureText

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

        @Implementation
        protected float measureText​(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​(String text,
                                       boolean measureForwards,
                                       float maxWidth,
                                       float[] measuredWidth)
      • native_breakText

        @Implementation(minSdk=18,
                        maxSdk=20)
        protected int native_breakText​(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,
                                              String text,
                                              boolean measureForwards,
                                              float maxWidth,
                                              int bidiFlags,
                                              float[] measuredWidth)
      • nBreakText

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

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

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

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

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

        @Implementation(maxSdk=23)
        protected int getFontMetricsInt​(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,
                                                         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,
                                                         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,
                                                         String text,
                                                         int start,
                                                         int end,
                                                         int contextStart,
                                                         int contextEnd,
                                                         int flags,
                                                         float[] advances,
                                                         int advancesIndex,
                                                         int reserved)