1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java Fri May 24 07:36:58 2013 +0200
1.3 @@ -0,0 +1,38 @@
1.4 +/*
1.5 + * To change this template, choose Tools | Templates
1.6 + * and open the template in the editor.
1.7 + */
1.8 +package net.java.html.canvas;
1.9 +
1.10 +/**
1.11 + *
1.12 + * @author antonepple
1.13 + */
1.14 +public class Dimension {
1.15 + double width, height;
1.16 +
1.17 + public Dimension(double width, double height) {
1.18 + this.width = width;
1.19 + this.height = height;
1.20 + }
1.21 +
1.22 +
1.23 +
1.24 + public double getWidth() {
1.25 + return width;
1.26 + }
1.27 +
1.28 + public void setWidth(double width) {
1.29 + this.width = width;
1.30 + }
1.31 +
1.32 + public double getHeight() {
1.33 + return height;
1.34 + }
1.35 +
1.36 + public void setHeight(double height) {
1.37 + this.height = height;
1.38 + }
1.39 +
1.40 +
1.41 +}