iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIRangeFactory

@interface SCIRangeFactory : NSObject

Defines a factory for ISCIRange implementations.

  • Gets the shared SCIRangeFactory instance.

    Declaration

    Objective-C

    + (nonnull instancetype)sharedInstance;

    Swift

    class func sharedInstance() -> Self
  • Makes a copy of range.

    Declaration

    Objective-C

    - (nonnull id<ISCIRange>)clone:(nonnull id<ISCIRange>)originalRange;

    Swift

    func clone(_ originalRange: ISCIRange) -> ISCIRange

    Parameters

    originalRange

    The range to clone.

    Return Value

    The clone of this range.

  • Creates a new range for specified data type.

    Declaration

    Objective-C

    - (nonnull id<ISCIRange>)newRange:(SCIDataType)dataType;

    Swift

    func newRange(_ dataType: SCIDataType) -> ISCIRange

    Parameters

    dataType

    Range values data type.

    Return Value

    The new range instance.

  • Creates a new range for specified type with specified min/max values.

    Declaration

    Objective-C

    - (nonnull id<ISCIRange>)newRange:(SCIDataType)dataType
                              withMin:(nonnull id<ISCIComparable>)min
                               andMax:(nonnull id<ISCIComparable>)max;

    Swift

    func newRange(_ dataType: SCIDataType, withMin min: ISCIComparable, andMax max: ISCIComparable) -> ISCIRange

    Parameters

    dataType

    Range values data type.

    min

    Min value.

    max

    Max value.

    Return Value

    The new range instance.