/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setFont(UIFont font) { set(NSAttributedStringAttribute.Font, font); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setLink(NSURL link) { set(NSAttributedStringAttribute.Link, link); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setForegroundColor(UIColor foregroundColor) { set(NSAttributedStringAttribute.ForegroundColor, foregroundColor); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setStrokeColor(UIColor strokeColor) { set(NSAttributedStringAttribute.StrokeColor, strokeColor); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setShadow(NSShadow shadow) { set(NSAttributedStringAttribute.Shadow, shadow); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setAttachment(NSTextAttachment attachment) { set(NSAttributedStringAttribute.Attachment, attachment); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setStrikethroughColor(UIColor strikethroughColor) { set(NSAttributedStringAttribute.StrikethroughColor, strikethroughColor); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setParagraphStyle(NSParagraphStyle paragraphStyle) { set(NSAttributedStringAttribute.ParagraphStyle, paragraphStyle); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setBackgroundColor(UIColor backgroundColor) { set(NSAttributedStringAttribute.BackgroundColor, backgroundColor); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setStrokeWidth(double strokeWidth) { set(NSAttributedStringAttribute.StrokeWidth, NSNumber.valueOf(strokeWidth)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setExpansion(double expansion) { set(NSAttributedStringAttribute.Expansion, NSNumber.valueOf(expansion)); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setVerticalText(boolean verticalText) { set(NSAttributedStringAttribute.VerticalGlyphForm, NSNumber.valueOf(verticalText)); return this; } /*</methods>*/
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setSpeechPunctuation(boolean speechPunctuation) { set(NSAttributedStringAttribute.SpeechPunctuation, NSNumber.valueOf(speechPunctuation)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setTextEffect(NSTextEffect textEffect) { set(NSAttributedStringAttribute.TextEffect, textEffect.value()); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setBaselineOffset(double baselineOffset) { set(NSAttributedStringAttribute.BaselineOffset, NSNumber.valueOf(baselineOffset)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setObliqueness(double obliqueness) { set(NSAttributedStringAttribute.Obliqueness, NSNumber.valueOf(obliqueness)); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setLigature(NSLigature ligature) { set(NSAttributedStringAttribute.Ligature, NSNumber.valueOf(ligature.ordinal())); return this; }
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setUnderlineStyle(NSUnderlineStyle underlineStyle) { set(NSAttributedStringAttribute.UnderlineStyle, NSNumber.valueOf(underlineStyle.value())); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes setStrikethroughStyle(NSUnderlineStyle strikethroughStyle) { set(NSAttributedStringAttribute.StrikethroughStyle, NSNumber.valueOf(strikethroughStyle.value())); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes setWritingDirections(List<NSTextDirection> writingDirections) { NSArray<NSNumber> list = new NSMutableArray<>(); for (NSTextDirection n : writingDirections) { list.add(NSNumber.valueOf(n.ordinal())); } set(NSAttributedStringAttribute.WritingDirection, list); return this; } /**