org.apache.batik.dom.svg

Class SVGOMRect

public class SVGOMRect extends Object implements SVGRect

An implementation of {@link SVGRect} that is not associated with an attribute.
Field Summary
protected floath
The rect's height.
protected floatw
The rect's width.
protected floatx
The rect's x coordinate.
protected floaty
The rect's y coordinate.
Constructor Summary
SVGOMRect()
Creates a new SVGOMRect with all values set to zero.
SVGOMRect(float x, float y, float w, float h)
Creates a new SVGOMRect with the specified position and dimensions.
Method Summary
floatgetHeight()
DOM: Implements {@link SVGRect#getHeight()}.
floatgetWidth()
DOM: Implements {@link SVGRect#getWidth()}.
floatgetX()
DOM: Implements {@link SVGRect#getX()}.
floatgetY()
DOM: Implements {@link SVGRect#getY()}.
voidsetHeight(float height)
DOM: Implements {@link SVGRect#setHeight(float)}.
voidsetWidth(float width)
DOM: Implements {@link SVGRect#setWidth(float)}.
voidsetX(float x)
DOM: Implements {@link SVGRect#setX(float)}.
voidsetY(float y)
DOM: Implements {@link SVGRect#setY(float)}.

Field Detail

h

protected float h
The rect's height.

w

protected float w
The rect's width.

x

protected float x
The rect's x coordinate.

y

protected float y
The rect's y coordinate.

Constructor Detail

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 Detail

getHeight

public float getHeight()
DOM: Implements {@link SVGRect#getHeight()}.

getWidth

public float getWidth()
DOM: Implements {@link SVGRect#getWidth()}.

getX

public float getX()
DOM: Implements {@link SVGRect#getX()}.

getY

public float getY()
DOM: Implements {@link SVGRect#getY()}.

setHeight

public void setHeight(float height)
DOM: Implements {@link SVGRect#setHeight(float)}.

setWidth

public void setWidth(float width)
DOM: Implements {@link SVGRect#setWidth(float)}.

setX

public void setX(float x)
DOM: Implements {@link SVGRect#setX(float)}.

setY

public void setY(float y)
DOM: Implements {@link SVGRect#setY(float)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.