Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTLineStyle.h
Go to the documentation of this file.
1 #import "CPTDefinitions.h"
2 
4 
5 @class CPTColor;
6 @class CPTFill;
7 @class CPTGradient;
8 @class CPTLineStyle;
9 
14 
19 
21 
22 @property (nonatomic, readonly) CGLineCap lineCap;
23 @property (nonatomic, readonly) CGLineJoin lineJoin;
24 @property (nonatomic, readonly) CGFloat miterLimit;
25 @property (nonatomic, readonly) CGFloat lineWidth;
26 @property (nonatomic, readonly, nullable) CPTNumberArray *dashPattern;
27 @property (nonatomic, readonly) CGFloat patternPhase;
28 @property (nonatomic, readonly, nullable) CPTColor *lineColor;
29 @property (nonatomic, readonly, nullable) CPTFill *lineFill;
30 @property (nonatomic, readonly, nullable) CPTGradient *lineGradient;
31 @property (nonatomic, readonly, getter = isOpaque) BOOL opaque;
32 
35 +(nonnull instancetype)lineStyle;
36 +(nonnull instancetype)lineStyleWithStyle:(nullable CPTLineStyle *)lineStyle;
38 
41 -(void)setLineStyleInContext:(nonnull CGContextRef)context;
42 -(void)strokePathInContext:(nonnull CGContextRef)context;
43 -(void)strokeRect:(CGRect)rect inContext:(nonnull CGContextRef)context;
45 
46 @end
CPTLineStyle::lineColor
CPTColor * lineColor
The current stroke color in a context. Default is solid black.
Definition: CPTLineStyle.h:28
CPTLineStyle
Immutable wrapper for various line drawing properties. Create a CPTMutableLineStyle if you want to cu...
Definition: CPTLineStyle.h:20
CPTLineStyle::miterLimit
CGFloat miterLimit
The miter limit for the joins of connected lines in a graphics context. Default is 10....
Definition: CPTLineStyle.h:24
NSArray
CPTLineStyle::lineWidth
CGFloat lineWidth
The line width for a graphics context. Default is 1.0.
Definition: CPTLineStyle.h:25
CPTLineStyle::dashPattern
CPTNumberArray * dashPattern
The dash-and-space pattern for the line. Default is nil.
Definition: CPTLineStyle.h:26
CPTLineStyle::lineJoin
CGLineJoin lineJoin
The style for the joins of connected lines in a graphics context. Default is kCGLineJoinMiter.
Definition: CPTLineStyle.h:23
CPTLineStyle::opaque
BOOL opaque
If YES, a line drawn using the line style is completely opaque.
Definition: CPTLineStyle.h:31
CPTMutableLineStyleArray
NSMutableArray< CPTLineStyle * > CPTMutableLineStyleArray
A mutable array of line styles.
Definition: CPTLineStyle.h:18
CPTColor
An immutable color.
Definition: CPTColor.h:3
CPTFill
Draws area fills.
Definition: CPTFill.h:18
+[CPTLineStyle lineStyle]
nonnull instancetype lineStyle()
Creates and returns a new CPTLineStyle instance.
Definition: CPTLineStyle.m:108
CPTLineStyle::lineCap
CGLineCap lineCap
The style for the endpoints of lines drawn in a graphics context. Default is kCGLineCapButt.
Definition: CPTLineStyle.h:22
CGContextRef
typedef CGContextRef
CPTDefinitions.h
CPTGradient
Draws color gradient fills.
Definition: CPTGradient.h:39
CPTLineStyle::lineFill
CPTFill * lineFill
The current line fill. Default is nil.
Definition: CPTLineStyle.h:29
CGRect
typedef CGRect
CGLineCap
typedef CGLineCap
CPTLineStyleArray
NSArray< CPTLineStyle * > CPTLineStyleArray
An array of line styles.
Definition: CPTLineStyle.h:8
NSSecureCoding-p
CPTLineStyle::lineGradient
CPTGradient * lineGradient
The current line gradient fill. Default is nil.
Definition: CPTLineStyle.h:30
CPTLineStyle::patternPhase
CGFloat patternPhase
The starting phase of the line dash pattern. Default is 0.0.
Definition: CPTLineStyle.h:27