Class ShadowPaint

    • Constructor Detail

      • ShadowPaint

        public ShadowPaint()
    • Method Detail

      • setUnderlineText

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

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

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

        @Implementation
        protected void setTextSize​(float textSize)
      • 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()
      • setAntiAlias

        @Implementation
        protected void setAntiAlias​(boolean antiAlias)
      • 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)
      • 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)