Package org.loboevolution.html.dom
Interface HTMLImageElement
- All Superinterfaces:
Element
,EventTarget
,HTMLElement
,InnerHTML
,Node
,NonDocumentTypeChildNode
,ParentNode
- All Known Implementing Classes:
HTMLImageElementImpl
Provides special properties and methods for manipulating <img> elements.
-
Field Summary
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 TypeMethodDescriptiongetAlign()
Deprecated.getAlt()
Sets or retrieves a text alternative to the graphic.Deprecated.getCrossOrigin.getCurrentSrc.getDecoding.double
Sets or retrieves the height of the object.double
Deprecated.Deprecated.Deprecated.getName()
Deprecated.double
The original height of the image resource before sizing.double
The original width of the image resource before sizing.getReferrerPolicy.getSizes()
getSizes.getSrc()
The address or URL of the a media resource that is to be considered.getSrcset.Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.double
Deprecated.double
getWidth()
Sets or retrieves the width of the object.double
getX()
getX.double
getY()
getY.boolean
Retrieves whether the object is fully loaded.boolean
isIsMap()
Sets or retrieves whether the image is a server-side image map.void
Deprecated.void
setAlt.void
setBorder.void
setCrossOrigin
(String crossOrigin) setCrossOrigin.void
setDecoding
(Decoding decoding) setDecoding.void
setHeight
(double height) setHeight.void
setHspace
(double hspace) setHspace.void
setIsMap
(boolean isMap) setIsMap.void
setLongDesc
(String longDesc) setLongDesc.void
setLowsrc.void
setName.void
setReferrerPolicy
(String referrerPolicy) setReferrerPolicy.void
setSizes.void
setSrc.void
setSrcset.void
setUseMap.void
setVspace
(double vspace) setVspace.void
setWidth
(double width) setWidth.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
-
Method Details
-
getAlign
Deprecated.Sets or retrieves how the object is aligned with adjacent text.- Returns:
- a
String
object.
-
setAlign
Deprecated.setAlign.
- Parameters:
align
- aString
object.
-
getAlt
String getAlt()Sets or retrieves a text alternative to the graphic.- Returns:
- a
String
object.
-
setAlt
setAlt.
- Parameters:
alt
- aString
object.
-
getBorder
Deprecated.Specifies the properties of a border drawn around an object.- Returns:
- a
String
object.
-
setBorder
setBorder.
- Parameters:
border
- aString
object.
-
isComplete
boolean isComplete()Retrieves whether the object is fully loaded.- Returns:
- a boolean.
-
getCrossOrigin
String getCrossOrigin()getCrossOrigin.
- Returns:
- a
String
object.
-
setCrossOrigin
setCrossOrigin.
- Parameters:
crossOrigin
- aString
object.
-
getCurrentSrc
String getCurrentSrc()getCurrentSrc.
- Returns:
- a
String
object.
-
getDecoding
Decoding getDecoding()getDecoding.
- Returns:
- a
Decoding
object.
-
setDecoding
setDecoding.
- Parameters:
decoding
- aDecoding
object.
-
getHeight
double getHeight()Sets or retrieves the height of the object.- Returns:
- a double.
-
setHeight
void setHeight(double height) setHeight.
- Parameters:
height
- a double.
-
getHspace
Deprecated.Sets or retrieves the width of the border to draw around the object.- Returns:
- a double.
-
setHspace
void setHspace(double hspace) setHspace.
- Parameters:
hspace
- a double.
-
isIsMap
boolean isIsMap()Sets or retrieves whether the image is a server-side image map.- Returns:
- a boolean.
-
setIsMap
void setIsMap(boolean isMap) setIsMap.
- Parameters:
isMap
- a boolean.
-
getLongDesc
Deprecated.Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.- Returns:
- a
String
object.
-
setLongDesc
setLongDesc.
- Parameters:
longDesc
- aString
object.
-
getLowsrc
Deprecated.getLowsrc.
- Returns:
- a
String
object.
-
setLowsrc
setLowsrc.
- Parameters:
lowsrc
- aString
object.
-
getName
Deprecated.Sets or retrieves the name of the object.- Returns:
- a
String
object.
-
setName
setName.
- Parameters:
name
- aString
object.
-
getNaturalHeight
double getNaturalHeight()The original height of the image resource before sizing.- Returns:
- a double.
-
getNaturalWidth
double getNaturalWidth()The original width of the image resource before sizing.- Returns:
- a double.
-
getReferrerPolicy
String getReferrerPolicy()getReferrerPolicy.
- Returns:
- a
String
object.
-
setReferrerPolicy
setReferrerPolicy.
- Parameters:
referrerPolicy
- aString
object.
-
getSizes
String getSizes()getSizes.
- Returns:
- a
String
object.
-
setSizes
setSizes.
- Parameters:
sizes
- aString
object.
-
getSrc
String getSrc()The address or URL of the a media resource that is to be considered.- Returns:
- a
String
object.
-
setSrc
setSrc.
- Parameters:
src
- aString
object.
-
getSrcset
String getSrcset()getSrcset.
- Returns:
- a
String
object.
-
setSrcset
setSrcset.
- Parameters:
srcset
- aString
object.
-
getUseMap
String getUseMap()Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.- Returns:
- a
String
object.
-
setUseMap
setUseMap.
- Parameters:
useMap
- aString
object.
-
getVspace
Deprecated.Sets or retrieves the vertical margin for the object.- Returns:
- a double.
-
setVspace
void setVspace(double vspace) setVspace.
- Parameters:
vspace
- a double.
-
getWidth
double getWidth()Sets or retrieves the width of the object.- Returns:
- a double.
-
setWidth
void setWidth(double width) setWidth.
- Parameters:
width
- a double.
-
getX
double getX()getX.
- Returns:
- a double.
-
getY
double getY()getY.
- Returns:
- a double.
-