Class GElement

java.lang.Object
com.vaadin.flow.dom.Node<com.vaadin.flow.dom.Element>
com.vaadin.flow.dom.Element
All Implemented Interfaces:
Serializable

public class GElement extends SvgGraphicsElement
A typed Java API for the SVG <g> (group) element.

The <g> element is a container used to group other SVG elements. Transformations applied to the <g> element are performed on its child elements. Attributes applied to the <g> element are inherited by its children.

Groups are useful for:

  • Applying transformations to multiple elements at once
  • Applying common styles to multiple elements
  • Organizing complex drawings into logical parts
See Also:
  • Constructor Details

    • GElement

      public GElement()
  • Method Details

    • add

      public GElement add(SvgElement... children)
      Appends child elements to this group.
      Parameters:
      children - the elements to add
      Returns:
      this element for method chaining