1 package cz.cuni.amis.utils;
2
3 import java.awt.geom.Dimension2D;
4 import java.io.Serializable;
5
6
7
8
9
10
11 public class Dimension2D_Double extends Dimension2D implements Serializable {
12
13 protected double width;
14 protected double height;
15
16 public Dimension2D_Double() {
17 }
18
19 public Dimension2D_Double(double w, double h) {
20 width = w;
21 height = h;
22 }
23
24 @Override
25 public double getHeight() {
26 return height;
27 }
28
29 @Override
30 public double getWidth() {
31 return width;
32 }
33
34 @Override
35 public void setSize(double width, double height) {
36 this.width = width;
37 this.height = height;
38 }
39
40 }