-
Notifications
You must be signed in to change notification settings - Fork 4
/
PTMapView.h
36 lines (27 loc) · 743 Bytes
/
PTMapView.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
//
// Copyright 2009 Positive Team
//
#import <Cocoa/Cocoa.h>
@interface PTMapView : NSView {
NSMutableDictionary *worldMap;
NSMutableDictionary *values;
NSNumberFormatter *formatter;
NSColor *backgroundColor;
NSColor *color;
NSColor *textColor;
id delegate;
id dataSource;
}
@property (nonatomic, retain) id delegate;
@property (nonatomic, retain) id dataSource;
@property (nonatomic, retain) NSColor *backgroundColor;
@property (nonatomic, retain) NSColor *color;
@property (nonatomic, retain) NSColor *textColor;
@property (nonatomic, retain) NSNumberFormatter *formatter;
- (void)draw;
- (NSColor *)colorForValue:(float)value;
@end
@protocol PTMapViewDelegate
@required
- (NSNumber *)valueForCountry:(NSString *)code;
@end