SChartRepeatedTimePeriod Class Reference

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

Overview

A SChartRepeatedTimePeriod represents a repeated period of time, starting at a particular point in time. Each period has a length, and the periods repeat at a given frequency. The length of each period, and the frequency at which they repeat, are expressed as instances of SChartDateFrequency.

Instances of SChartRepeatedTimePeriod are used by the discontinuous date/time axis (defined in SChartDiscontinuousDateTimeAxis). The axis uses SChartRepeatedTimePeriod to define repeated periods of time over which it will skip.

Instance Methods

frequency

Returns the frequency at which the periods will repeat, expressed as a SChartDateFrequency object.

- (SChartDateFrequency *)frequency

Declared In

SChartTimePeriod.h

initWithStart:andLength:

UNAVAILABLE ATTRIBUTE - This is inherited from SChartTimePeriod, but should not be called on this class. Use initWithStart:andLength:andFrequency: instead.

- (id)initWithStart:(NSDate *)start andLength:(SChartDateFrequency *)length

Discussion

Warning: UNAVAILABLE ATTRIBUTE - This is inherited from SChartTimePeriod, but should not be called on this class. Use initWithStart:andLength:andFrequency: instead.

Declared In

SChartTimePeriod.h

initWithStart:andLength:andFrequency:

Initializes and returns a newly allocated repeated time period object. The new object will start at the specified start date. Each of its periods will have the length defined by length, and the periods will repeat at the specified frequency.

- (id)initWithStart:(NSDate *)start andLength:(SChartDateFrequency *)length andFrequency:(SChartDateFrequency *)freq

Parameters

start

The start date of the new time period.

length

The length of the time period, expressed as a SChartDateFrequency.

freq

The frequency at which the time periods will repeat, expressed as a SChartDateFrequency.

Return Value

An initialized repeated time period object, or nil if the object couldn’t be created.

Declared In

SChartTimePeriod.h