1/* 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * 4 * This code is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License version 2 only, as 6 * published by the Free Software Foundation. Oracle designates this 7 * particular file as subject to the "Classpath" exception as provided 8 * by Oracle in the LICENSE file that accompanied this code. 9 * 10 * This code is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * version 2 for more details (a copy is included in the LICENSE file that 14 * accompanied this code). 15 * 16 * You should have received a copy of the GNU General Public License version 17 * 2 along with this work; if not, write to the Free Software Foundation, 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 */ 24 25/* 26 * This file is available under and governed by the GNU General Public 27 * License version 2 only, as published by the Free Software Foundation. 28 * However, the following notice accompanied the original version of this 29 * file and, per its terms, should not be removed: 30 * 31 * Copyright (c) 2000 World Wide Web Consortium, 32 * (Massachusetts Institute of Technology, Institut National de 33 * Recherche en Informatique et en Automatique, Keio University). All 34 * Rights Reserved. This program is distributed under the W3C's Software 35 * Intellectual Property License. This program is distributed in the 36 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even 37 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 38 * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more 39 * details. 40 */ 41 42package org.w3c.dom.html; 43 44/** 45 * Embedded image. See the IMG element definition in HTML 4.0. 46 * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>. 47 * 48 * @since 1.4, DOM Level 2 49 */ 50public interface HTMLImageElement extends HTMLElement { 51 /** 52 * URI designating the source of this image, for low-resolution output. 53 */ 54 public String getLowSrc(); 55 public void setLowSrc(String lowSrc); 56 57 /** 58 * The name of the element (for backwards compatibility). 59 */ 60 public String getName(); 61 public void setName(String name); 62 63 /** 64 * Aligns this object (vertically or horizontally) with respect to its 65 * surrounding text. See the align attribute definition in HTML 4.0. 66 * This attribute is deprecated in HTML 4.0. 67 */ 68 public String getAlign(); 69 public void setAlign(String align); 70 71 /** 72 * Alternate text for user agents not rendering the normal content of 73 * this element. See the alt attribute definition in HTML 4.0. 74 */ 75 public String getAlt(); 76 public void setAlt(String alt); 77 78 /** 79 * Width of border around image. See the border attribute definition in 80 * HTML 4.0. This attribute is deprecated in HTML 4.0. 81 */ 82 public String getBorder(); 83 public void setBorder(String border); 84 85 /** 86 * Override height. See the height attribute definition in HTML 4.0. 87 */ 88 public String getHeight(); 89 public void setHeight(String height); 90 91 /** 92 * Horizontal space to the left and right of this image. See the hspace 93 * attribute definition in HTML 4.0. This attribute is deprecated in HTML 94 * 4.0. 95 */ 96 public String getHspace(); 97 public void setHspace(String hspace); 98 99 /** 100 * Use server-side image map. See the ismap attribute definition in HTML 101 * 4.0. 102 */ 103 public boolean getIsMap(); 104 public void setIsMap(boolean isMap); 105 106 /** 107 * URI designating a long description of this image or frame. See the 108 * longdesc attribute definition in HTML 4.0. 109 */ 110 public String getLongDesc(); 111 public void setLongDesc(String longDesc); 112 113 /** 114 * URI designating the source of this image. See the src attribute 115 * definition in HTML 4.0. 116 */ 117 public String getSrc(); 118 public void setSrc(String src); 119 120 /** 121 * Use client-side image map. See the usemap attribute definition in 122 * HTML 4.0. 123 */ 124 public String getUseMap(); 125 public void setUseMap(String useMap); 126 127 /** 128 * Vertical space above and below this image. See the vspace attribute 129 * definition in HTML 4.0. This attribute is deprecated in HTML 4.0. 130 */ 131 public String getVspace(); 132 public void setVspace(String vspace); 133 134 /** 135 * Override width. See the width attribute definition in HTML 4.0. 136 */ 137 public String getWidth(); 138 public void setWidth(String width); 139 140} 141