2 * Copyright (c) 2003 World Wide Web Consortium,
3 * (Massachusetts Institute of Technology, Institut National de
4 * Recherche en Informatique et en Automatique, Keio University). All
5 * Rights Reserved. This program is distributed under the W3C's Software
6 * Intellectual Property License. This program is distributed in the
7 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
13 package org.w3c.dom.html2;
16 * Embedded image. See the IMG element definition in HTML 4.01.
17 * <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>.
19 public interface HTMLImageElement extends HTMLElement {
21 * The name of the element (for backwards compatibility).
23 public String getName();
25 * The name of the element (for backwards compatibility).
27 public void setName(String name);
30 * Aligns this object (vertically or horizontally) with respect to its
31 * surrounding text. See the align attribute definition in HTML 4.01.
32 * This attribute is deprecated in HTML 4.01.
34 public String getAlign();
36 * Aligns this object (vertically or horizontally) with respect to its
37 * surrounding text. See the align attribute definition in HTML 4.01.
38 * This attribute is deprecated in HTML 4.01.
40 public void setAlign(String align);
43 * Alternate text for user agents not rendering the normal content of this
44 * element. See the alt attribute definition in HTML 4.01.
46 public String getAlt();
48 * Alternate text for user agents not rendering the normal content of this
49 * element. See the alt attribute definition in HTML 4.01.
51 public void setAlt(String alt);
54 * Width of border around image. See the border attribute definition in
55 * HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the
56 * 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>]
59 public String getBorder();
61 * Width of border around image. See the border attribute definition in
62 * HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the
63 * 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>]
66 public void setBorder(String border);
69 * Height of the image in pixels. See the height attribute definition in
70 * HTML 4.01. Note that the type of this attribute was
71 * <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>].
72 * @version DOM Level 2
74 public int getHeight();
76 * Height of the image in pixels. See the height attribute definition in
77 * HTML 4.01. Note that the type of this attribute was
78 * <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>].
79 * @version DOM Level 2
81 public void setHeight(int height);
84 * Horizontal space to the left and right of this image in pixels. See the
85 * hspace attribute definition in HTML 4.01. This attribute is
86 * deprecated in HTML 4.01. Note that the type of this attribute was
87 * <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>].
88 * @version DOM Level 2
90 public int getHspace();
92 * Horizontal space to the left and right of this image in pixels. See the
93 * hspace attribute definition in HTML 4.01. This attribute is
94 * deprecated in HTML 4.01. Note that the type of this attribute was
95 * <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>].
96 * @version DOM Level 2
98 public void setHspace(int hspace);
101 * Use server-side image map. See the ismap attribute definition in HTML
104 public boolean getIsMap();
106 * Use server-side image map. See the ismap attribute definition in HTML
109 public void setIsMap(boolean isMap);
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.
115 public String getLongDesc();
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.
120 public void setLongDesc(String longDesc);
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.
126 public String getSrc();
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.
131 public void setSrc(String src);
134 * Use client-side image map. See the usemap attribute definition in HTML
137 public String getUseMap();
139 * Use client-side image map. See the usemap attribute definition in HTML
142 public void setUseMap(String useMap);
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
151 public int getVspace();
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
159 public void setVspace(int vspace);
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
167 public int getWidth();
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
174 public void setWidth(int width);