Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Plot symbols for CPTScatterPlot. More...
#import <CPTPlotSymbol.h>
Public Class Methods | |
Factory Methods | |
(nonnull instancetype) | + plotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeNone. More... | |
(nonnull instancetype) | + crossPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeCross. More... | |
(nonnull instancetype) | + ellipsePlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeEllipse. More... | |
(nonnull instancetype) | + rectanglePlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeRectangle. More... | |
(nonnull instancetype) | + plusPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypePlus. More... | |
(nonnull instancetype) | + starPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeStar. More... | |
(nonnull instancetype) | + diamondPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeDiamond. More... | |
(nonnull instancetype) | + trianglePlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeTriangle. More... | |
(nonnull instancetype) | + pentagonPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypePentagon. More... | |
(nonnull instancetype) | + hexagonPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeHexagon. More... | |
(nonnull instancetype) | + dashPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeDash. More... | |
(nonnull instancetype) | + snowPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeSnow. More... | |
(nonnull instancetype) | + customPlotSymbolWithPath: |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeCustom. 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) | - renderInContext:atPoint:scale:alignToPixels: |
Draws the plot symbol into the given graphics context centered at the provided point using the cached symbol image. More... | |
(void) | - renderAsVectorInContext:atPoint:scale: |
Draws the plot symbol into the given graphics context centered at the provided point. More... | |
Initialization | |
(nonnull instancetype) | - init [implementation] |
Initializes a newly allocated CPTPlotSymbol 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 | |
CGPoint | anchorPoint |
The anchor point for the plot symbol. Defaults to (0.5 , 0.5 ) which centers the symbol on the plot point. More... | |
CGSize | size |
The symbol size. More... | |
CPTPlotSymbolType | symbolType |
The symbol type. More... | |
CPTLineStyle * | lineStyle |
The line style for the border of the symbol. If nil, the border is not drawn. More... | |
CPTFill * | fill |
The fill for the interior of the symbol. If nil, the symbol is not filled. More... | |
CPTShadow * | shadow |
The shadow applied to each plot symbol. More... | |
CGPathRef | customSymbolPath |
The drawing path for a custom plot symbol. It will be scaled to size before being drawn. More... | |
BOOL | usesEvenOddClipRule |
If YES, the even-odd rule is used to draw the symbol, otherwise the non-zero winding number rule is used. More... | |
Plot symbols for CPTScatterPlot.
+ (nonnull instancetype) crossPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeCross.
+ (nonnull instancetype) customPlotSymbolWithPath: | (nullable CGPathRef) | aPath |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeCustom.
aPath | The bounding path for the custom symbol. |
+ (nonnull instancetype) dashPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeDash.
+ (nonnull instancetype) diamondPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeDiamond.
+ (nonnull instancetype) ellipsePlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeEllipse.
+ (nonnull instancetype) hexagonPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeHexagon.
|
implementation |
Initializes a newly allocated CPTPlotSymbol object.
The initialized object will have the following properties:
0.5
, 0.5
)5.0
, 5.0
)NULL
+ (nonnull instancetype) pentagonPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypePentagon.
+ (nonnull instancetype) plotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeNone.
+ (nonnull instancetype) plusPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypePlus.
+ (nonnull instancetype) rectanglePlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeRectangle.
- (void) renderAsVectorInContext: | (nonnull CGContextRef) | context | |
atPoint: | (CGPoint) | center | |
scale: | (CGFloat) | scale | |
Draws the plot symbol into the given graphics context centered at the provided point.
context | The graphics context to draw into. |
center | The center point of the symbol. |
scale | The drawing scale factor. Must be greater than zero (0 ). |
- (void) renderInContext: | (nonnull CGContextRef) | context | |
atPoint: | (CGPoint) | center | |
scale: | (CGFloat) | scale | |
alignToPixels: | (BOOL) | alignToPixels | |
Draws the plot symbol into the given graphics context centered at the provided point using the cached symbol image.
context | The graphics context to draw into. |
center | The center point of the symbol. |
scale | The drawing scale factor. Must be greater than zero (0 ). |
alignToPixels | If YES, the symbol position is aligned with device pixels to reduce anti-aliasing artifacts. |
+ (nonnull instancetype) snowPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeSnow.
+ (nonnull instancetype) starPlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeStar.
+ (nonnull instancetype) trianglePlotSymbol |
Creates and returns a new CPTPlotSymbol instance initialized with a symbol type of CPTPlotSymbolTypeTriangle.
|
readwritenonatomicassign |
The anchor point for the plot symbol. Defaults to (0.5
, 0.5
) which centers the symbol on the plot point.
|
readwritenonatomicassign |
The drawing path for a custom plot symbol. It will be scaled to size before being drawn.
|
readwritenonatomicstrong |
The fill for the interior of the symbol. If nil, the symbol is not filled.
|
readwritenonatomicstrong |
The line style for the border of the symbol. If nil, the border is not drawn.
|
readwritenonatomiccopy |
The shadow applied to each plot symbol.
|
readwritenonatomicassign |
The symbol size.
|
readwritenonatomicassign |
The symbol type.
|
readwritenonatomicassign |
If YES, the even-odd rule is used to draw the symbol, otherwise the non-zero winding number rule is used.