Class Canvas

All Implemented Interfaces:
Serializable, Cloneable, Component, DynamicPropertied, RawId, Scope, ComponentCtrl

public class Canvas extends AbstractTag
The CANVAS tag.
Author:
jameschu
See Also:
  • Constructor Details

    • Canvas

      public Canvas()
  • Method Details

    • getHeight

      public 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(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 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(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