summaryrefslogtreecommitdiff
path: root/java/src/org/singinst/uf/presenter/PlaneBounds.java
blob: ab292741645d6701a38775403c55c01a8485cca1 (plain)
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
package org.singinst.uf.presenter;


public class PlaneBounds implements PlaneBounded {

	private LineBounds boundsX;
	private LineBounds boundsY;

	public PlaneBounds(double left, double right, double bottom, double top) {
		boundsX = new LineBounds(left, right);
		boundsY = new LineBounds(bottom, top);
	}

	public PlaneBounds(LineBounded boundedX, LineBounded boundedY) {
		this.boundsX = boundedX.getLineBounds();
		this.boundsY = boundedY.getLineBounds();
	}

	public LineBounds getBoundsX() {
		return boundsX;
	}

	public LineBounds getBoundsY() {
		return boundsY;
	}

	public PlaneBounds getPlaneBounds() {
		return this;
	}

}