javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java
author Anton Epple <toni.epple@eppleton.de>
Mon, 27 May 2013 11:18:05 +0200
branchcanvas
changeset 1154 2bdd1eba1880
parent 1137 964e42c9448d
child 1302 e67363288df1
permissions -rw-r--r--
A bit JavaDoc
     1 /*
     2  * To change this template, choose Tools | Templates
     3  * and open the template in the editor.
     4  */
     5 package net.java.html.canvas;
     6 
     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;
    14 
    15     public Dimension(double width, double height) {
    16         this.width = width;
    17         this.height = height;
    18     }
    19 
    20     
    21     
    22     public double getWidth() {
    23         return width;
    24     }
    25 
    26     public void setWidth(double width) {
    27         this.width = width;
    28     }
    29 
    30     public double getHeight() {
    31         return height;
    32     }
    33 
    34     public void setHeight(double height) {
    35         this.height = height;
    36     }
    37     
    38     
    39 }