Class SVGOMPoint
java.lang.Object
org.apache.batik.dom.svg.SVGOMPoint
- All Implemented Interfaces:
org.w3c.dom.svg.SVGPoint
- Direct Known Subclasses:
SVGTextContentSupport.SVGTextPoint
An implementation of
SVGPoint that is not associated with any
attribute.- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SVGOMPoint with coordinates set to0.SVGOMPoint(float x, float y) Creates a new SVGOMPoint with coordinates set to the specified values. -
Method Summary
Modifier and TypeMethodDescriptionfloatgetX()DOM: ImplementsSVGPoint.getX().floatgetY()DOM: ImplementsSVGPoint.getY().org.w3c.dom.svg.SVGPointmatrixTransform(org.w3c.dom.svg.SVGMatrix matrix) DOM: ImplementsSVGPoint.matrixTransform(SVGMatrix).static org.w3c.dom.svg.SVGPointmatrixTransform(org.w3c.dom.svg.SVGPoint point, org.w3c.dom.svg.SVGMatrix matrix) Transforms anSVGPointby anSVGMatrixand returns the new point.voidsetX(float x) DOM: ImplementsSVGPoint.setX(float).voidsetY(float y) DOM: ImplementsSVGPoint.setY(float).
-
Field Details
-
x
protected float xThe x coordinate. -
y
protected float yThe y coordinate.
-
-
Constructor Details
-
SVGOMPoint
public SVGOMPoint()Creates a new SVGOMPoint with coordinates set to0. -
SVGOMPoint
public SVGOMPoint(float x, float y) Creates a new SVGOMPoint with coordinates set to the specified values.
-
-
Method Details
-
getX
public float getX()DOM: ImplementsSVGPoint.getX().- Specified by:
getXin interfaceorg.w3c.dom.svg.SVGPoint
-
setX
DOM: ImplementsSVGPoint.setX(float).- Specified by:
setXin interfaceorg.w3c.dom.svg.SVGPoint- Throws:
DOMException
-
getY
public float getY()DOM: ImplementsSVGPoint.getY().- Specified by:
getYin interfaceorg.w3c.dom.svg.SVGPoint
-
setY
DOM: ImplementsSVGPoint.setY(float).- Specified by:
setYin interfaceorg.w3c.dom.svg.SVGPoint- Throws:
DOMException
-
matrixTransform
public org.w3c.dom.svg.SVGPoint matrixTransform(org.w3c.dom.svg.SVGMatrix matrix) DOM: ImplementsSVGPoint.matrixTransform(SVGMatrix).- Specified by:
matrixTransformin interfaceorg.w3c.dom.svg.SVGPoint
-
matrixTransform
public static org.w3c.dom.svg.SVGPoint matrixTransform(org.w3c.dom.svg.SVGPoint point, org.w3c.dom.svg.SVGMatrix matrix) Transforms anSVGPointby anSVGMatrixand returns the new point.
-