Class SVGOMPoint

java.lang.Object
org.apache.batik.dom.svg.SVGOMPoint
All Implemented Interfaces:
org.w3c.dom.svg.SVGPoint
Direct Known Subclasses:
SVGTextContentSupport.SVGTextPoint

public class SVGOMPoint extends Object implements org.w3c.dom.svg.SVGPoint
An implementation of SVGPoint that is not associated with any attribute.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected float
    The x coordinate.
    protected float
    The y coordinate.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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

    Modifier and Type
    Method
    Description
    float
    DOM: Implements SVGPoint.getX().
    float
    DOM: Implements SVGPoint.getY().
    org.w3c.dom.svg.SVGPoint
    matrixTransform(org.w3c.dom.svg.SVGMatrix matrix)
    DOM: Implements SVGPoint.matrixTransform(SVGMatrix).
    static org.w3c.dom.svg.SVGPoint
    matrixTransform(org.w3c.dom.svg.SVGPoint point, org.w3c.dom.svg.SVGMatrix matrix)
    Transforms an SVGPoint by an SVGMatrix and returns the new point.
    void
    setX(float x)
    DOM: Implements SVGPoint.setX(float).
    void
    setY(float y)
    DOM: Implements SVGPoint.setY(float).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      protected float x
      The x coordinate.
    • y

      protected float y
      The y coordinate.
  • Constructor Details

    • 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 Details

    • getX

      public float getX()
      DOM: Implements SVGPoint.getX().
      Specified by:
      getX in interface org.w3c.dom.svg.SVGPoint
    • setX

      public void setX(float x) throws DOMException
      DOM: Implements SVGPoint.setX(float).
      Specified by:
      setX in interface org.w3c.dom.svg.SVGPoint
      Throws:
      DOMException
    • getY

      public float getY()
      DOM: Implements SVGPoint.getY().
      Specified by:
      getY in interface org.w3c.dom.svg.SVGPoint
    • setY

      public void setY(float y) throws DOMException
      DOM: Implements SVGPoint.setY(float).
      Specified by:
      setY in interface org.w3c.dom.svg.SVGPoint
      Throws:
      DOMException
    • matrixTransform

      public org.w3c.dom.svg.SVGPoint matrixTransform(org.w3c.dom.svg.SVGMatrix matrix)
      DOM: Implements SVGPoint.matrixTransform(SVGMatrix).
      Specified by:
      matrixTransform in interface org.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 an SVGPoint by an SVGMatrix and returns the new point.