Class SvgTag

  • All Implemented Interfaces:
    IPresentationAttr<SvgTag>, j2html.tags.IInstance<SvgTag>, j2html.tags.Renderable

    public class SvgTag
    extends j2html.tags.ContainerTag<T>
    • Field Summary

      • Fields inherited from class j2html.tags.ContainerTag

        children
    • Constructor Summary

      Constructors 
      Constructor Description
      SvgTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T attr​(String name, double value)  
      T condAttr​(boolean condition, String name, double value)  
      SvgTag viewBox​(double x, double y, double width, double height)  
      SvgTag widthAndHeight​(int width, int height)  
      • Methods inherited from class j2html.tags.ContainerTag

        condWith, condWith, condWith, getNumChildren, render, renderFormatted, renderModel, with, with, with, with, withText
      • Methods inherited from class j2html.tags.Tag

        attr, attr, attr, condAttr, equals, getAttributes, getTagName, hasTagName, isContenteditable, isDraggable, isHidden, isSpellcheck, isTranslate, withAccesskey, withClass, withClasses, withCondAccessKey, withCondClass, withCondContenteditable, withCondData, withCondDir, withCondDraggable, withCondHidden, withCondId, withCondLang, withCondSpellcheck, withCondStyle, withCondTabindex, withCondTitle, withCondTranslate, withData, withDir, withId, withLang, withStyle, withTabindex, withTitle
      • Methods inherited from class j2html.tags.DomContent

        toString
      • Methods inherited from interface j2html.tags.IInstance

        self
      • Methods inherited from interface j2html.tags.Renderable

        render, render, render
    • Constructor Detail

      • SvgTag

        public SvgTag()
    • Method Detail

      • viewBox

        public SvgTag viewBox​(double x,
                              double y,
                              double width,
                              double height)
      • widthAndHeight

        public SvgTag widthAndHeight​(int width,
                                     int height)
      • attr

        public T attr​(String name,
                      double value)
      • condAttr

        public T condAttr​(boolean condition,
                          String name,
                          double value)