diff -r 2bdd1eba1880 -r e67363288df1 javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java Mon May 27 11:18:05 2013 +0200 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java Thu Sep 26 14:20:18 2013 -0700 @@ -1,3 +1,20 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ /* * To change this template, choose Tools | Templates * and open the template in the editor. @@ -5,35 +22,35 @@ package net.java.html.canvas; /** - * Just a simple class to replace the need of java.awt.Dimension, since we only + * Just a simple class to replace the need of java.awt.Dimension, since we only * want to use Java core APIs to keep porting simple. + * * @author antonepple */ -public class Dimension { - double width, height; +public final class Dimension { + + final double width, height; public Dimension(double width, double height) { this.width = width; this.height = height; } - - + /** + * Returns the height of this Dimension in double precision + * + * @return the width of this Dimension. + */ public double getWidth() { return width; } - public void setWidth(double width) { - this.width = width; - } - + /** + * Returns the width of this Dimension in double precision. + * + * @return the height of this Dimension. + */ public double getHeight() { return height; } - - public void setHeight(double height) { - this.height = height; - } - - }