1.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java Mon May 27 11:18:05 2013 +0200
1.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/Dimension.java Thu Sep 26 14:20:18 2013 -0700
1.3 @@ -1,3 +1,20 @@
1.4 +/**
1.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
1.6 + * <jaroslav.tulach@apidesign.org>
1.7 + *
1.8 + * This program is free software: you can redistribute it and/or modify it under
1.9 + * the terms of the GNU General Public License as published by the Free Software
1.10 + * Foundation, version 2 of the License.
1.11 + *
1.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.15 + * details.
1.16 + *
1.17 + * You should have received a copy of the GNU General Public License along with
1.18 + * this program. Look for COPYING file in the top folder. If not, see
1.19 + * http://opensource.org/licenses/GPL-2.0.
1.20 + */
1.21 /*
1.22 * To change this template, choose Tools | Templates
1.23 * and open the template in the editor.
1.24 @@ -5,35 +22,35 @@
1.25 package net.java.html.canvas;
1.26
1.27 /**
1.28 - * Just a simple class to replace the need of java.awt.Dimension, since we only
1.29 + * Just a simple class to replace the need of java.awt.Dimension, since we only
1.30 * want to use Java core APIs to keep porting simple.
1.31 + *
1.32 * @author antonepple
1.33 */
1.34 -public class Dimension {
1.35 - double width, height;
1.36 +public final class Dimension {
1.37 +
1.38 + final double width, height;
1.39
1.40 public Dimension(double width, double height) {
1.41 this.width = width;
1.42 this.height = height;
1.43 }
1.44
1.45 -
1.46 -
1.47 + /**
1.48 + * Returns the height of this Dimension in double precision
1.49 + *
1.50 + * @return the width of this Dimension.
1.51 + */
1.52 public double getWidth() {
1.53 return width;
1.54 }
1.55
1.56 - public void setWidth(double width) {
1.57 - this.width = width;
1.58 - }
1.59 -
1.60 + /**
1.61 + * Returns the width of this Dimension in double precision.
1.62 + *
1.63 + * @return the height of this Dimension.
1.64 + */
1.65 public double getHeight() {
1.66 return height;
1.67 }
1.68 -
1.69 - public void setHeight(double height) {
1.70 - this.height = height;
1.71 - }
1.72 -
1.73 -
1.74 }