-
Notifications
You must be signed in to change notification settings - Fork 13
/
GraphView.h
50 lines (37 loc) · 1.09 KB
/
GraphView.h
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
//
// GraphView.h
// WxNow
//
// Created by Ayal Spitz on 7/15/10.
// Copyright 2010 MITRE Corp. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GraphView : UIView {
NSArray *data;
CGPoint *dataArray;
NSInteger dataMin;
NSInteger dataMax;
NSUInteger dataLen;
BOOL debug;
BOOL strokeGraph;
CGColorRef graphStrokeColor;
CGFloat graphLineWidth;
BOOL xAxisLabel;
NSString *xAxisLabelFormat;
NSUInteger xAxisLabelCount;
UIFont *xAxisLabelFont;
CGColorRef xAxisLabelColor;
}
@property (assign) BOOL debug;
@property (assign) BOOL strokeGraph;
@property (assign) CGColorRef graphStrokeColor;
@property (assign) CGFloat graphLineWidth;
@property (assign) BOOL xAxisLabel;
@property (copy) NSString *xAxisLabelFormat;
@property (assign) NSUInteger xAxisLabelCount;
@property (retain) UIFont *xAxisLabelFont;
@property (assign) CGColorRef xAxisLabelColor;
- (void)setDataFromArray:(NSArray *)srcArray withKeyPath:(NSString *)keyPath
startAtIndex:(NSUInteger)startIndex withLength:(NSUInteger)len;
- (NSUInteger)drawXAxisLabels:(CGContextRef)context viewSize:(CGSize)viewSize;
@end