1/*
2 * Copyright 2007-2011, Haiku, Inc. All rights reserved.
3 * Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
4 * Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
5 * Copyright 2010, Clemens Zeidler <haiku@clemens-zeidler.de>
6 * Distributed under the terms of the MIT License.
7 */
8
9
10#include "Column.h"
11
12#include "ALMLayout.h"
13#include "Area.h"
14#include "Tab.h"
15
16
17using namespace LinearProgramming;
18
19
20/**
21 * The left boundary of the column.
22 */
23XTab*
24Column::Left() const
25{
26	return fLeft;
27}
28
29
30/**
31 * The right boundary of the column.
32 */
33XTab*
34Column::Right() const
35{
36	return fRight;
37}
38
39
40/**
41 * Destructor.
42 * Removes the column from the specification.
43 */
44Column::~Column()
45{
46	delete fPrefSizeConstraint;
47}
48
49
50/**
51 * Constructor.
52 */
53Column::Column(LinearSpec* ls, XTab* left, XTab* right)
54	:
55	fLeft(left),
56	fRight(right),
57	fLS(ls),
58	fPrefSizeConstraint(NULL)
59{
60
61}
62