Interface SVGPoint

All Known Implementing Classes:
SVGOMPoint, SVGPointItem, SVGTextContentSupport.SVGTextPoint

public interface SVGPoint
An (x, y) coordinate pair.

When used in matrix operations, an SVGPoint is treated as a vector of the form:

 [x]
 [y]
 [1]
 
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Get the x coordinate.
    float
    Get the y coordinate.
    Applies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object.
    void
    setX(float x)
    Sets the x coordinate.
    void
    setY(float y)
    Sets the y coordinate.
  • Method Details

    • getX

      float getX()
      Get the x coordinate.
      Returns:
      the x coordinate.
    • setX

      void setX(float x) throws DOMException
      Sets the x coordinate.
      Parameters:
      x - the x coordinate.
      Throws:
      DOMException - NO_MODIFICATION_ALLOWED_ERR if this value is read only.
    • getY

      float getY()
      Get the y coordinate.
      Returns:
      the y coordinate.
    • setY

      void setY(float y) throws DOMException
      Sets the y coordinate.
      Parameters:
      y - the y coordinate.
      Throws:
      DOMException - NO_MODIFICATION_ALLOWED_ERR if this value is read only.
    • matrixTransform

      SVGPoint matrixTransform(SVGMatrix matrix)
      Applies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object.
      Parameters:
      matrix - the matrix.
      Returns:
      a new SVGPoint object.