1 18 package org.apache.batik.dom.svg; 19 20 import org.w3c.dom.DOMException ; 21 import org.w3c.dom.svg.SVGRect; 22 23 public class SVGOMRect implements SVGRect{ 24 float x; 25 float y; 26 float w; 27 float h; 28 public SVGOMRect() { x = y = w = h = 0; } 29 public SVGOMRect(float x, float y, float w, float h) { 30 this.x = x; 31 this.y = y; 32 this.w = w; 33 this.h = h; 34 } 35 36 public float getX( ) { return x; } 37 public void setX( float x ) throws DOMException { this.x = x; } 38 public float getY( ) { return y; } 39 public void setY( float y ) throws DOMException { this.y = y; } 40 public float getWidth( ) { return w; } 41 public void setWidth( float width ) throws DOMException { this.w = width; } 42 public float getHeight( ) { return h; } 43 public void setHeight( float height ) throws DOMException { this.h = height; } 44 } 45 | Popular Tags |