iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCIPieSegment

@protocol ISCIPieSegment <ISCIThemeable>

Defines the interface for SCIPieSegment.

  • Gets or sets the value of this segment.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) double value;

    Swift

    var value: Double { get set }
  • Gets or sets whether this segment is selected.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) _Bool isSelected;

    Swift

    var isSelected: Bool { get set }
  • Gets or sets the title of this segment.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSString *_Nonnull title;

    Swift

    var title: String { get set }
  • Gets or sets the stroke style of this segment.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) SCIPenStyle *strokeStyle;

    Swift

    var strokeStyle: SCIPenStyle? { get set }
  • Gets or sets the fill style of this segment.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) SCIBrushStyle *fillStyle;

    Swift

    var fillStyle: SCIBrushStyle? { get set }
  • Gets or sets the font style of the title of this segment.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SCIFontStyle *_Nonnull titleStyle;

    Swift

    var titleStyle: SCIFontStyle { get set }
  • Gets or sets the ISCIStyle which is applied when segment is selected.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        id<ISCIStyle> _Nonnull selectedSegmentStyle;

    Swift

    var selectedSegmentStyle: ISCIStyle { get set }
  • Add the listener which should be invoked if this segment becomes selected/unselected.

    Declaration

    Objective-C

    - (void)addIsSelectedChangeListener:
        (nonnull SCIPieSegmentChangeListener)listener;

    Swift

    func addIsSelectedChangeListener(_ listener: @escaping SCIPieSegmentChangeListener)

    Parameters

    listener

    The listener to add.

  • Removes the listener which should invoke if this segment become selected/unselected.

    Declaration

    Objective-C

    - (void)removeIsSelectedChangeListener:
        (nonnull SCIPieSegmentChangeListener)listener;

    Swift

    func removeIsSelectedChangeListener(_ listener: @escaping SCIPieSegmentChangeListener)

    Parameters

    listener

    The listener to remove

  • Add the listener which should be invoked if this segment changes.

    Declaration

    Objective-C

    - (void)addChangeListener:(nonnull SCIPieSegmentChangeListener)listener;

    Swift

    func addChangeListener(_ listener: @escaping SCIPieSegmentChangeListener)

    Parameters

    listener

    The listener to add.

  • Removes the listener which should invoke if this segment changes.

    Declaration

    Objective-C

    - (void)removeChangeListener:(nonnull SCIPieSegmentChangeListener)listener;

    Swift

    func removeChangeListener(_ listener: @escaping SCIPieSegmentChangeListener)

    Parameters

    listener

    The listener to remove.