Class TextStyle

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class TextStyle
    extends Managed
    • Constructor Detail

      • TextStyle

        @Internal
        public TextStyle​(long ptr)
      • TextStyle

        public TextStyle()
    • Method Detail

      • getColor

        public int getColor()
      • setColor

        public TextStyle setColor​(int color)
      • getForeground

        @Nullable
        public @Nullable Paint getForeground()
      • setForeground

        public TextStyle setForeground​(@Nullable
                                       @Nullable Paint paint)
      • getBackground

        @Nullable
        public @Nullable Paint getBackground()
      • setBackground

        public TextStyle setBackground​(@Nullable
                                       @Nullable Paint paint)
      • getFontStyle

        public FontStyle getFontStyle()
      • getShadows

        public Shadow[] getShadows()
      • clearShadows

        public TextStyle clearShadows()
      • getFontFeatures

        public FontFeature[] getFontFeatures()
      • clearFontFeatures

        public TextStyle clearFontFeatures()
      • getFontSize

        public float getFontSize()
      • setFontSize

        public TextStyle setFontSize​(float size)
      • getFontFamilies

        public java.lang.String[] getFontFamilies()
      • setFontFamily

        public TextStyle setFontFamily​(java.lang.String family)
      • setFontFamilies

        public TextStyle setFontFamilies​(java.lang.String[] families)
      • getHeight

        @Nullable
        public @Nullable java.lang.Float getHeight()
      • setHeight

        public TextStyle setHeight​(@Nullable
                                   @Nullable java.lang.Float height)
      • getLetterSpacing

        public float getLetterSpacing()
      • setLetterSpacing

        public TextStyle setLetterSpacing​(float letterSpacing)
      • getWordSpacing

        public float getWordSpacing()
      • setWordSpacing

        public TextStyle setWordSpacing​(float wordSpacing)
      • getTypeface

        public Typeface getTypeface()
      • getLocale

        public java.lang.String getLocale()
      • setLocale

        public TextStyle setLocale​(java.lang.String locale)
      • isPlaceholder

        public boolean isPlaceholder()
      • setPlaceholder

        public TextStyle setPlaceholder()
      • _nGetFinalizer

        public static long _nGetFinalizer()
      • _nMake

        public static long _nMake()
      • _nEquals

        public static boolean _nEquals​(long ptr,
                                       long otherPtr)
      • _nAttributeEquals

        public static boolean _nAttributeEquals​(long ptr,
                                                int attribute,
                                                long otherPtr)
      • _nGetColor

        public static int _nGetColor​(long ptr)
      • _nSetColor

        public static void _nSetColor​(long ptr,
                                      int color)
      • _nGetForeground

        public static long _nGetForeground​(long ptr)
      • _nSetForeground

        public static void _nSetForeground​(long ptr,
                                           long paintPtr)
      • _nGetBackground

        public static long _nGetBackground​(long ptr)
      • _nSetBackground

        public static void _nSetBackground​(long ptr,
                                           long paintPtr)
      • _nGetDecorationStyle

        public static DecorationStyle _nGetDecorationStyle​(long ptr)
      • _nSetDecorationStyle

        public static void _nSetDecorationStyle​(long ptr,
                                                boolean underline,
                                                boolean overline,
                                                boolean lineThrough,
                                                boolean gaps,
                                                int color,
                                                int style,
                                                float thicknessMultiplier)
      • _nGetFontStyle

        public static int _nGetFontStyle​(long ptr)
      • _nSetFontStyle

        public static void _nSetFontStyle​(long ptr,
                                          int fontStyle)
      • _nGetShadows

        public static Shadow[] _nGetShadows​(long ptr)
      • _nAddShadow

        public static void _nAddShadow​(long ptr,
                                       int color,
                                       float offsetX,
                                       float offsetY,
                                       double blurSigma)
      • _nClearShadows

        public static void _nClearShadows​(long ptr)
      • _nGetFontFeatures

        public static FontFeature[] _nGetFontFeatures​(long ptr)
      • _nAddFontFeature

        public static void _nAddFontFeature​(long ptr,
                                            java.lang.String name,
                                            int value)
      • _nClearFontFeatures

        public static void _nClearFontFeatures​(long ptr)
      • _nGetFontSize

        public static float _nGetFontSize​(long ptr)
      • _nSetFontSize

        public static void _nSetFontSize​(long ptr,
                                         float size)
      • _nGetFontFamilies

        public static java.lang.String[] _nGetFontFamilies​(long ptr)
      • _nSetFontFamilies

        public static void _nSetFontFamilies​(long ptr,
                                             java.lang.String[] families)
      • _nGetHeight

        public static java.lang.Float _nGetHeight​(long ptr)
      • _nSetHeight

        public static void _nSetHeight​(long ptr,
                                       boolean override,
                                       float height)
      • _nGetLetterSpacing

        public static float _nGetLetterSpacing​(long ptr)
      • _nSetLetterSpacing

        public static void _nSetLetterSpacing​(long ptr,
                                              float letterSpacing)
      • _nGetWordSpacing

        public static float _nGetWordSpacing​(long ptr)
      • _nSetWordSpacing

        public static void _nSetWordSpacing​(long ptr,
                                            float wordSpacing)
      • _nGetTypeface

        public static long _nGetTypeface​(long ptr)
      • _nSetTypeface

        public static void _nSetTypeface​(long ptr,
                                         long typefacePtr)
      • _nGetLocale

        public static java.lang.String _nGetLocale​(long ptr)
      • _nSetLocale

        public static void _nSetLocale​(long ptr,
                                       java.lang.String locale)
      • _nGetBaselineMode

        public static int _nGetBaselineMode​(long ptr)
      • _nSetBaselineMode

        public static void _nSetBaselineMode​(long ptr,
                                             int mode)
      • _nGetFontMetrics

        public static FontMetrics _nGetFontMetrics​(long ptr)
      • _nIsPlaceholder

        public static boolean _nIsPlaceholder​(long ptr)
      • _nSetPlaceholder

        public static void _nSetPlaceholder​(long ptr)