Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTMutableLineStyle Class Reference

Mutable wrapper for various line drawing properties. More...

#import <CPTMutableLineStyle.h>

+ Inheritance diagram for CPTMutableLineStyle:
+ Collaboration diagram for CPTMutableLineStyle:

Properties

CGLineCap lineCap
 The style for the endpoints of lines drawn in a graphics context. Default is kCGLineCapButt. More...
 
CGLineJoin lineJoin
 The style for the joins of connected lines in a graphics context. Default is kCGLineJoinMiter. More...
 
CGFloat miterLimit
 The miter limit for the joins of connected lines in a graphics context. Default is 10.0. More...
 
CGFloat lineWidth
 The line width for a graphics context. Default is 1.0. More...
 
CPTNumberArraydashPattern
 The dash-and-space pattern for the line. Default is nil. More...
 
CGFloat patternPhase
 The starting phase of the line dash pattern. Default is 0.0. More...
 
CPTColorlineColor
 The current stroke color in a context. Default is solid black. More...
 
CPTFilllineFill
 The current line fill. Default is nil. More...
 
CPTGradientlineGradient
 The current line gradient fill. Default is nil. More...
 
- Properties inherited from CPTLineStyle
CGLineCap lineCap
 The style for the endpoints of lines drawn in a graphics context. Default is kCGLineCapButt. More...
 
CGLineJoin lineJoin
 The style for the joins of connected lines in a graphics context. Default is kCGLineJoinMiter. More...
 
CGFloat miterLimit
 The miter limit for the joins of connected lines in a graphics context. Default is 10.0. More...
 
CGFloat lineWidth
 The line width for a graphics context. Default is 1.0. More...
 
CPTNumberArraydashPattern
 The dash-and-space pattern for the line. Default is nil. More...
 
CGFloat patternPhase
 The starting phase of the line dash pattern. Default is 0.0. More...
 
CPTColorlineColor
 The current stroke color in a context. Default is solid black. More...
 
CPTFilllineFill
 The current line fill. Default is nil. More...
 
CPTGradientlineGradient
 The current line gradient fill. Default is nil. More...
 
BOOL opaque
 If YES, a line drawn using the line style is completely opaque. More...
 

Additional Inherited Members

- Public Class Methods inherited from CPTLineStyle
(nonnull instancetype) + lineStyle
 Creates and returns a new CPTLineStyle instance. More...
 
(nonnull instancetype) + lineStyleWithStyle:
 Creates and returns a new line style instance initialized from an existing line style. 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 inherited from CPTLineStyle
(void) - setLineStyleInContext:
 Sets all of the line drawing properties in the given graphics context. More...
 
(void) - strokePathInContext:
 Stroke the current path in the given graphics context. Call -setLineStyleInContext: first to set up the drawing properties. More...
 
(void) - strokeRect:inContext:
 Stroke a rectangular path in the given graphics context. Call -setLineStyleInContext: first to set up the drawing properties. More...
 
(nonnull instancetype) - init [implementation]
 Initializes a newly allocated CPTLineStyle 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 <NSMutableCopying>
(id- mutableCopyWithZone:
 
- Public Instance Methods inherited from <NSCoding>
(id- initWithCoder:
 
(void) - encodeWithCoder:
 

Detailed Description

Mutable wrapper for various line drawing properties.

If you need to customize properties of a line style, you should use this class rather than the immutable super class.

Property Documentation

◆ dashPattern

- (nullable CPTNumberArray *) dashPattern
readwritenonatomicstrong

The dash-and-space pattern for the line. Default is nil.

◆ lineCap

- (CGLineCap) lineCap
readwritenonatomicassign

The style for the endpoints of lines drawn in a graphics context. Default is kCGLineCapButt.

◆ lineColor

- (nullable CPTColor *) lineColor
readwritenonatomicstrong

The current stroke color in a context. Default is solid black.

◆ lineFill

- (nullable CPTFill *) lineFill
readwritenonatomicstrong

The current line fill. Default is nil.

If nil, the line is drawn using the lineGradient or lineColor.

◆ lineGradient

- (nullable CPTGradient *) lineGradient
readwritenonatomicstrong

The current line gradient fill. Default is nil.

If nil, the line is drawn using the lineFill or lineColor.

◆ lineJoin

- (CGLineJoin) lineJoin
readwritenonatomicassign

The style for the joins of connected lines in a graphics context. Default is kCGLineJoinMiter.

◆ lineWidth

- (CGFloat) lineWidth
readwritenonatomicassign

The line width for a graphics context. Default is 1.0.

◆ miterLimit

- (CGFloat) miterLimit
readwritenonatomicassign

The miter limit for the joins of connected lines in a graphics context. Default is 10.0.

◆ patternPhase

- (CGFloat) patternPhase
readwritenonatomicassign

The starting phase of the line dash pattern. Default is 0.0.


The documentation for this class was generated from the following files: