public interface ImageElement extends Element
HTMLImageElement
) interface, which provides special properties and methods (beyond the regular element
object interface they also have available to them by inheritance) for manipulating the layout and presentation of input elements.ALLOW_KEYBOARD_INPUT
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, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
String |
getAlign()
Indicates the alignment of the image with respect to the surrounding context.
|
String |
getAlt()
Reflects the
alt
HTML attribute, indicating fallback context for the image. |
String |
getBorder()
Width of the border around the image.
|
String |
getCrossOrigin()
The CORS setting for this image element.
|
int |
getHeight()
Reflects the
height
HTML attribute, indicating the rendered height of the image in CSS pixels. |
int |
getHspace()
Space to the left and right of the image.
|
String |
getLongDesc()
URI of a long description of the image.
|
String |
getLowsrc()
A reference to a low-quality (but faster to load) copy of the image.
|
String |
getName() |
int |
getNaturalHeight()
Intrinsic height of the image in CSS pixels, if it is available; otherwise, 0.
|
int |
getNaturalWidth()
Intrinsic width of the image in CSS pixels, if it is available; otherwise, 0.
|
String |
getSrc()
Reflects the
src
HTML attribute, containing the URL of the image. |
String |
getUseMap()
Reflects the
usemap
HTML attribute, containing a partial URL of a map element. |
int |
getVspace()
Space above and below the image.
|
int |
getWidth()
Reflects the
width
HTML attribute, indicating the rendered width of the image in CSS pixels. |
int |
getX() |
int |
getY() |
boolean |
isComplete()
True if the browser has fetched the image, and it is in a supported image type that was decoded without errors.
|
boolean |
isMap()
Reflects the
ismap
HTML attribute, indicating that the image is part of a server-side image map. |
void |
setAlign(String arg) |
void |
setAlt(String arg) |
void |
setBorder(String arg) |
void |
setCrossOrigin(String arg) |
void |
setHeight(int arg) |
void |
setHspace(int arg) |
void |
setIsMap(boolean arg) |
void |
setLongDesc(String arg) |
void |
setLowsrc(String arg) |
void |
setName(String arg) |
void |
setSrc(String arg) |
void |
setUseMap(String arg) |
void |
setVspace(int arg) |
void |
setWidth(int arg) |
blur, click, focus, getAccessKey, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getChildElementCount, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getDataset, getDir, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerText, getLang, getLastElementChild, getNextElementSibling, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnblur, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnerror, getOnfocus, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnselect, getOnselectstart, getOnsubmit, getOntouchcancel, getOntouchend, getOntouchmove, getOntouchstart, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getOuterText, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTabIndex, getTagName, getTitle, getWebkitdropzone, getWebkitRegionOverflow, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, isDraggable, isHidden, isSpellcheck, isTranslate, querySelector, querySelectorAll, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoView, scrollIntoViewIfNeeded, scrollIntoViewIfNeeded, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setContentEditable, setDir, setDraggable, setHidden, setId, setInnerHTML, setInnerText, setLang, setOnabort, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnblur, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnfocus, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnselect, setOnselectstart, setOnsubmit, setOntouchcancel, setOntouchend, setOntouchmove, setOntouchstart, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setOuterText, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTitle, setTranslate, setWebkitdropzone, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
addEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent
String getAlign()
void setAlign(String arg)
void setAlt(String arg)
String getBorder()
void setBorder(String arg)
boolean isComplete()
String getCrossOrigin()
void setCrossOrigin(String arg)
int getHeight()
height
HTML attribute, indicating the rendered height of the image in CSS pixels.void setHeight(int arg)
int getHspace()
void setHspace(int arg)
boolean isMap()
ismap
HTML attribute, indicating that the image is part of a server-side image map.void setIsMap(boolean arg)
String getLongDesc()
void setLongDesc(String arg)
String getLowsrc()
void setLowsrc(String arg)
String getName()
void setName(String arg)
int getNaturalHeight()
int getNaturalWidth()
void setSrc(String arg)
String getUseMap()
usemap
HTML attribute, containing a partial URL of a map element.void setUseMap(String arg)
int getVspace()
void setVspace(int arg)
int getWidth()
width
HTML attribute, indicating the rendered width of the image in CSS pixels.void setWidth(int arg)
int getX()
int getY()
Copyright © 2018. All rights reserved.