org.apache.ecs
Class Area

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

public class Area
extends SinglePartElement

This class creates a <Area> tag.

Version:
$Id: Area.java,v 1.5 1999/06/08 22:23:24 stephan Exp $
Author:
Stephan Nagy, Jon S. Stevens

Field Summary
static java.lang.String circle
           
static java.lang.String CIRCLE
           
static java.lang.String DEFAULT
           
static java.lang.String poly
           
static java.lang.String POLY
           
static java.lang.String rect
           
static java.lang.String RECT
           
 
Fields inherited from class org.apache.ecs.ConcreteElement
h_element, v_element
 
Fields inherited from class org.apache.ecs.ElementAttributes
attribute_filter, filter_attribute_state, NO_ATTRIBUTE_VALUE
 
Fields inherited from class org.apache.ecs.Element
__text, case_type, codeset, element, element_type, end_element, end_modifier, end_modifier_defined, end_tag, filter, filter_state, position, resource, start_modifier, start_modifier_defined, start_tag, VERSION
 
Constructor Summary
Area()
          Basic constructor.
Area(java.lang.String shape)
          Use the set* methods to set the values of the attributes.
Area(java.lang.String shape, int[] coords)
          Use the set* methods to set the values of the attributes.
Area(java.lang.String shape, int[] coords, java.lang.String href)
          Use the set* methods to set the values of the attributes.
Area(java.lang.String shape, java.lang.String coords)
          Use the set* methods to set the values of the attributes.
Area(java.lang.String shape, java.lang.String coords, java.lang.String href)
          Use the set* methods to set the values of the attributes.
 
Method Summary
(package private)  void ()
          Private initialization routine.
 Area addElement(Element element)
          Add an element to the element
 Area addElement(java.lang.String element)
          Add an element to the element
 Area addElement(java.lang.String hashcode, Element element)
          Adds an Element to the element.
 Area addElement(java.lang.String hashcode, java.lang.String element)
          Adds an Element to the element.
 Area removeElement(java.lang.String hashcode)
          Removes an Element from the element.
 Area setAlt(java.lang.String alt)
          Sets the ALT="" attribute
 Area setCoords(int[] coords)
          Sets the COORDS="" attribute
 Area setCoords(java.lang.String coords)
          Sets the COORDS="" attribute
 Area setHref(java.lang.String href)
          Sets the HREF="" attribute
 Area setNoHref(boolean href)
          Sets the nohref
 Area setShape(java.lang.String shape)
          Sets the SHAPE="" attribute
 Area setTabindex(int index)
          Sets the TABINDEX="" attribute
 Area setTabindex(java.lang.String index)
          Sets the TABINDEX="" attribute
 
Methods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, clone, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
Methods inherited from class org.apache.ecs.ElementAttributes
addAttribute, createStartTag, getAttributeFilter, getAttributeFilterState, hasAttribute, removeAttribute, setAttributeFilter, setAttributeFilterState, setClass, setDir, setID, setLang, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.Element
alterCase, createEndTag, getCase, getCodeSet, getElementHashEntry, getElementType, getEndModifier, getEndModifierDefined, getEndTagChar, getFilter, getFilterState, getNeedClosingTag, getStartModifier, getStartModifierDefined, getStartTagChar, getTagPosition, getTagText, getVersion, removeEndModifier, removeStartModifier, setCase, setCodeSet, setElementType, setEndModifier, setEndModifierDefined, setEndTagChar, setFilter, setFilterState, setModifier, setModifier, setNeedClosingTag, setStartModifier, setStartModifierDefined, setStartTagChar, setTagPosition, setTagText, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

DEFAULT

public static final java.lang.String DEFAULT

RECT

public static final java.lang.String RECT

CIRCLE

public static final java.lang.String CIRCLE

POLY

public static final java.lang.String POLY

rect

public static final java.lang.String rect

circle

public static final java.lang.String circle

poly

public static final java.lang.String poly
Constructor Detail

Area

public Area()
Basic constructor. Use the set* methods to set the values of the attributes.

Area

public Area(java.lang.String shape)
Use the set* methods to set the values of the attributes.
Parameters:
shape - the SHAPE="" attribute

Area

public Area(java.lang.String shape,
            java.lang.String coords)
Use the set* methods to set the values of the attributes.
Parameters:
shape - the SHAPE="" attribute
coords - the COORDS="" attribute

Area

public Area(java.lang.String shape,
            int[] coords)
Use the set* methods to set the values of the attributes.
Parameters:
shape - the SHAPE="" attribute
coords - the COORDS="" attribute

Area

public Area(java.lang.String shape,
            java.lang.String coords,
            java.lang.String href)
Use the set* methods to set the values of the attributes.
Parameters:
shape - the SHAPE="" attribute
coords - the COORDS="" attribute
href - the HREF="" attribute

Area

public Area(java.lang.String shape,
            int[] coords,
            java.lang.String href)
Use the set* methods to set the values of the attributes.
Parameters:
shape - the SHAPE="" attribute
coords - the COORDS="" attribute
href - the HREF="" attribute
Method Detail

void ()
Private initialization routine.
Overrides:
in class SinglePartElement

setShape

public Area setShape(java.lang.String shape)
Sets the SHAPE="" attribute
Parameters:
shape - the SHAPE="" attribute

setCoords

public Area setCoords(java.lang.String coords)
Sets the COORDS="" attribute
Parameters:
coords - the COORDS="" attribute

setCoords

public Area setCoords(int[] coords)
Sets the COORDS="" attribute
Parameters:
coords - the COORDS="" attribute

setHref

public Area setHref(java.lang.String href)
Sets the HREF="" attribute
Parameters:
href - the HREF="" attribute

setAlt

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

setTabindex

public Area setTabindex(java.lang.String index)
Sets the TABINDEX="" attribute
Parameters:
alt - the TABINDEX="" attribute

setTabindex

public Area setTabindex(int index)
Sets the TABINDEX="" attribute
Parameters:
alt - the TABINDEX="" attribute

setNoHref

public Area setNoHref(boolean href)
Sets the nohref
Parameters:
href - true or false

addElement

public Area addElement(java.lang.String hashcode,
                       Element element)
Adds an Element to the element.
Parameters:
hashcode - name of element for hash table
element - Adds an Element to the element.

addElement

public Area addElement(java.lang.String hashcode,
                       java.lang.String element)
Adds an Element to the element.
Parameters:
hashcode - name of element for hash table
element - Adds an Element to the element.

addElement

public Area addElement(java.lang.String element)
Add an element to the element
Parameters:
element - a string representation of the element

addElement

public Area addElement(Element element)
Add an element to the element
Parameters:
element - an element to add

removeElement

public Area removeElement(java.lang.String hashcode)
Removes an Element from the element.
Parameters:
hashcode - the name of the element to be removed.