Project

General

Profile

Download (1.12 KB) Statistics
| Branch: | Tag: | Revision:
1
/*******************************************************************************
2
 * Copyright 2005, CHISEL Group, University of Victoria, Victoria, BC, Canada.
3
 * All rights reserved. This program and the accompanying materials are made
4
 * available under the terms of the Eclipse Public License v1.0 which
5
 * accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors: The Chisel Group, University of Victoria
9
 *******************************************************************************/
10
package org.eclipse.zest.layouts.dataStructures;
11

    
12
/**
13
 * This is a dimension that isn't dependent on awt, swt, or any other library,
14
 * except layout.
15
 * 
16
 * @author Casey Best
17
 */
18
public class DisplayIndependentDimension {
19
	public double width, height;
20

    
21
	public DisplayIndependentDimension(double width, double height) {
22
		this.width = width;
23
		this.height = height;
24
	}
25

    
26
	public DisplayIndependentDimension(DisplayIndependentDimension dimension) {
27
		this.width = dimension.width;
28
		this.height = dimension.height;
29
	}
30

    
31
	public String toString() {
32
		return "(" + width + ", " + height + ")";
33
	}
34
}
(2-2/6)