org.apache.batik.dom.svg

Class SVGOMRect

public class SVGOMRect extends Object implements SVGRect

An implementation of 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 SVGRect#getHeight().
floatgetWidth()
DOM: Implements SVGRect#getWidth().
floatgetX()
DOM: Implements SVGRect#getX().
floatgetY()
DOM: Implements SVGRect#getY().
voidsetHeight(float height)
DOM: Implements SVGRect#setHeight(float).
voidsetWidth(float width)
DOM: Implements SVGRect#setWidth(float).
voidsetX(float x)
DOM: Implements SVGRect#setX(float).
voidsetY(float y)
DOM: Implements 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 SVGRect#getHeight().

getWidth

public float getWidth()
DOM: Implements SVGRect#getWidth().

getX

public float getX()
DOM: Implements SVGRect#getX().

getY

public float getY()
DOM: Implements SVGRect#getY().

setHeight

public void setHeight(float height)
DOM: Implements SVGRect#setHeight(float).

setWidth

public void setWidth(float width)
DOM: Implements SVGRect#setWidth(float).

setX

public void setX(float x)
DOM: Implements SVGRect#setX(float).

setY

public void setY(float y)
DOM: Implements SVGRect#setY(float).
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.