PTAnnotStyleDelegate
@protocol PTAnnotStyleDelegate <NSObject>
The methods declared by the PTAnnotStyleDelegate protocol allow the adopting delegate
to respond to messages from the PTAnnotStyle
class.
-
Tells the delegate that the annotation color changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle colorDidChange:(nonnull UIColor *)color;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, colorDidChange color: UIColor)
-
Tells the delegate that the annotation stroke color changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle strokeColorDidChange:(nonnull UIColor *)strokeColor;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, strokeColorDidChange strokeColor: UIColor)
-
Tells the delegate that the annotation fill color changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle fillColorDidChange:(nonnull UIColor *)fillColor;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, fillColorDidChange fillColor: UIColor)
-
Tells the delegate that the annotation text color changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle textColorDidChange:(nonnull UIColor *)textColor;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, textColorDidChange textColor: UIColor)
-
Tells the delegate that the annotation line/border thickness changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle thicknessDidChange:(CGFloat)thickness;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, thicknessDidChange thickness: CGFloat)
-
Tells the delegate that the annotation opacity changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle opacityDidChange:(CGFloat)opacity;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, opacityDidChange opacity: CGFloat)
-
Tells the delegate that the annotation stroke style changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle strokeStyleDidChange:(PTStrokeStyle)strokeStyle;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, strokeStyleDidChange strokeStyle: PTAnnotStyle.StrokeStyle)
-
Tells the delegate that the annotation border effect changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle borderEffectDidChange:(PTBorderEffect)borderEffect;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, borderEffectDidChange borderEffect: PTBorderEffect)
-
Tells the delegate that the annotation border effect intensity changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle borderEffectIntensityDidChange:(double)borderEffectIntensity;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, borderEffectIntensityDidChange borderEffectIntensity: Double)
-
Tells the delegate that the annotation text size changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle textSizeDidChange:(CGFloat)textSize;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, textSizeDidChange textSize: CGFloat)
-
Tells the delegate that the annotation label changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle labelDidChange:(nullable NSString *)label;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, labelDidChange label: String?)
-
Tells the delegate that the annotation measurement scale changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle measurementScaleDidChange:(nonnull PTMeasurementScale *)ruler;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, measurementScaleDidChange ruler: PTMeasurementScale)
-
Tells the delegate that the measurement tool snapping was toggled.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle snappingToggled:(BOOL)snappingEnabled;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, snappingToggled snappingEnabled: Bool)
-
Tells the delegate that the free text font descriptor changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle fontNameDidChange:(nonnull NSString *)fontName;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, fontNameDidChange fontName: String)
-
Tells the delegate that the line end styles changed.
Declaration
Objective-C
- (void)annotStyle:(nonnull PTAnnotStyle *)annotStyle lineEndStylesDidChange:(nonnull NSArray<NSNumber *> *)lineEndStyles;
Swift
optional func annotStyle(_ annotStyle: PTAnnotStyle, lineEndStylesDidChange lineEndStyles: [NSNumber])