Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTLineCap.h
Go to the documentation of this file.
1 
3 @class CPTLineStyle;
4 @class CPTFill;
5 
9 typedef NS_ENUM (NSInteger, CPTLineCapType) {
23 };
24 
26 
27 @property (nonatomic, readwrite, assign) CGSize size;
28 @property (nonatomic, readwrite, assign) CPTLineCapType lineCapType;
29 @property (nonatomic, readwrite, strong, nullable) CPTLineStyle *lineStyle;
30 @property (nonatomic, readwrite, strong, nullable) CPTFill *fill;
31 @property (nonatomic, readwrite, assign, nullable) CGPathRef customLineCapPath;
32 @property (nonatomic, readwrite, assign) BOOL usesEvenOddClipRule;
33 
36 +(nonnull instancetype)lineCap;
37 +(nonnull instancetype)openArrowPlotLineCap;
38 +(nonnull instancetype)solidArrowPlotLineCap;
39 +(nonnull instancetype)sweptArrowPlotLineCap;
40 +(nonnull instancetype)rectanglePlotLineCap;
41 +(nonnull instancetype)ellipsePlotLineCap;
42 +(nonnull instancetype)diamondPlotLineCap;
43 +(nonnull instancetype)pentagonPlotLineCap;
44 +(nonnull instancetype)hexagonPlotLineCap;
45 +(nonnull instancetype)barPlotLineCap;
46 +(nonnull instancetype)crossPlotLineCap;
47 +(nonnull instancetype)snowPlotLineCap;
48 +(nonnull instancetype)customLineCapWithPath:(nullable CGPathRef)aPath;
50 
53 -(void)renderAsVectorInContext:(nonnull CGContextRef)context atPoint:(CGPoint)center inDirection:(CGPoint)direction;
55 
56 @end
CPTLineStyle
Immutable wrapper for various line drawing properties. Create a CPTMutableLineStyle if you want to cu...
Definition: CPTLineStyle.h:20
CPTLineCap::usesEvenOddClipRule
BOOL usesEvenOddClipRule
If YES, the even-odd rule is used to draw the line cap, otherwise the non-zero winding number rule is...
Definition: CPTLineCap.h:32
NSObject
CPTLineCapTypeSnow
@ CPTLineCapTypeSnow
Snowflake line cap.
Definition: CPTLineCap.h:21
+[CPTLineCap sweptArrowPlotLineCap]
nonnull instancetype sweptArrowPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSwept...
Definition: CPTLineCap.m:246
+[CPTLineCap solidArrowPlotLineCap]
nonnull instancetype solidArrowPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSolid...
Definition: CPTLineCap.m:234
+[CPTLineCap rectanglePlotLineCap]
nonnull instancetype rectanglePlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeRecta...
Definition: CPTLineCap.m:258
CPTLineCap::fill
CPTFill * fill
The fill for the interior of the line cap. If nil, the symbol is not filled.
Definition: CPTLineCap.h:30
+[CPTLineCap lineCap]
nonnull instancetype lineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeNone.
Definition: CPTLineCap.m:210
CPTLineCapTypeNone
@ CPTLineCapTypeNone
No line cap.
Definition: CPTLineCap.h:10
CGPoint
typedef CGPoint
+[CPTLineCap crossPlotLineCap]
nonnull instancetype crossPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeCross...
Definition: CPTLineCap.m:330
+[CPTLineCap snowPlotLineCap]
nonnull instancetype snowPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSnow.
Definition: CPTLineCap.m:342
CPTLineCap::lineCapType
CPTLineCapType lineCapType
The line cap type.
Definition: CPTLineCap.h:28
+[CPTLineCap diamondPlotLineCap]
nonnull instancetype diamondPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeDiamo...
Definition: CPTLineCap.m:282
+[CPTLineCap barPlotLineCap]
nonnull instancetype barPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeBar.
Definition: CPTLineCap.m:318
CPTLineCapTypeEllipse
@ CPTLineCapTypeEllipse
Elliptical line cap.
Definition: CPTLineCap.h:15
CPTFill
Draws area fills.
Definition: CPTFill.h:18
CPTLineCapTypeBar
@ CPTLineCapTypeBar
Bar line cap.
Definition: CPTLineCap.h:19
CPTLineCapTypeRectangle
@ CPTLineCapTypeRectangle
Rectangle line cap.
Definition: CPTLineCap.h:14
CPTLineCapTypeSweptArrow
@ CPTLineCapTypeSweptArrow
Swept arrow line cap.
Definition: CPTLineCap.h:13
CGPathRef
typedef CGPathRef
CGContextRef
typedef CGContextRef
CPTLineCap
End cap decorations for lines.
Definition: CPTLineCap.h:25
CPTLineCapTypeDiamond
@ CPTLineCapTypeDiamond
Diamond line cap.
Definition: CPTLineCap.h:16
CGSize
typedef CGSize
CPTLineCapTypeSolidArrow
@ CPTLineCapTypeSolidArrow
Solid arrow line cap.
Definition: CPTLineCap.h:12
+[CPTLineCap ellipsePlotLineCap]
nonnull instancetype ellipsePlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeEllip...
Definition: CPTLineCap.m:270
CPTLineCap::size
CGSize size
The symbol size when the line is drawn in a vertical direction.
Definition: CPTLineCap.h:27
+[CPTLineCap pentagonPlotLineCap]
nonnull instancetype pentagonPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypePenta...
Definition: CPTLineCap.m:294
+[CPTLineCap openArrowPlotLineCap]
nonnull instancetype openArrowPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeOpenA...
Definition: CPTLineCap.m:222
CPTLineCap::lineStyle
CPTLineStyle * lineStyle
The line style for the border of the line cap. If nil, the border is not drawn.
Definition: CPTLineCap.h:29
CPTLineCapTypeCross
@ CPTLineCapTypeCross
X line cap.
Definition: CPTLineCap.h:20
CPTLineCapTypeHexagon
@ CPTLineCapTypeHexagon
Hexagon line cap.
Definition: CPTLineCap.h:18
CPTLineCap::customLineCapPath
CGPathRef customLineCapPath
The drawing path for a custom line cap. It will be scaled to size before being drawn.
Definition: CPTLineCap.h:31
CPTLineCapType
CPTLineCapType
Line cap types.
Definition: CPTLineCap.h:9
CPTLineCapTypeCustom
@ CPTLineCapTypeCustom
Custom line cap.
Definition: CPTLineCap.h:22
CPTLineCapTypePentagon
@ CPTLineCapTypePentagon
Pentagon line cap.
Definition: CPTLineCap.h:17
+[CPTLineCap hexagonPlotLineCap]
nonnull instancetype hexagonPlotLineCap()
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeHexag...
Definition: CPTLineCap.m:306
CPTLineCapTypeOpenArrow
@ CPTLineCapTypeOpenArrow
Open arrow line cap.
Definition: CPTLineCap.h:11
NSSecureCoding-p