Source for org.w3c.dom.html2.HTMLImageElement

   1: /*
   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
   9:  * PURPOSE.
  10:  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11:  */
  12: 
  13: package org.w3c.dom.html2;
  14: 
  15: /**
  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>.
  18:  */
  19: public interface HTMLImageElement extends HTMLElement {
  20:     /**
  21:      * The name of the element (for backwards compatibility). 
  22:      */
  23:     public String getName();
  24:     /**
  25:      * The name of the element (for backwards compatibility). 
  26:      */
  27:     public void setName(String name);
  28: 
  29:     /**
  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.
  33:      */
  34:     public String getAlign();
  35:     /**
  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.
  39:      */
  40:     public void setAlign(String align);
  41: 
  42:     /**
  43:      * Alternate text for user agents not rendering the normal content of this 
  44:      * element. See the alt attribute definition in HTML 4.01.
  45:      */
  46:     public String getAlt();
  47:     /**
  48:      * Alternate text for user agents not rendering the normal content of this 
  49:      * element. See the alt attribute definition in HTML 4.01.
  50:      */
  51:     public void setAlt(String alt);
  52: 
  53:     /**
  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>]
  57:      * .
  58:      */
  59:     public String getBorder();
  60:     /**
  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>]
  64:      * .
  65:      */
  66:     public void setBorder(String border);
  67: 
  68:     /**
  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
  73:      */
  74:     public int getHeight();
  75:     /**
  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
  80:      */
  81:     public void setHeight(int height);
  82: 
  83:     /**
  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
  89:      */
  90:     public int getHspace();
  91:     /**
  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
  97:      */
  98:     public void setHspace(int hspace);
  99: 
 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: }