org.apache.batik.dom.svg

Class SVGOMPoint

public class SVGOMPoint extends Object implements SVGPoint

An implementation of SVGPoint that is not associated with any attribute.
Field Summary
protected floatx
The x coordinate.
protected floaty
The y coordinate.
Constructor Summary
SVGOMPoint()
Creates a new SVGOMPoint with coordinates set to 0.
SVGOMPoint(float x, float y)
Creates a new SVGOMPoint with coordinates set to the specified values.
Method Summary
floatgetX()
DOM: Implements SVGPoint#getX().
floatgetY()
DOM: Implements SVGPoint#getY().
SVGPointmatrixTransform(SVGMatrix matrix)
DOM: Implements SVGPoint#matrixTransform(SVGMatrix).
static SVGPointmatrixTransform(SVGPoint point, SVGMatrix matrix)
Transforms an SVGPoint by an SVGMatrix and returns the new point.
voidsetX(float x)
DOM: Implements SVGPoint#setX(float).
voidsetY(float y)
DOM: Implements SVGPoint#setY(float).

Field Detail

x

protected float x
The x coordinate.

y

protected float y
The y coordinate.

Constructor Detail

SVGOMPoint

public SVGOMPoint()
Creates a new SVGOMPoint with coordinates set to 0.

SVGOMPoint

public SVGOMPoint(float x, float y)
Creates a new SVGOMPoint with coordinates set to the specified values.

Method Detail

getX

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

getY

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

matrixTransform

public SVGPoint matrixTransform(SVGMatrix matrix)
DOM: Implements SVGPoint#matrixTransform(SVGMatrix).

matrixTransform

public static SVGPoint matrixTransform(SVGPoint point, SVGMatrix matrix)
Transforms an SVGPoint by an SVGMatrix and returns the new point.

setX

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

setY

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