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

ISCIPieSegment

@protocol ISCIPieSegment <ISCIThemeable, ISCISuspendable>

Defines the interface for SCIPieSegment.

  • Gets or sets the value of this segment.

    Declaration

    Objective-C

    @property (nonatomic) double value;
  • Gets or sets whether this segment is selected.

    Declaration

    Objective-C

    @property (nonatomic) _Bool isSelected;
  • Gets or sets the title of this segment.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nonnull title;
  • Gets or sets the stroke style of this segment.

    Declaration

    Objective-C

    @property (nonatomic, strong) SCIPenStyle *_Nonnull strokeStyle;
  • Gets or sets the fill style of this segment.

    Declaration

    Objective-C

    @property (nonatomic, strong) SCIBrushStyle *_Nonnull fillStyle;
  • Gets or sets the font style of the title of this segment.

    Declaration

    Objective-C

    @property (nonatomic, strong) SCIFontStyle *_Nonnull titleStyle;
  • Gets or sets the ISCIStyle which is applied when segment is selected.

    Declaration

    Objective-C

    @property (nonatomic, strong) id<ISCIStyle> _Nonnull selectedSegmentStyle;
  • Add the listener which should be invoked if this segment becomes selected/unselected.

    Declaration

    Objective-C

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

    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;

    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;

    Parameters

    listener

    The listener to add.

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

    Declaration

    Objective-C

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

    Parameters

    listener

    The listener to remove.