001/* 002 * Copyright (c) 2003 World Wide Web Consortium, 003 * (Massachusetts Institute of Technology, Institut National de 004 * Recherche en Informatique et en Automatique, Keio University). All 005 * Rights Reserved. This program is distributed under the W3C's Software 006 * Intellectual Property License. This program is distributed in the 007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even 008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 009 * PURPOSE. 010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details. 011 */ 012 013package org.w3c.dom.html2; 014 015/** 016 * Embedded image. See the IMG element definition in HTML 4.01. 017 * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>. 018 */ 019public interface HTMLImageElement extends HTMLElement { 020 /** 021 * The name of the element (for backwards compatibility). 022 */ 023 public String getName(); 024 /** 025 * The name of the element (for backwards compatibility). 026 */ 027 public void setName(String name); 028 029 /** 030 * Aligns this object (vertically or horizontally) with respect to its 031 * surrounding text. See the align attribute definition in HTML 4.01. 032 * This attribute is deprecated in HTML 4.01. 033 */ 034 public String getAlign(); 035 /** 036 * Aligns this object (vertically or horizontally) with respect to its 037 * surrounding text. See the align attribute definition in HTML 4.01. 038 * This attribute is deprecated in HTML 4.01. 039 */ 040 public void setAlign(String align); 041 042 /** 043 * Alternate text for user agents not rendering the normal content of this 044 * element. See the alt attribute definition in HTML 4.01. 045 */ 046 public String getAlt(); 047 /** 048 * Alternate text for user agents not rendering the normal content of this 049 * element. See the alt attribute definition in HTML 4.01. 050 */ 051 public void setAlt(String alt); 052 053 /** 054 * Width of border around image. See the border attribute definition in 055 * HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the 056 * type of this attribute was <code>DOMString</code> in DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>] 057 * . 058 */ 059 public String getBorder(); 060 /** 061 * Width of border around image. See the border attribute definition in 062 * HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the 063 * type of this attribute was <code>DOMString</code> in DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>] 064 * . 065 */ 066 public void setBorder(String border); 067 068 /** 069 * Height of the image in pixels. See the height attribute definition in 070 * HTML 4.01. Note that the type of this attribute was 071 * <code>DOMString</code> in DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>]. 072 * @version DOM Level 2 073 */ 074 public int getHeight(); 075 /** 076 * Height of the image in pixels. See the height attribute definition in 077 * HTML 4.01. Note that the type of this attribute was 078 * <code>DOMString</code> in DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>]. 079 * @version DOM Level 2 080 */ 081 public void setHeight(int height); 082 083 /** 084 * Horizontal space to the left and right of this image in pixels. See the 085 * hspace attribute definition in HTML 4.01. This attribute is 086 * deprecated in HTML 4.01. Note that the type of this attribute was 087 * <code>DOMString</code> in DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>]. 088 * @version DOM Level 2 089 */ 090 public int getHspace(); 091 /** 092 * Horizontal space to the left and right of this image in pixels. See the 093 * hspace attribute definition in HTML 4.01. This attribute is 094 * deprecated in HTML 4.01. Note that the type of this attribute was 095 * <code>DOMString</code> in DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>]. 096 * @version DOM Level 2 097 */ 098 public void setHspace(int hspace); 099 100 /** 101 * Use server-side image map. See the ismap attribute definition in HTML 102 * 4.01. 103 */ 104 public boolean getIsMap(); 105 /** 106 * Use server-side image map. See the ismap attribute definition in HTML 107 * 4.01. 108 */ 109 public void setIsMap(boolean isMap); 110 111 /** 112 * URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating a long description of this image or frame. See the 113 * longdesc attribute definition in HTML 4.01. 114 */ 115 public String getLongDesc(); 116 /** 117 * URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating a long description of this image or frame. See the 118 * longdesc attribute definition in HTML 4.01. 119 */ 120 public void setLongDesc(String longDesc); 121 122 /** 123 * URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating the source of this image. See the src attribute 124 * definition in HTML 4.01. 125 */ 126 public String getSrc(); 127 /** 128 * URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating the source of this image. See the src attribute 129 * definition in HTML 4.01. 130 */ 131 public void setSrc(String src); 132 133 /** 134 * Use client-side image map. See the usemap attribute definition in HTML 135 * 4.01. 136 */ 137 public String getUseMap(); 138 /** 139 * Use client-side image map. See the usemap attribute definition in HTML 140 * 4.01. 141 */ 142 public void setUseMap(String useMap); 143 144 /** 145 * Vertical space above and below this image in pixels. See the vspace 146 * attribute definition in HTML 4.01. This attribute is deprecated in 147 * HTML 4.01. Note that the type of this attribute was "DOMString" in 148 * DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>]. 149 * @version DOM Level 2 150 */ 151 public int getVspace(); 152 /** 153 * Vertical space above and below this image in pixels. See the vspace 154 * attribute definition in HTML 4.01. This attribute is deprecated in 155 * HTML 4.01. Note that the type of this attribute was "DOMString" in 156 * DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>]. 157 * @version DOM Level 2 158 */ 159 public void setVspace(int vspace); 160 161 /** 162 * The width of the image in pixels. See the width attribute definition in 163 * HTML 4.01. Note that the type of this attribute was 164 * <code>DOMString</code> in DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>]. 165 * @version DOM Level 2 166 */ 167 public int getWidth(); 168 /** 169 * The width of the image in pixels. See the width attribute definition in 170 * HTML 4.01. Note that the type of this attribute was 171 * <code>DOMString</code> in DOM Level 1 HTML [<a href='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>]. 172 * @version DOM Level 2 173 */ 174 public void setWidth(int width); 175 176}