javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java
author Anton Epple <toni.epple@eppleton.de>
Mon, 23 Sep 2013 07:09:13 -0700
branchcanvas
changeset 1296 6fed3663b751
parent 1137 964e42c9448d
child 1302 e67363288df1
permissions -rw-r--r--
Fixed bug in logger & registered Graphicsenvironment service
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@1154
     8
 * Just a simple class to replace the need of java.awt.Dimension, since we only 
toni@1154
     9
 * want to use Java core APIs to keep porting simple.
toni@1137
    10
 * @author antonepple
toni@1137
    11
 */
toni@1137
    12
public class Dimension {
toni@1137
    13
    double width, height;
toni@1137
    14
toni@1137
    15
    public Dimension(double width, double height) {
toni@1137
    16
        this.width = width;
toni@1137
    17
        this.height = height;
toni@1137
    18
    }
toni@1137
    19
toni@1137
    20
    
toni@1137
    21
    
toni@1137
    22
    public double getWidth() {
toni@1137
    23
        return width;
toni@1137
    24
    }
toni@1137
    25
toni@1137
    26
    public void setWidth(double width) {
toni@1137
    27
        this.width = width;
toni@1137
    28
    }
toni@1137
    29
toni@1137
    30
    public double getHeight() {
toni@1137
    31
        return height;
toni@1137
    32
    }
toni@1137
    33
toni@1137
    34
    public void setHeight(double height) {
toni@1137
    35
        this.height = height;
toni@1137
    36
    }
toni@1137
    37
    
toni@1137
    38
    
toni@1137
    39
}