Class Svg<T extends Svg<T>>


public class Svg<T extends Svg<T>> extends SvgContainerElement<T>
Represents an SVG <svg> element, the root container for SVG graphics.
  • Constructor Details

    • Svg

      public Svg()
      Creates a new SVG element.
  • Method Details

    • setX

      public void setX(String x)
      Sets the x-axis coordinate of the SVG element.
      Parameters:
      x - the x coordinate value.
    • setY

      public void setY(String y)
      Sets the y-axis coordinate of the SVG element.
      Parameters:
      y - the y coordinate value.
    • setSvgWidth

      public void setSvgWidth(String width)
      Sets the width of the SVG element.
      Parameters:
      width - the width value.
    • setSvgHeight

      public void setSvgHeight(String height)
      Sets the height of the SVG element.
      Parameters:
      height - the height value.