Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
End cap decorations for lines. More...
#import <CPTLineCap.h>
Public Class Methods | |
Factory Methods | |
(nonnull instancetype) | + lineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeNone. More... | |
(nonnull instancetype) | + openArrowPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeOpenArrow. More... | |
(nonnull instancetype) | + solidArrowPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSolidArrow. More... | |
(nonnull instancetype) | + sweptArrowPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSweptArrow. More... | |
(nonnull instancetype) | + rectanglePlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeRectangle. More... | |
(nonnull instancetype) | + ellipsePlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeEllipse. More... | |
(nonnull instancetype) | + diamondPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeDiamond. More... | |
(nonnull instancetype) | + pentagonPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypePentagon. More... | |
(nonnull instancetype) | + hexagonPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeHexagon. More... | |
(nonnull instancetype) | + barPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeBar. More... | |
(nonnull instancetype) | + crossPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeCross. More... | |
(nonnull instancetype) | + snowPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSnow. More... | |
(nonnull instancetype) | + customLineCapWithPath: |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeCustom. More... | |
Public Class Methods inherited from NSObject | |
(id) | + alloc |
(Class) | + class |
(void) | + initialize |
(void) | + load |
(id) | + new |
Public Class Methods inherited from <NSSecureCoding> | |
(BOOL) | + supportsSecureCoding: |
Public Instance Methods | |
Drawing | |
(void) | - renderAsVectorInContext:atPoint:inDirection: |
Draws the line cap into the given graphics context centered at the provided point. More... | |
Initialization | |
(nonnull instancetype) | - init [implementation] |
Initializes a newly allocated CPTLineCap object. More... | |
Public Instance Methods inherited from NSObject | |
(Class) | - classForCoder |
(id) | - copy |
(void) | - dealloc |
(void) | - finalize |
(id) | - init |
(id) | - mutableCopy |
Public Instance Methods inherited from <NSObject> | |
(NSString *) | - description |
(NSUInteger) | - hash |
(BOOL) | - isEqual: |
Public Instance Methods inherited from <NSCopying> | |
(id) | - copyWithZone: |
Public Instance Methods inherited from <NSCoding> | |
(id) | - initWithCoder: |
(void) | - encodeWithCoder: |
Properties | |
CGSize | size |
The symbol size when the line is drawn in a vertical direction. More... | |
CPTLineCapType | lineCapType |
The line cap type. More... | |
CPTLineStyle * | lineStyle |
The line style for the border of the line cap. If nil, the border is not drawn. More... | |
CPTFill * | fill |
The fill for the interior of the line cap. If nil, the symbol is not filled. More... | |
CGPathRef | customLineCapPath |
The drawing path for a custom line cap. It will be scaled to size before being drawn. More... | |
BOOL | usesEvenOddClipRule |
If YES, the even-odd rule is used to draw the line cap, otherwise the non-zero winding number rule is used. More... | |
End cap decorations for lines.
+ (nonnull instancetype) barPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeBar.
+ (nonnull instancetype) crossPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeCross.
+ (nonnull instancetype) customLineCapWithPath: | (nullable CGPathRef) | aPath |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeCustom.
aPath | The bounding path for the custom line cap. |
+ (nonnull instancetype) diamondPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeDiamond.
+ (nonnull instancetype) ellipsePlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeEllipse.
+ (nonnull instancetype) hexagonPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeHexagon.
|
implementation |
Initializes a newly allocated CPTLineCap object.
The initialized object will have the following properties:
5.0
, 5.0
)NULL
+ (nonnull instancetype) lineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeNone.
+ (nonnull instancetype) openArrowPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeOpenArrow.
+ (nonnull instancetype) pentagonPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypePentagon.
+ (nonnull instancetype) rectanglePlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeRectangle.
- (void) renderAsVectorInContext: | (nonnull CGContextRef) | context | |
atPoint: | (CGPoint) | center | |
inDirection: | (CGPoint) | direction | |
Draws the line cap into the given graphics context centered at the provided point.
context | The graphics context to draw into. |
center | The center point of the line cap. |
direction | The direction the line is pointing. |
+ (nonnull instancetype) snowPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSnow.
+ (nonnull instancetype) solidArrowPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSolidArrow.
+ (nonnull instancetype) sweptArrowPlotLineCap |
Creates and returns a new CPTLineCap instance initialized with a line cap type of CPTLineCapTypeSweptArrow.
|
readwritenonatomicassign |
The drawing path for a custom line cap. It will be scaled to size before being drawn.
|
readwritenonatomicstrong |
The fill for the interior of the line cap. If nil, the symbol is not filled.
|
readwritenonatomicassign |
The line cap type.
|
readwritenonatomicstrong |
The line style for the border of the line cap. If nil, the border is not drawn.
|
readwritenonatomicassign |
The symbol size when the line is drawn in a vertical direction.
|
readwritenonatomicassign |
If YES, the even-odd rule is used to draw the line cap, otherwise the non-zero winding number rule is used.