SChartRange Class Reference

Inherits from NSObject
Declared in SChartRange.h
Availability Standard
Premium
Related samples

Overview

SChartRange represents a range of values on a chart. It is used by the chart axes, which are defined in SChartAxis. SChartRange is the base class for the concrete range types which are available in ShinobiCharts. The concrete types are:

Properties

maximum

The maximum value of the range.

@property (nonatomic, retain, readonly) NSNumber *maximum

Declared In

SChartRange.h

minimum

The minimum value of the range.

@property (nonatomic, retain, readonly) NSNumber *minimum

Declared In

SChartRange.h

Instance Methods

initWithMinimum:andMaximum:NS_DESIGNATED_INITIALIZER:

Initializes and returns a newly allocated range object, with the specified minimum and maximum values.

- (id)initWithMinimum:(NSNumber *)min andMaximum:(NSNumber *)max NS_DESIGNATED_INITIALIZER

Parameters

min

The minimum value of the new range.

max

The maximum value of the new range.

Return Value

An initialized range object, or nil if the object couldn’t be created.

Declared In

SChartRange.h

isEqualToRange:

Checks equality of the receiver against another range.

- (BOOL)isEqualToRange:(SChartRange *)range

Parameters

range

The range to check against the receiver.

Return Value

Whether the receiver and range are equal.

Discussion

Ranges are declared to be equal if the receiver and range point to the same object or have the same minimum and maximum values.

Declared In

SChartRange.h

span

Returns the difference between the maximum and the minimum of the range, as a NSNumber.

- (NSNumber *)span

Declared In

SChartRange.h