KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > dom > html2 > HTMLImageElement


1 /*
2     GNU LESSER GENERAL PUBLIC LICENSE
3     Copyright (C) 2006 The Lobo Project
4
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Lesser General Public
7     License as published by the Free Software Foundation; either
8     version 2.1 of the License, or (at your option) any later version.
9
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13     Lesser General Public License for more details.
14
15     You should have received a copy of the GNU Lesser General Public
16     License along with this library; if not, write to the Free Software
17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19     Contact info: xamjadmin@users.sourceforge.net
20 */

21 /*
22  * Copyright (c) 2003 World Wide Web Consortium,
23  * (Massachusetts Institute of Technology, Institut National de
24  * Recherche en Informatique et en Automatique, Keio University). All
25  * Rights Reserved. This program is distributed under the W3C's Software
26  * Intellectual Property License. This program is distributed in the
27  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
28  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
29  * PURPOSE.
30  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
31  */

32
33 package org.w3c.dom.html2;
34
35 /**
36  * Embedded image. See the IMG element definition in HTML 4.01.
37  * <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>.
38  */

39 public interface HTMLImageElement extends HTMLElement {
40     /**
41      * The name of the element (for backwards compatibility).
42      */

43     public String JavaDoc getName();
44     /**
45      * The name of the element (for backwards compatibility).
46      */

47     public void setName(String JavaDoc name);
48
49     /**
50      * Aligns this object (vertically or horizontally) with respect to its
51      * surrounding text. See the align attribute definition in HTML 4.01.
52      * This attribute is deprecated in HTML 4.01.
53      */

54     public String JavaDoc getAlign();
55     /**
56      * Aligns this object (vertically or horizontally) with respect to its
57      * surrounding text. See the align attribute definition in HTML 4.01.
58      * This attribute is deprecated in HTML 4.01.
59      */

60     public void setAlign(String JavaDoc align);
61
62     /**
63      * Alternate text for user agents not rendering the normal content of this
64      * element. See the alt attribute definition in HTML 4.01.
65      */

66     public String JavaDoc getAlt();
67     /**
68      * Alternate text for user agents not rendering the normal content of this
69      * element. See the alt attribute definition in HTML 4.01.
70      */

71     public void setAlt(String JavaDoc alt);
72
73     /**
74      * Width of border around image. See the border attribute definition in
75      * HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the
76      * 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>]
77      * .
78      */

79     public String JavaDoc getBorder();
80     /**
81      * Width of border around image. See the border attribute definition in
82      * HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the
83      * 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>]
84      * .
85      */

86     public void setBorder(String JavaDoc border);
87
88     /**
89      * Height of the image in pixels. See the height attribute definition in
90      * HTML 4.01. Note that the type of this attribute was
91      * <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>].
92      * @version DOM Level 2
93      */

94     public int getHeight();
95     /**
96      * Height of the image in pixels. See the height attribute definition in
97      * HTML 4.01. Note that the type of this attribute was
98      * <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>].
99      * @version DOM Level 2
100      */

101     public void setHeight(int height);
102
103     /**
104      * Horizontal space to the left and right of this image in pixels. See the
105      * hspace attribute definition in HTML 4.01. This attribute is
106      * deprecated in HTML 4.01. Note that the type of this attribute was
107      * <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>].
108      * @version DOM Level 2
109      */

110     public int getHspace();
111     /**
112      * Horizontal space to the left and right of this image in pixels. See the
113      * hspace attribute definition in HTML 4.01. This attribute is
114      * deprecated in HTML 4.01. Note that the type of this attribute was
115      * <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>].
116      * @version DOM Level 2
117      */

118     public void setHspace(int hspace);
119
120     /**
121      * Use server-side image map. See the ismap attribute definition in HTML
122      * 4.01.
123      */

124     public boolean getIsMap();
125     /**
126      * Use server-side image map. See the ismap attribute definition in HTML
127      * 4.01.
128      */

129     public void setIsMap(boolean isMap);
130
131     /**
132      * 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
133      * longdesc attribute definition in HTML 4.01.
134      */

135     public String JavaDoc getLongDesc();
136     /**
137      * 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
138      * longdesc attribute definition in HTML 4.01.
139      */

140     public void setLongDesc(String JavaDoc longDesc);
141
142     /**
143      * URI [<a HREF='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating the source of this image. See the src attribute
144      * definition in HTML 4.01.
145      */

146     public String JavaDoc getSrc();
147     /**
148      * URI [<a HREF='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating the source of this image. See the src attribute
149      * definition in HTML 4.01.
150      */

151     public void setSrc(String JavaDoc src);
152
153     /**
154      * Use client-side image map. See the usemap attribute definition in HTML
155      * 4.01.
156      */

157     public String JavaDoc getUseMap();
158     /**
159      * Use client-side image map. See the usemap attribute definition in HTML
160      * 4.01.
161      */

162     public void setUseMap(String JavaDoc useMap);
163
164     /**
165      * Vertical space above and below this image in pixels. See the vspace
166      * attribute definition in HTML 4.01. This attribute is deprecated in
167      * HTML 4.01. Note that the type of this attribute was "DOMString" in
168      * DOM Level 1 HTML [<a HREF='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>].
169      * @version DOM Level 2
170      */

171     public int getVspace();
172     /**
173      * Vertical space above and below this image in pixels. See the vspace
174      * attribute definition in HTML 4.01. This attribute is deprecated in
175      * HTML 4.01. Note that the type of this attribute was "DOMString" in
176      * DOM Level 1 HTML [<a HREF='http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001'>DOM Level 1</a>].
177      * @version DOM Level 2
178      */

179     public void setVspace(int vspace);
180
181     /**
182      * The width of the image in pixels. See the width attribute definition in
183      * HTML 4.01. Note that the type of this attribute was
184      * <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>].
185      * @version DOM Level 2
186      */

187     public int getWidth();
188     /**
189      * The width of the image in pixels. See the width attribute definition in
190      * HTML 4.01. Note that the type of this attribute was
191      * <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>].
192      * @version DOM Level 2
193      */

194     public void setWidth(int width);
195
196 }
197
Popular Tags