-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPHGraphView.h
More file actions
54 lines (46 loc) · 1.39 KB
/
PHGraphView.h
File metadata and controls
54 lines (46 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// PHGraphView.h
// Graph
//
// Created by Pierre-Henri Jondot on 30/03/08.
// Ported to iPhone by brian@fluidmedia.com 08-2008
//
#import <uikit/uikit.h>
#import "PHAxis.h"
#import "PHxAxis.h"
#import "PHyAxis.h"
#import "PHGraphObject.h"
#import "PHPoints.h"
#import "PHLineWithCartesianEquation.h"
#define PHOnlyDelegate 0
#define PHCompositeZoomAndDrag 1
#define PHDragAndMove 2
#define PHZoomOnSelection 3
@interface PHGraphView : UIView {
NSMutableArray *xAxis;
NSMutableArray *yAxis;
NSMutableArray *graphObjects;
BOOL hasBorder;
float leftBorder;
float rightBorder;
float topBorder;
float bottomBorder;
CGRect drawableRect;
}
-(void)addPHxAxis:(PHxAxis*)axis;
-(void)addPHyAxis:(PHyAxis*)axis;
-(void)addPHGraphObject:(PHGraphObject*)object;
-(void)removePHxAxis:(PHxAxis*)axis;
-(void)removePHyAxis:(PHyAxis*)axis;
-(void)removePHGraphObject:(PHGraphObject*)object;
//direct accessors to the arrays of axis and objects
-(NSMutableArray*)xAxisMutableArray;
-(NSMutableArray*)yAxisMutableArray;
-(NSMutableArray*)graphObjectsMutableArray;
-(void)setXAxisMutableArray:(NSMutableArray*)anArray;
-(void)setYAxisMutableArray:(NSMutableArray*)anArray;
-(void)setGraphObjectsMutableArray:(NSMutableArray*)anArray;
-(void)setHasBorder:(BOOL)value;
-(void)setLeftBorder:(float)newLeftBorder rightBorder:(float)newRightBorder
bottomBorder:(float)newBottomBorder topBorder:(float)newTopBorder;
@end