org.apache.batik.dom.svg

Class SVGOMPoint

public class SVGOMPoint extends Object implements SVGPoint

An implementation of {@link 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 {@link SVGPoint#getX()}.
floatgetY()
DOM: Implements {@link SVGPoint#getY()}.
SVGPointmatrixTransform(SVGMatrix matrix)
DOM: Implements {@link SVGPoint#matrixTransform(SVGMatrix)}.
static SVGPointmatrixTransform(SVGPoint point, SVGMatrix matrix)
Transforms an {@link SVGPoint} by an {@link SVGMatrix} and returns the new point.
voidsetX(float x)
DOM: Implements {@link SVGPoint#setX(float)}.
voidsetY(float y)
DOM: Implements {@link 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 {@link SVGPoint#getX()}.

getY

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

matrixTransform

public SVGPoint matrixTransform(SVGMatrix matrix)
DOM: Implements {@link SVGPoint#matrixTransform(SVGMatrix)}.

matrixTransform

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

setX

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

setY

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