Package org.loboevolution.html.dom
Interface HTMLCanvasElement
- All Superinterfaces:
Element,EventTarget,HTMLElement,InnerHTML,ModelNode,Node,NonDocumentTypeChildNode,ParentNode
- All Known Implementing Classes:
HTMLCanvasElementImpl
The Interface HTMLCanvasElement.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe circle.static final intThe clear rect.static final intThe fill.static final intThe fill rect.static final intThe fill text.static final intThe image.static final intThe image clip.static final intThe rect.static final intThe stroke.static final intThe stroke rect.static final intThe stroke text.Fields inherited from interface org.loboevolution.html.node.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Method Summary
Modifier and TypeMethodDescriptiongetContext(String contextId) Gets the context.intGets the height.intgetWidth()Gets the width.voidsetHeight(int height) Sets the height.voidsetWidth(int width) Sets the width.voidtoBlob(FileCallback callback) To blob.voidtoBlob(FileCallback callback, String type, Object... args) To blob.To data url.To data url.Methods inherited from interface org.loboevolution.html.node.Element
closest, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getId, getInnerHTML, getLocalName, getNamespaceURI, getOuterHTML, getPrefix, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getTagName, hasAttribute, hasAttributeNS, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, matches, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOuterHTML, setPointerCapture, setScrollLeft, setScrollTop, setSlot, toggleAttribute, toggleAttributeMethods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getCurrentStyle, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getStyle, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslateMethods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTMLMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warnMethods inherited from interface org.loboevolution.html.node.Node
appendChild, appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAttributes, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUserData, visitMethods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSiblingMethods inherited from interface org.loboevolution.html.node.ParentNode
getChildElementCount, getChildren, getFirstElementChild, getLastElementChild, querySelector, querySelectorAll
-
Field Details
-
FILL
static final int FILLThe fill.- See Also:
-
FILL_RECT
static final int FILL_RECTThe fill rect.- See Also:
-
FILL_TEXT
static final int FILL_TEXTThe fill text.- See Also:
-
CIRCLE
static final int CIRCLEThe circle.- See Also:
-
STROKE
static final int STROKEThe stroke.- See Also:
-
STROKE_RECT
static final int STROKE_RECTThe stroke rect.- See Also:
-
STROKE_TEXT
static final int STROKE_TEXTThe stroke text.- See Also:
-
RECT
static final int RECTThe rect.- See Also:
-
IMAGE
static final int IMAGEThe image.- See Also:
-
IMAGE_CLIP
static final int IMAGE_CLIPThe image clip.- See Also:
-
CLEAR_RECT
static final int CLEAR_RECTThe clear rect.- See Also:
-
-
Method Details
-
getWidth
int getWidth()Gets the width.- Returns:
- the width
-
setWidth
void setWidth(int width) Sets the width.- Parameters:
width- the new width
-
getHeight
int getHeight()Gets the height.- Returns:
- the height
-
setHeight
void setHeight(int height) Sets the height.- Parameters:
height- the new height
-
toDataURL
String toDataURL()To data url.- Returns:
- the string
-
toDataURL
To data url.- Parameters:
type- the typeargs- the args- Returns:
- the string
-
toBlob
To blob.- Parameters:
callback- the callback
-
toBlob
To blob.- Parameters:
callback- the callbacktype- the typeargs- the args
-
getContext
Gets the context.- Parameters:
contextId- the context id- Returns:
- the context
-