iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIPenStyle

@interface SCIPenStyle : SCIStyle <NSCopying>

Defines a base class for specifying of 2D line style used to draw lines on the ISCIRenderSurface.

  • Gets the ARGB color code.

    Declaration

    Objective-C

    @property (readonly, nonatomic) unsigned int colorCode;

    Swift

    var colorCode: UInt32 { get }
  • Gets the ARGB color.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIColor *_Nonnull color;

    Swift

    var color: UIColor { get }
  • Gets the stroke dash pattern.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable)
        NSArray<NSNumber *> *strokeDashArray;

    Swift

    var strokeDashArray: [NSNumber]? { get }
  • Gets the value indicating whether the pen should use antialiased or no.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL antiAliasing;

    Swift

    var antiAliasing: Bool { get }
  • Gets the stroke thiickness in pixels.

    Declaration

    Objective-C

    @property (readonly, nonatomic) float thickness;

    Swift

    var thickness: Float { get }
  • Gets the ISCIStrokePaint which might be used to draw this Pen on CGContextRef.

    Declaration

    Objective-C

    @property (readonly, nonatomic) id<ISCIStrokePaint> _Nonnull paint;

    Swift

    var paint: ISCIStrokePaint { get }
  • Creates a new SCIPenStyle instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithThickness:(float)thickness
                                 antiAliasing:(BOOL)antiAliasing
                              strokeDashArray:
                                  (nullable NSArray<NSNumber *> *)strokeDashArray;

    Swift

    init(thickness: Float, antiAliasing: Bool, strokeDashArray: [NSNumber]?)

    Parameters

    antiAliasing

    The value indicating whether the pen should use antialiasing or no.

    thickness

    The stroke thickness in pixels.

    strokeDashArray

    The stroke dash pattern.

  • Returns a Boolean value that indicates whether the receiver and a given object are equal.

    Declaration

    Objective-C

    - (BOOL)isEqualToPenStyle:(nullable SCIPenStyle *)penStyle;

    Swift

    func isEqual(to penStyle: SCIPenStyle?) -> Bool

    Parameters

    penStyle

    The pen style to be compared to the receiver. May be nil, in which case this method returns NO.

    Return Value

    YES if the receiver and anObject are equal, otherwise - NO.