-
Notifications
You must be signed in to change notification settings - Fork 0
/
CWGraphPlotViewAxis.m
41 lines (32 loc) · 963 Bytes
/
CWGraphPlotViewAxis.m
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
//
// CWGraphicPlotAxis.m
// MMCourseWork
//
// Created by Alexey Streltsow on 12/1/09.
// Copyright 2009 Karma World LLC. All rights reserved.
//
#import "CWGraphPlotViewAxis.h"
@implementation CWGraphPlotViewAxis
@synthesize axisTitle = _axisTitle;
@synthesize axisMinValue = _axisMinValue;
@synthesize axisMaxValue = _axisMaxValue;
@synthesize step = _step;
+ (id) axisWithTitle:(NSString*)title minValue:(double)minValue maxValue:(double)maxValue {
return [[[[self class] alloc] initWithTitle:title minValue:minValue maxValue:maxValue] autorelease];
}
- (id) initWithTitle:(NSString*)title minValue:(double)minValue maxValue:(double)maxValue {
if ( self = [super init] ) {
self.axisTitle = title;
_axisMinValue = minValue;
_axisMaxValue = maxValue;
_step = 1;
}
return self;
}
- (void) drawWithType:(CWGraphPlotAxisType)type context:(NSGraphicsContext*)aContext{
}
- (void) dealloc {
self.axisTitle = nil;
[super dealloc];
}
@end