Module jdk.xml.dom

Interface HTMLImageElement

All Superinterfaces:
Element, HTMLElement, Node

public interface HTMLImageElement extends HTMLElement
Embedded image. See the IMG element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Since:
1.4, DOM Level 2
  • Method Details

    • getLowSrc

      String getLowSrc()
      URI designating the source of this image, for low-resolution output.
    • setLowSrc

      void setLowSrc(String lowSrc)
    • getName

      String getName()
      The name of the element (for backwards compatibility).
    • setName

      void setName(String name)
    • getAlign

      String getAlign()
      Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setAlign

      void setAlign(String align)
    • getAlt

      String getAlt()
      Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0.
    • setAlt

      void setAlt(String alt)
    • getBorder

      String getBorder()
      Width of border around image. See the border attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setBorder

      void setBorder(String border)
    • getHeight

      String getHeight()
      Override height. See the height attribute definition in HTML 4.0.
    • setHeight

      void setHeight(String height)
    • getHspace

      String getHspace()
      Horizontal space to the left and right of this image. See the hspace attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setHspace

      void setHspace(String hspace)
    • getIsMap

      boolean getIsMap()
      Use server-side image map. See the ismap attribute definition in HTML 4.0.
    • setIsMap

      void setIsMap(boolean isMap)
    • getLongDesc

      String getLongDesc()
      URI designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.0.
    • setLongDesc

      void setLongDesc(String longDesc)
    • getSrc

      String getSrc()
      URI designating the source of this image. See the src attribute definition in HTML 4.0.
    • setSrc

      void setSrc(String src)
    • getUseMap

      String getUseMap()
      Use client-side image map. See the usemap attribute definition in HTML 4.0.
    • setUseMap

      void setUseMap(String useMap)
    • getVspace

      String getVspace()
      Vertical space above and below this image. See the vspace attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setVspace

      void setVspace(String vspace)
    • getWidth

      String getWidth()
      Override width. See the width attribute definition in HTML 4.0.
    • setWidth

      void setWidth(String width)