/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringDocumentAttributes setDefaultAttributes(NSAttributedStringAttributes defaultAttributes) { set(NSAttributedStringDocumentAttribute.DefaultAttributes, defaultAttributes.getDictionary()); return this; } /**
public void addAttributes(NSAttributedStringAttributes attrs, @ByVal NSRange range) { if (attrs == null) { throw new NullPointerException("attrs"); } addAttributes(attrs.getDictionary(), range); } public void addAttributes(CMTextMarkupAttributes attrs, @ByVal NSRange range) {
/** * @since Available in iOS 5.0 and later. */ public void setTitleTextAttributes(NSAttributedStringAttributes attributes, UIControlState state) { if (attributes == null) { setTitleTextAttributesDictionary(null, state); } else { setTitleTextAttributesDictionary(attributes.getDictionary(), state); } } /**
/** * @since Available in iOS 6.0 and later. */ public void setTypingAttributes(NSAttributedStringAttributes v) { if (v == null) { setTypingAttributesDictionary(null); } else { setTypingAttributesDictionary(v.getDictionary()); } } /**
/** * @since Available in iOS 7.0 and later. */ public void setDefaultTextAttributes(NSAttributedStringAttributes v) { if (v == null) { setDefaultTextAttributesDictionary(null); } else { setDefaultTextAttributesDictionary(v.getDictionary()); } } /**
/** * @since Available in iOS 5.0 and later. */ public void setTitleTextAttributes(NSAttributedStringAttributes v) { if (v == null) { setTitleTextAttributesDictionary(null); } else { setTitleTextAttributesDictionary(v.getDictionary()); } } /**
/** * @since Available in iOS 5.0 and later. */ public void setTitleTextAttributes(NSAttributedStringAttributes attributes, UIControlState state) { if (attributes == null) { setTitleTextAttributesDictionary(null, state); } else { setTitleTextAttributesDictionary(attributes.getDictionary(), state); } } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public CGSize getSize(NSAttributedStringAttributes attrs) { if (attrs == null) { throw new NullPointerException("attrs"); } return NSStringExtensions.getSize(this.getHandle(), attrs.getDictionary()); } /**
@WeaklyLinked public void setTextAttributesForNegativeValues(NSAttributedStringAttributes v) { if (v == null) { setTextAttributesDictionaryForNegativeValues(null); } else { setTextAttributesDictionaryForNegativeValues(v.getDictionary()); } } @WeaklyLinked
@WeaklyLinked public void setTextAttributesForNaN(NSAttributedStringAttributes v) { if (v == null) { setTextAttributesDictionaryForNaN(null); } else { setTextAttributesDictionaryForNaN(v.getDictionary()); } } @WeaklyLinked
@WeaklyLinked public void setTextAttributesForPositiveInfinity(NSAttributedStringAttributes v) { if (v == null) { setTextAttributesDictionaryForPositiveInfinity(null); } else { setTextAttributesDictionaryForPositiveInfinity(v.getDictionary()); } } @WeaklyLinked
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, options, attributes.getDictionary(), context); } /**
@WeaklyLinked public void setTextAttributesForPositiveValues(NSAttributedStringAttributes v) { if (v == null) { setTextAttributesDictionaryForPositiveValues(null); } else { setTextAttributesDictionaryForPositiveValues(v.getDictionary()); } } @WeaklyLinked
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSAttributedStringAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs.getDictionary()); } /**
@WeaklyLinked public void setTextAttributesForZero(NSAttributedStringAttributes v) { if (v == null) { setTextAttributesDictionaryForZero(null); } else { setTextAttributesDictionaryForZero(v.getDictionary()); } } @WeaklyLinked
@WeaklyLinked public static CFAttributedString create(CFAllocator alloc, String str, NSAttributedStringAttributes attributes) { if (attributes == null) { return create(alloc, str, (CFDictionary)null); } return create(alloc, str, attributes.getDictionary().as(CFDictionary.class)); } @WeaklyLinked
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public void draw(CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context) { if (attributes == null) { NSStringExtensions.draw(this.getHandle(), rect, options, null, context); } else { NSStringExtensions.draw(this.getHandle(), rect, options, attributes.getDictionary(), context); } } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public void draw(CGRect rect, NSAttributedStringAttributes attrs) { if (attrs == null) { NSStringExtensions.draw(this.getHandle(), rect, (NSDictionary<NSString, NSObject>)null); } else { NSStringExtensions.draw(this.getHandle(), rect, attrs.getDictionary()); } } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context) { if (attributes == null) { return NSStringExtensions.getBoundingRect(this.getHandle(), size, options, null, context); } return NSStringExtensions.getBoundingRect(this.getHandle(), size, options, attributes.getDictionary(), context); } /**
@WeaklyLinked public void setAttributes(@ByVal CFRange range, NSAttributedStringAttributes replacement, boolean clearOtherAttributes) { if (replacement == null) { setAttributesDictionary(range, null, clearOtherAttributes); } else { setAttributesDictionary(range, replacement.getDictionary().as(CFDictionary.class), clearOtherAttributes); } } @WeaklyLinked