javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java
author Anton Epple <toni.epple@eppleton.de>
Fri, 24 May 2013 07:36:58 +0200
branchcanvas
changeset 1137 964e42c9448d
child 1154 2bdd1eba1880
permissions -rw-r--r--
Added Dimension class to fix problem with TextMetrics
     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  *
     9  * @author antonepple
    10  */
    11 public class Dimension {
    12     double width, height;
    13 
    14     public Dimension(double width, double height) {
    15         this.width = width;
    16         this.height = height;
    17     }
    18 
    19     
    20     
    21     public double getWidth() {
    22         return width;
    23     }
    24 
    25     public void setWidth(double width) {
    26         this.width = width;
    27     }
    28 
    29     public double getHeight() {
    30         return height;
    31     }
    32 
    33     public void setHeight(double height) {
    34         this.height = height;
    35     }
    36     
    37     
    38 }