Class CATextLayer

    • Constructor Detail

      • CATextLayer

        protected CATextLayer​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CATextLayer allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultActionForKey

        @Nullable
        public static @Nullable CAAction defaultActionForKey​(@NotNull
                                                             @NotNull java.lang.String event)
      • defaultValueForKey

        @Nullable
        public static @Nullable java.lang.Object defaultValueForKey​(@NotNull
                                                                    @NotNull java.lang.String key)
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • needsDisplayForKey

        public static boolean needsDisplayForKey​(@NotNull
                                                 @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • alignmentMode

        @NotNull
        public @NotNull java.lang.String alignmentMode()
        Describes how individual lines of text are aligned within the layer bounds. The possible options are `natural', `left', `right', `center' and `justified'. Defaults to `natural'.
      • allowsFontSubpixelQuantization

        public boolean allowsFontSubpixelQuantization()
        Sets allowsFontSubpixelQuantization parameter of CGContextRef passed to the -drawInContext: method. Defaults to NO.
      • font

        @Nullable
        public @Nullable org.moe.natj.general.ptr.ConstVoidPtr font()
        The font to use, currently may be either a CTFontRef (toll-free bridged from UIFont), a CGFontRef, or a string naming the font. Defaults to the Helvetica font. Only used when the `string' property is not an NSAttributedString.
      • fontSize

        public double fontSize()
        The font size. Defaults to 36. Only used when the `string' property is not an NSAttributedString. Animatable (Mac OS X 10.6 and later.)
      • foregroundColor

        @Nullable
        public @Nullable CGColorRef foregroundColor()
        The color object used to draw the text. Defaults to opaque white. Only used when the `string' property is not an NSAttributedString. Animatable (Mac OS X 10.6 and later.)
      • initWithLayer

        public CATextLayer initWithLayer​(@NotNull
                                         @NotNull java.lang.Object layer)
        Description copied from class: CALayer
        This initializer is used by CoreAnimation to create shadow copies of layers, e.g. for use as presentation layers. Subclasses can override this method to copy their instance variables into the presentation layer (subclasses should call the superclass afterwards). Calling this method in any other situation will result in undefined behavior.
        Overrides:
        initWithLayer in class CALayer
      • isWrapped

        public boolean isWrapped()
        When true the string is wrapped to fit within the layer bounds. Defaults to NO.
      • setWrapped

        public void setWrapped​(boolean value)
        When true the string is wrapped to fit within the layer bounds. Defaults to NO.
      • setAlignmentMode

        public void setAlignmentMode​(@NotNull
                                     @NotNull java.lang.String value)
        Describes how individual lines of text are aligned within the layer bounds. The possible options are `natural', `left', `right', `center' and `justified'. Defaults to `natural'.
      • setAllowsFontSubpixelQuantization

        public void setAllowsFontSubpixelQuantization​(boolean value)
        Sets allowsFontSubpixelQuantization parameter of CGContextRef passed to the -drawInContext: method. Defaults to NO.
      • setFont

        public void setFont​(@Nullable
                            @Nullable org.moe.natj.general.ptr.ConstVoidPtr value)
        The font to use, currently may be either a CTFontRef (toll-free bridged from UIFont), a CGFontRef, or a string naming the font. Defaults to the Helvetica font. Only used when the `string' property is not an NSAttributedString.
      • setFontSize

        public void setFontSize​(double value)
        The font size. Defaults to 36. Only used when the `string' property is not an NSAttributedString. Animatable (Mac OS X 10.6 and later.)
      • setForegroundColor

        public void setForegroundColor​(@Nullable
                                       @Nullable CGColorRef value)
        The color object used to draw the text. Defaults to opaque white. Only used when the `string' property is not an NSAttributedString. Animatable (Mac OS X 10.6 and later.)
      • setString

        public void setString​(@Nullable
                              @Nullable java.lang.Object value)
        The text to be rendered, should be either an NSString or an NSAttributedString. Defaults to nil.
      • setTruncationMode

        public void setTruncationMode​(@NotNull
                                      @NotNull java.lang.String value)
        Describes how the string is truncated to fit within the layer bounds. The possible options are `none', `start', `middle' and `end'. Defaults to `none'.
      • string

        @Nullable
        public @Nullable java.lang.Object string()
        The text to be rendered, should be either an NSString or an NSAttributedString. Defaults to nil.
      • truncationMode

        @NotNull
        public @NotNull java.lang.String truncationMode()
        Describes how the string is truncated to fit within the layer bounds. The possible options are `none', `start', `middle' and `end'. Defaults to `none'.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class CALayer
      • cornerCurveExpansionFactor

        public static double cornerCurveExpansionFactor​(@NotNull
                                                        @NotNull java.lang.String curve)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.