GitX v0.4.1
[GitX.git] / PBGitGraphLine.m
blob6435e965a4609d2d631940aeb3079f874bd7121f
1 //
2 //  PBLine.m
3 //  GitX
4 //
5 //  Created by Pieter de Bie on 27-08-08.
6 //  Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import "PBGitGraphLine.h"
12 @implementation PBGitGraphLine
13 @synthesize upper, from, to, colorIndex;
14 - (id)initWithUpper: (char) u From: (char) f to: (char) t  color: (char) c;
16         upper = u;
17         from = f;
18         to = t;
19         colorIndex = c;
20         return self;
23 + (PBGitGraphLine*) lowerLineFrom:(char) f to: (char) t color: (char) c
25         return [[PBGitGraphLine alloc] initWithUpper:0 From:f to:t color:c];
28 + (PBGitGraphLine*) upperLineFrom:(char) f to: (char) t color: (char) c
30         return [[PBGitGraphLine alloc] initWithUpper:1 From:f to:t color: c];
32 @end