Class Canvas
The canvas element provides a resolution-dependent bitmap canvas that can be used for rendering graphs, game graphics, or other visual images on the fly. It is used with JavaScript to create dynamic, scriptable rendering of 2D shapes and bitmap images. The canvas element requires both width and height attributes to define the canvas size, and the actual drawing is done through the Canvas API in JavaScript.
Examples:
The following convenience methods are provided for constructing instances of this bean:
See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.bean.html5.HtmlElementMixed
child, children, getChild, getChild, getChild, getChildren, setChildrenMethods inherited from class org.apache.juneau.bean.html5.HtmlElement
accesskey, attr, attrUri, class_, contenteditable, deminimize, dir, getAttr, getAttr, getAttrs, hidden, id, lang, onabort, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, oncuechange, ondblclick, ondurationchange, onemptied, onended, onerror, onfocus, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting, self, setAttrs, spellcheck, style, tabindex, title, toString, translate
-
Constructor Details
-
Canvas
public Canvas()Creates an emptyCanvaselement. -
Canvas
- Parameters:
width- Thewidth(Object)attribute. Can benull to unset the attribute.height- Theheight(Object)attribute. Can benull to unset the attribute.
-
-
Method Details