Revision 170, 0.8 KB
(checked in by anton, 3 years ago)
|
Extent limitation added
|
Line | |
---|
1 | package jp.co.orkney.restlet.util; |
---|
2 | |
---|
3 | import java.math.BigDecimal; |
---|
4 | |
---|
5 | public class Extent |
---|
6 | { |
---|
7 | private Point lowerLeft; |
---|
8 | private Point upperRight; |
---|
9 | |
---|
10 | public Extent() |
---|
11 | { |
---|
12 | } |
---|
13 | |
---|
14 | public Extent(Point lowerLeft, Point upperRight) |
---|
15 | { |
---|
16 | this.lowerLeft = lowerLeft; |
---|
17 | this.upperRight = upperRight; |
---|
18 | } |
---|
19 | public Extent(BigDecimal x1, BigDecimal y1, BigDecimal x2, BigDecimal y2) |
---|
20 | { |
---|
21 | this(new Point(x1, y1), new Point(x2, y2)); |
---|
22 | } |
---|
23 | |
---|
24 | public Point getLowerLeft() |
---|
25 | { |
---|
26 | return lowerLeft; |
---|
27 | } |
---|
28 | public void setLowerLeft(Point lowerLeft) |
---|
29 | { |
---|
30 | this.lowerLeft = lowerLeft; |
---|
31 | } |
---|
32 | public Point getUpperRight() |
---|
33 | { |
---|
34 | return upperRight; |
---|
35 | } |
---|
36 | public void setUpperRight(Point upperRight) |
---|
37 | { |
---|
38 | this.upperRight = upperRight; |
---|
39 | } |
---|
40 | } |
---|