Package org.apache.batik.dom.svg
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
DOM: ImplementsSVGRect.getHeight()
.float
getWidth()
DOM: ImplementsSVGRect.getWidth()
.float
getX()
DOM: ImplementsSVGRect.getX()
.float
getY()
DOM: ImplementsSVGRect.getY()
.void
setHeight
(float height) DOM: ImplementsSVGRect.setHeight(float)
.void
setWidth
(float width) DOM: ImplementsSVGRect.setWidth(float)
.void
setX
(float x) DOM: ImplementsSVGRect.setX(float)
.void
setY
(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:
getX
in interfaceorg.w3c.dom.svg.SVGRect
-
setX
DOM: ImplementsSVGRect.setX(float)
.- Specified by:
setX
in interfaceorg.w3c.dom.svg.SVGRect
- Throws:
DOMException
-
getY
public float getY()DOM: ImplementsSVGRect.getY()
.- Specified by:
getY
in interfaceorg.w3c.dom.svg.SVGRect
-
setY
DOM: ImplementsSVGRect.setY(float)
.- Specified by:
setY
in interfaceorg.w3c.dom.svg.SVGRect
- Throws:
DOMException
-
getWidth
public float getWidth()DOM: ImplementsSVGRect.getWidth()
.- Specified by:
getWidth
in interfaceorg.w3c.dom.svg.SVGRect
-
setWidth
DOM: ImplementsSVGRect.setWidth(float)
.- Specified by:
setWidth
in interfaceorg.w3c.dom.svg.SVGRect
- Throws:
DOMException
-
getHeight
public float getHeight()DOM: ImplementsSVGRect.getHeight()
.- Specified by:
getHeight
in interfaceorg.w3c.dom.svg.SVGRect
-
setHeight
DOM: ImplementsSVGRect.setHeight(float)
.- Specified by:
setHeight
in interfaceorg.w3c.dom.svg.SVGRect
- Throws:
DOMException
-