toni@1137: /* toni@1137: * To change this template, choose Tools | Templates toni@1137: * and open the template in the editor. toni@1137: */ toni@1137: package net.java.html.canvas; toni@1137: toni@1137: /** toni@1154: * Just a simple class to replace the need of java.awt.Dimension, since we only toni@1154: * want to use Java core APIs to keep porting simple. toni@1137: * @author antonepple toni@1137: */ toni@1137: public class Dimension { toni@1137: double width, height; toni@1137: toni@1137: public Dimension(double width, double height) { toni@1137: this.width = width; toni@1137: this.height = height; toni@1137: } toni@1137: toni@1137: toni@1137: toni@1137: public double getWidth() { toni@1137: return width; toni@1137: } toni@1137: toni@1137: public void setWidth(double width) { toni@1137: this.width = width; toni@1137: } toni@1137: toni@1137: public double getHeight() { toni@1137: return height; toni@1137: } toni@1137: toni@1137: public void setHeight(double height) { toni@1137: this.height = height; toni@1137: } toni@1137: toni@1137: toni@1137: }