org.apache.ecs
Class IMG

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.SinglePartElement
                    |
                    +--org.apache.ecs.IMG

public class IMG
extends SinglePartElement

This class creates an <IMG> tag.

Version:
$Id: IMG.java,v 1.1.1.1 1999/04/20 01:18:57 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

Fields inherited from class org.apache.ecs.Element
attribute_filter, case_type, codeset, element, end_element, end_modifier, end_modifier_defined, filter, filter_attribute_state, filter_state, NO_ATTRIBUTE_VALUE, start_modifier, start_modifier_defined, VERSION
 
Constructor Summary
IMG()
          Basic constructor.
IMG(java.lang.String src)
          Creates an IMG tag
IMG(java.lang.String src, int border)
          Creates an IMG tag
IMG(java.lang.String src, java.lang.String name)
          Creates an IMG tag
IMG(java.lang.String src, java.lang.String name, int border)
          Creates an IMG tag
 
Method Summary
(package private)  void ()
          Private initialization routine.
 IMG setAlign(java.lang.String align)
          Sets the ALIGN="" attribute
 IMG setAlt(java.lang.String alt)
          Sets the ALT="" attribute
 IMG setBorder(int border)
          Sets the BORDER="" attribute
 IMG setHeight(int height)
          Sets the HEIGHT="" attribute
 IMG setHeight(java.lang.String height)
          Sets the HEIGHT="" attribute
 IMG setHspace(int hspace)
          Sets the HSPACE="" attribute
 IMG setHspace(java.lang.String hspace)
          Sets the HSPACE="" attribute
 IMG setIsMap(boolean ismap)
          Sets the ISMAP attribute
 IMG setName(java.lang.String name)
          Sets the NAME="" attribute
 IMG setSrc(java.lang.String src)
          Sets the SRC="" attribute
 IMG setUseMap(java.lang.String usemap)
          Sets the USMAP="" attribute
 IMG setVspace(int vspace)
          Sets the VSPACE="" attribute
 IMG setVspace(java.lang.String vspace)
          Sets the VSPACE="" attribute
 IMG setWidth(int width)
          Sets the WIDTH="" attribute
 IMG setWidth(java.lang.String width)
          Sets the WIDTH="" attribute
 
Methods inherited from class org.apache.ecs.SinglePartElement
output, output
 
Methods inherited from class org.apache.ecs.ElementAttributes
setClass, setDir, setID, setLang, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.Element
addAttribute, alterCase, getAttributeFilterState, getCase, getCodeSet, getElementHashEntry, getEndModifier, getEndModifierDefined, getFilter, getFilterState, getHtmlElementType, getNeedClosingTag, getStartModifier, getStartModifierDefined, getVersion, hasAttribute, removeAttribute, removeEndModifier, removeStartModifier, setAttributeFilter, setAttributeFilterState, setCase, setCodeSet, setEndModifier, setEndModifierDefined, setFilter, setFilterState, setHtmlElementType, setModifier, setModifier, setNeedClosingTag, setStartModifier, setStartModifierDefined, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

IMG

public IMG()
Basic constructor. Use the set* methods to set the attibutes.

IMG

public IMG(java.lang.String src)
Creates an IMG tag
Parameters:
src - the SRC="" attribute

IMG

public IMG(java.lang.String src,
           int border)
Creates an IMG tag
Parameters:
src - the SRC="" attribute
border - the BORDER="" attribute

IMG

public IMG(java.lang.String src,
           java.lang.String name)
Creates an IMG tag
Parameters:
src - the SRC="" attribute
name - the NAME="" attribute

IMG

public IMG(java.lang.String src,
           java.lang.String name,
           int border)
Creates an IMG tag
Parameters:
src - the SRC="" attribute
name - the NAME="" attribute
border - the BORDER="" attribute
Method Detail

void ()
Private initialization routine.
Overrides:
in class java.lang.Object

setSrc

public IMG setSrc(java.lang.String src)
Sets the SRC="" attribute
Parameters:
src - the SRC="" attribute

setBorder

public IMG setBorder(int border)
Sets the BORDER="" attribute
Parameters:
border - the BORDER="" attribute

setName

public IMG setName(java.lang.String name)
Sets the NAME="" attribute
Parameters:
name - the NAME="" attribute

setHeight

public IMG setHeight(java.lang.String height)
Sets the HEIGHT="" attribute
Parameters:
height - the HEIGHT="" attribute

setHeight

public IMG setHeight(int height)
Sets the HEIGHT="" attribute
Parameters:
height - the HEIGHT="" attribute

setWidth

public IMG setWidth(java.lang.String width)
Sets the WIDTH="" attribute
Parameters:
width - the WIDTH="" attribute

setWidth

public IMG setWidth(int width)
Sets the WIDTH="" attribute
Parameters:
width - the WIDTH="" attribute

setAlt

public IMG setAlt(java.lang.String alt)
Sets the ALT="" attribute
Parameters:
alt - the ALT="" attribute

setIsMap

public IMG setIsMap(boolean ismap)
Sets the ISMAP attribute
Parameters:
ismap - the ISMAP attribute

setUseMap

public IMG setUseMap(java.lang.String usemap)
Sets the USMAP="" attribute
Parameters:
usemap - the USMAP="" attribute

setAlign

public IMG setAlign(java.lang.String align)
Sets the ALIGN="" attribute
Parameters:
align - the ALIGN="" attribute

setHspace

public IMG setHspace(java.lang.String hspace)
Sets the HSPACE="" attribute
Parameters:
hspace - the HSPACE="" attribute

setHspace

public IMG setHspace(int hspace)
Sets the HSPACE="" attribute
Parameters:
hspace - the HSPACE="" attribute

setVspace

public IMG setVspace(java.lang.String vspace)
Sets the VSPACE="" attribute
Parameters:
vspace - the VSPACE="" attribute

setVspace

public IMG setVspace(int vspace)
Sets the VSPACE="" attribute
Parameters:
vspace - the VSPACE="" attribute