author | Anton Epple <toni.epple@eppleton.de> |
Mon, 27 May 2013 11:18:05 +0200 | |
branch | canvas |
changeset 1154 | 2bdd1eba1880 |
parent 1137 | 964e42c9448d |
child 1302 | e67363288df1 |
permissions | -rw-r--r-- |
1 /*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5 package net.java.html.canvas;
7 /**
8 * Just a simple class to replace the need of java.awt.Dimension, since we only
9 * want to use Java core APIs to keep porting simple.
10 * @author antonepple
11 */
12 public class Dimension {
13 double width, height;
15 public Dimension(double width, double height) {
16 this.width = width;
17 this.height = height;
18 }
22 public double getWidth() {
23 return width;
24 }
26 public void setWidth(double width) {
27 this.width = width;
28 }
30 public double getHeight() {
31 return height;
32 }
34 public void setHeight(double height) {
35 this.height = height;
36 }
39 }