|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.dom.svg.SVGOMRect
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 |
protected float x
protected float y
protected float width
protected float height
protected ModificationHandler modificationHandler
protected boolean internalChange
Constructor Detail |
public SVGOMRect()
Method Detail |
public void setModificationHandler(ModificationHandler mh)
public float getX()
getX
in interface SVGRect
public void setX(float x) throws DOMException
setX
in interface SVGRect
public float getY()
getY
in interface SVGRect
public void setY(float y) throws DOMException
setY
in interface SVGRect
public float getWidth()
getWidth
in interface SVGRect
public void setWidth(float width) throws DOMException
setWidth
in interface SVGRect
public float getHeight()
getHeight
in interface SVGRect
public void setHeight(float height) throws DOMException
setHeight
in interface SVGRect
public void parseValue(java.lang.String val)
public void valueChanged(Attr oldValue, Attr newValue)
valueChanged
in interface LiveAttributeValue
oldValue
- The old Attr node.newValue
- The new Attr node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |