Source

CS193P Assignment 1 / Calculator / GraphingView.h

//
//  GraphingView.h
//  Calculator
//
//  Created by Jay Yu on 21/07/12.
//  Copyright (c) 2012 JayYu.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@class GraphingView;
@protocol GraphingViewDataSource
- (double)yAxisValue:(GraphingView *)sender atXAxis:(double)xAxis;

@optional
- (void)setDefault:(GraphingView *)sender origin:(CGPoint)origin scale:(CGFloat)scale;
@end

@interface GraphingView : UIView

@property (nonatomic) CGFloat scale;
@property (nonatomic) CGPoint origin;

@property (nonatomic, weak) id <GraphingViewDataSource> dataSource;

- (void)pinch:(UIPinchGestureRecognizer *)gesture;

@end