svn-document-layout / trunk / org.gvsig.app.document.layout2.app / org.gvsig.app.document.layout2.app.mainplugin / src / main / java / org / gvsig / layout / mapbox / model / Dimension2DDouble.java @ 1714
History | View | Annotate | Download (911 Bytes)
1 |
/*
|
---|---|
2 |
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
3 |
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
4 |
*/
|
5 |
package org.gvsig.layout.mapbox.model; |
6 |
|
7 |
import java.awt.geom.Dimension2D; |
8 |
|
9 |
/**
|
10 |
*
|
11 |
* @author fdiaz
|
12 |
*/
|
13 |
public class Dimension2DDouble extends Dimension2D { |
14 |
|
15 |
public double width; |
16 |
public double height; |
17 |
|
18 |
|
19 |
public Dimension2DDouble(){
|
20 |
this(0d,0d); |
21 |
} |
22 |
|
23 |
public Dimension2DDouble(double width, double height) { |
24 |
this.width = width;
|
25 |
this.height = height;
|
26 |
} |
27 |
|
28 |
@Override
|
29 |
public double getWidth() { |
30 |
return this.width; |
31 |
} |
32 |
|
33 |
@Override
|
34 |
public double getHeight() { |
35 |
return this.height; |
36 |
} |
37 |
|
38 |
@Override
|
39 |
public void setSize(double width, double height) { |
40 |
this.width = width;
|
41 |
this.height = height;
|
42 |
} |
43 |
|
44 |
} |