Class SVGOMRect
java.lang.Object
org.apache.batik.dom.svg.SVGOMRect
- All Implemented Interfaces:
org.w3c.dom.svg.SVGRect
- Direct Known Subclasses:
SVGOMAnimatedRect.AnimSVGRect, SVGOMAnimatedRect.BaseSVGRect
An implementation of
SVGRect that is not associated with an
attribute.- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatDOM: ImplementsSVGRect.getHeight().floatgetWidth()DOM: ImplementsSVGRect.getWidth().floatgetX()DOM: ImplementsSVGRect.getX().floatgetY()DOM: ImplementsSVGRect.getY().voidsetHeight(float height) DOM: ImplementsSVGRect.setHeight(float).voidsetWidth(float width) DOM: ImplementsSVGRect.setWidth(float).voidsetX(float x) DOM: ImplementsSVGRect.setX(float).voidsetY(float y) DOM: ImplementsSVGRect.setY(float).
-
Field Details
-
x
protected float xThe rect's x coordinate. -
y
protected float yThe rect's y coordinate. -
w
protected float wThe rect's width. -
h
protected float hThe rect's height.
-
-
Constructor Details
-
SVGOMRect
public SVGOMRect()Creates a new SVGOMRect with all values set to zero. -
SVGOMRect
public SVGOMRect(float x, float y, float w, float h) Creates a new SVGOMRect with the specified position and dimensions.
-
-
Method Details
-
getX
public float getX()DOM: ImplementsSVGRect.getX().- Specified by:
getXin interfaceorg.w3c.dom.svg.SVGRect
-
setX
DOM: ImplementsSVGRect.setX(float).- Specified by:
setXin interfaceorg.w3c.dom.svg.SVGRect- Throws:
DOMException
-
getY
public float getY()DOM: ImplementsSVGRect.getY().- Specified by:
getYin interfaceorg.w3c.dom.svg.SVGRect
-
setY
DOM: ImplementsSVGRect.setY(float).- Specified by:
setYin interfaceorg.w3c.dom.svg.SVGRect- Throws:
DOMException
-
getWidth
public float getWidth()DOM: ImplementsSVGRect.getWidth().- Specified by:
getWidthin interfaceorg.w3c.dom.svg.SVGRect
-
setWidth
DOM: ImplementsSVGRect.setWidth(float).- Specified by:
setWidthin interfaceorg.w3c.dom.svg.SVGRect- Throws:
DOMException
-
getHeight
public float getHeight()DOM: ImplementsSVGRect.getHeight().- Specified by:
getHeightin interfaceorg.w3c.dom.svg.SVGRect
-
setHeight
DOM: ImplementsSVGRect.setHeight(float).- Specified by:
setHeightin interfaceorg.w3c.dom.svg.SVGRect- Throws:
DOMException
-