org.apache.batik.dom.svg
Class SVGOMRect

java.lang.Object
  |
  +--org.apache.batik.dom.svg.SVGOMRect
All Implemented Interfaces:
LiveAttributeValue, SVGRect

public class SVGOMRect
extends java.lang.Object
implements SVGRect, LiveAttributeValue

This class implements the SVGRect interface.


Field Summary
protected  float height
          The height of the rectangle.
protected  boolean internalChange
          Whether or not the current change is due to an internal change.
protected  ModificationHandler modificationHandler
          The associated modification handler.
protected  float width
          The width of the rectangle.
protected  float x
          The x coordinate of the rectangle.
protected  float y
          The y coordinate of the rectangle.
 
Constructor Summary
SVGOMRect()
           
 
Method Summary
 float getHeight()
          Returns the width of this rectangle.
 float getWidth()
          Returns the width of this rectangle.
 float getX()
          Returns the x coordinate of the rectangle.
 float getY()
          Returns the x coordinate of the rectangle.
 void parseValue(java.lang.String val)
          Parses the given string.
 void setHeight(float height)
          Sets the height of this rectangle.
 void setModificationHandler(ModificationHandler mh)
          Sets the associated attribute modifier.
 void setWidth(float width)
          Sets the width of this rectangle.
 void setX(float x)
          Sets the x coordinate of the rectangle.
 void setY(float y)
          Sets the x coordinate of the rectangle.
 void valueChanged(Attr oldValue, Attr newValue)
          Called when the string representation of the value as been modified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

protected float x
The x coordinate of the rectangle.

y

protected float y
The y coordinate of the rectangle.

width

protected float width
The width of the rectangle.

height

protected float height
The height of the rectangle.

modificationHandler

protected ModificationHandler modificationHandler
The associated modification handler.

internalChange

protected boolean internalChange
Whether or not the current change is due to an internal change.
Constructor Detail

SVGOMRect

public SVGOMRect()
Method Detail

setModificationHandler

public void setModificationHandler(ModificationHandler mh)
Sets the associated attribute modifier.

getX

public float getX()
Returns the x coordinate of the rectangle.
Specified by:
getX in interface SVGRect

setX

public void setX(float x)
          throws DOMException
Sets the x coordinate of the rectangle.
Specified by:
setX in interface SVGRect

getY

public float getY()
Returns the x coordinate of the rectangle.
Specified by:
getY in interface SVGRect

setY

public void setY(float y)
          throws DOMException
Sets the x coordinate of the rectangle.
Specified by:
setY in interface SVGRect

getWidth

public float getWidth()
Returns the width of this rectangle.
Specified by:
getWidth in interface SVGRect

setWidth

public void setWidth(float width)
              throws DOMException
Sets the width of this rectangle.
Specified by:
setWidth in interface SVGRect

getHeight

public float getHeight()
Returns the width of this rectangle.
Specified by:
getHeight in interface SVGRect

setHeight

public void setHeight(float height)
               throws DOMException
Sets the height of this rectangle.
Specified by:
setHeight in interface SVGRect

parseValue

public void parseValue(java.lang.String val)
Parses the given string.

valueChanged

public void valueChanged(Attr oldValue,
                         Attr newValue)
Called when the string representation of the value as been modified.
Specified by:
valueChanged in interface LiveAttributeValue
Parameters:
oldValue - The old Attr node.
newValue - The new Attr node.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.