The iOS framework that grows only as fast as its documentation
NIOverviewDiskPageView Class Reference

Overview

A page that renders a graph showing free disk space.

overview-disk1.png
The disk page.
Inheritance diagram for NIOverviewDiskPageView:
NIOverviewGraphPageView NIOverviewPageView <NIOverviewGraphViewDataSource>

Tasks

(CGFloat) - graphViewXRange:
 
(CGFloat) - graphViewYRange:
 
(void) - resetPointIterator
 
(BOOL) - nextPointInGraphView:point:
 
(void) - resetEventIterator
 
(BOOL) - nextEventInGraphView:xValue:color:
 
Configuring a Page
NSString * pageTitle property
 
Subclassing

The following methods are provided to aid in subclassing and are not meant to be used externally.

UILabel * titleLabel property
 
(UILabel *) - label
 
Creating a Page
(NIOverviewPageView *) + page
 
Updating a Page
(void) - update
 

Method Documentation

pageTitle

The title of the page.

@property (nonatomic, copy) NSString* pageTitle;

titleLabel

The title label for this page.

@property (nonatomic, readonly, strong) UILabel* titleLabel;
Discussion

By default this label will be placed flush to the bottom middle of the page.

page

Returns an autoreleased instance of this view.

+ (NIOverviewPageView*)page;

update

Request that this page update its information.

- (void)update;
Discussion

Should be implemented by the subclass. The default implementation does nothing.

label

Creates a generic label for use in the page.

- (UILabel*)label;

graphViewXRange:

Fetches the total range of all x values for this graph.

- (CGFloat)graphViewXRange:(NIOverviewGraphView *)graphView;

graphViewYRange:

Fetches the total range of all y values for this graph.

- (CGFloat)graphViewYRange:(NIOverviewGraphView *)graphView;

resetPointIterator

The data source should reset its iterator for fetching points in the graph.

- (void)resetPointIterator;

nextPointInGraphView:point:

Fetches the next point in the graph to plot.

- (BOOL)nextPointInGraphView:(NIOverviewGraphView *)graphView point:(CGPoint *)point;

resetEventIterator

The data source should reset its iterator for fetching events in the graph.

- (void)resetEventIterator;

nextEventInGraphView:xValue:color:

Fetches the next event in the graph to plot.

- (BOOL)nextEventInGraphView:(NIOverviewGraphView *)graphView xValue:(CGFloat *)xValue color:(UIColor *)*color;