author | Anton Epple <toni.epple@eppleton.de> |
Fri, 24 May 2013 07:36:58 +0200 | |
branch | canvas |
changeset 1137 | 964e42c9448d |
child 1154 | 2bdd1eba1880 |
permissions | -rw-r--r-- |
toni@1137 | 1 |
/* |
toni@1137 | 2 |
* To change this template, choose Tools | Templates |
toni@1137 | 3 |
* and open the template in the editor. |
toni@1137 | 4 |
*/ |
toni@1137 | 5 |
package net.java.html.canvas; |
toni@1137 | 6 |
|
toni@1137 | 7 |
/** |
toni@1137 | 8 |
* |
toni@1137 | 9 |
* @author antonepple |
toni@1137 | 10 |
*/ |
toni@1137 | 11 |
public class Dimension { |
toni@1137 | 12 |
double width, height; |
toni@1137 | 13 |
|
toni@1137 | 14 |
public Dimension(double width, double height) { |
toni@1137 | 15 |
this.width = width; |
toni@1137 | 16 |
this.height = height; |
toni@1137 | 17 |
} |
toni@1137 | 18 |
|
toni@1137 | 19 |
|
toni@1137 | 20 |
|
toni@1137 | 21 |
public double getWidth() { |
toni@1137 | 22 |
return width; |
toni@1137 | 23 |
} |
toni@1137 | 24 |
|
toni@1137 | 25 |
public void setWidth(double width) { |
toni@1137 | 26 |
this.width = width; |
toni@1137 | 27 |
} |
toni@1137 | 28 |
|
toni@1137 | 29 |
public double getHeight() { |
toni@1137 | 30 |
return height; |
toni@1137 | 31 |
} |
toni@1137 | 32 |
|
toni@1137 | 33 |
public void setHeight(double height) { |
toni@1137 | 34 |
this.height = height; |
toni@1137 | 35 |
} |
toni@1137 | 36 |
|
toni@1137 | 37 |
|
toni@1137 | 38 |
} |