Package org.loboevolution.html.dom
Interface HTMLCanvasElement
- All Superinterfaces:
Element
,EventTarget
,HTMLElement
,InnerHTML
,Node
,NonDocumentTypeChildNode
,ParentNode
- All Known Implementing Classes:
HTMLCanvasElementImpl
The Interface HTMLCanvasElement.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The circle.static final int
The clear rect.static final int
The fill.static final int
The fill rect.static final int
The fill text.static final int
The image.static final int
The image clip.static final int
The rect.static final int
The stroke.static final int
The stroke rect.static final int
The 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.int
Gets the height.int
getWidth()
Gets the width.void
setHeight
(int height) Sets the height.void
setWidth
(int width) Sets the width.void
toBlob
(FileCallback callback) To blob.void
toBlob
(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, toggleAttribute
Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
Methods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslate
Methods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTML
Methods inherited from interface org.loboevolution.html.node.Node
appendChild, cloneNode, cloneNode, compareDocumentPosition, contains, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData
Methods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSibling
Methods 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
-