Class SVGRectImpl

java.lang.Object
org.loboevolution.html.dom.svgimpl.SVGRectImpl
All Implemented Interfaces:
SVGRect

public class SVGRectImpl extends Object implements SVGRect

SVGRectImpl class.

  • Constructor Details

    • SVGRectImpl

      public SVGRectImpl(float x, float y, float width, float height)

      Constructor for SVGRectImpl.

      Parameters:
      x - a Float object.
      y - a Float object.
      width - a Float object.
      height - a Float object.
    • SVGRectImpl

      public SVGRectImpl(Rectangle2D rect)

      Constructor for SVGRectImpl.

      Parameters:
      rect - a Rectangle2D object.
  • Method Details

    • getX

      public float getX()

      getX.

      Specified by:
      getX in interface SVGRect
      Returns:
      a float.
    • setX

      public void setX(float x)

      setX.

      Specified by:
      setX in interface SVGRect
      Parameters:
      x - a float.
    • getY

      public float getY()

      getY.

      Specified by:
      getY in interface SVGRect
      Returns:
      a float.
    • setY

      public void setY(float y)

      setY.

      Specified by:
      setY in interface SVGRect
      Parameters:
      y - a float.
    • getWidth

      public float getWidth()

      getWidth.

      Specified by:
      getWidth in interface SVGRect
      Returns:
      a float.
    • setWidth

      public void setWidth(float width)

      setWidth.

      Specified by:
      setWidth in interface SVGRect
      Parameters:
      width - a float.
    • getHeight

      public float getHeight()

      getHeight.

      Specified by:
      getHeight in interface SVGRect
      Returns:
      a float.
    • setHeight

      public void setHeight(float height)

      setHeight.

      Specified by:
      setHeight in interface SVGRect
      Parameters:
      height - a float.