Package org.apache.batik.dom.svg
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: SVGOMPoint.java 1733416 2016-03-03 07:07:13Z gadams $
-
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 TypeMethodDescriptionfloat
getX()
DOM: ImplementsSVGPoint.getX()
.float
getY()
DOM: ImplementsSVGPoint.getY()
.org.w3c.dom.svg.SVGPoint
matrixTransform
(org.w3c.dom.svg.SVGMatrix matrix) DOM: ImplementsSVGPoint.matrixTransform(SVGMatrix)
.static org.w3c.dom.svg.SVGPoint
matrixTransform
(org.w3c.dom.svg.SVGPoint point, org.w3c.dom.svg.SVGMatrix matrix) Transforms anSVGPoint
by anSVGMatrix
and returns the new point.void
setX
(float x) DOM: ImplementsSVGPoint.setX(float)
.void
setY
(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:
getX
in interfaceorg.w3c.dom.svg.SVGPoint
-
setX
DOM: ImplementsSVGPoint.setX(float)
.- Specified by:
setX
in interfaceorg.w3c.dom.svg.SVGPoint
- Throws:
DOMException
-
getY
public float getY()DOM: ImplementsSVGPoint.getY()
.- Specified by:
getY
in interfaceorg.w3c.dom.svg.SVGPoint
-
setY
DOM: ImplementsSVGPoint.setY(float)
.- Specified by:
setY
in 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:
matrixTransform
in 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 anSVGPoint
by anSVGMatrix
and returns the new point.
-