Class Canvas

    • Constructor Detail

      • Canvas

        public Canvas()
    • Method Detail

      • getHeight

        public java.lang.String getHeight()
        Returns the height of this canvas tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Since:
        8.5.1
      • setHeight

        public void setHeight​(java.lang.String height)
                       throws WrongValueException
        Sets the height of this canvas tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Throws:
        WrongValueException
        Since:
        8.5.1
      • getWidth

        public java.lang.String getWidth()
        Returns the width of this canvas tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Since:
        8.5.1
      • setWidth

        public void setWidth​(java.lang.String width)
                      throws WrongValueException
        Sets the width of this canvas tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Throws:
        WrongValueException
        Since:
        8.5.1