org.apache.ecs
Class Font

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.MultiPartElement
                    |
                    +--org.apache.ecs.Font

public class Font
extends MultiPartElement

This class creates a <FONT> object.

Version:
$Id: Font.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.MultiPartElement
v_element
 
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
Font()
          Basic Constructor.
Font(int size)
          Deprecated.  
Font(int size, java.lang.String face)
          Deprecated.  
Font(java.lang.String face)
          Deprecated.  
Font(java.lang.String color, int size)
          Deprecated.  
Font(java.lang.String face, java.lang.String color)
          Deprecated.  
Font(java.lang.String face, java.lang.String color, int size)
          Deprecated.  
 
Method Summary
(package private)  void ()
          Private initializer.
 Font addElement(Element element)
          Adds an Element to the Element.
 Font addElement(java.lang.String element)
          Adds an Element to the Element.
 Font setColor(java.lang.String color)
          Deprecated.  
 Font setFace(java.lang.String face)
          Deprecated.  
 Font setSize(int size)
          Deprecated.  
 Font setSize(java.lang.String size)
          Deprecated.  
 
Methods inherited from class org.apache.ecs.MultiPartElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
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

Font

public Font()
Basic Constructor. use set* methods.

Font

public Font(java.lang.String face)
Deprecated.  
Basic constructor.
Parameters:
face - create new font object with this face.

Font

public Font(java.lang.String face,
            java.lang.String color)
Deprecated.  
Basic constructor
Parameters:
face -  
color - Create a new font object with the face abd color already set. Convience colors are defined in HtmlColor interface.

Font

public Font(java.lang.String face,
            java.lang.String color,
            int size)
Deprecated.  
Basic constructor
Parameters:
face -  
color -  
size - Create a new font object with the face,color and size already set. Convience colors are defined in HtmlColor interface.

Font

public Font(int size)
Deprecated.  
Basic constructor
Parameters:
size - Create a new font object with the size already set.

Font

public Font(int size,
            java.lang.String face)
Deprecated.  
Basic constructor
Parameters:
size -  
face - Create a new font object with the size and face already set.

Font

public Font(java.lang.String color,
            int size)
Deprecated.  
Basic constructor
Parameters:
color -  
size - Create a new font object with the size and color already set.
Method Detail

void ()
Private initializer.
Overrides:
in class MultiPartElement

setFace

public Font setFace(java.lang.String face)
Deprecated.  
sets the FACE="" attribute.
Parameters:
face - sets the FACE="" attribute.

setColor

public Font setColor(java.lang.String color)
Deprecated.  
sets the COLOR="" attribute.
Parameters:
color - sets the COLOR="" attribute. Convience colors are defined in the HtmlColors interface.

setSize

public Font setSize(int size)
Deprecated.  
sets the SIZE="" attribute.
Parameters:
size - sets the SIZE="" attribute.

setSize

public Font setSize(java.lang.String size)
Deprecated.  
sets the SIZE="" attribute.
Parameters:
size - sets the SIZE="" attribute.

addElement

public Font addElement(Element element)
Adds an Element to the Element.
Parameters:
element - adds and Element to the Element.

addElement

public Font addElement(java.lang.String element)
Adds an Element to the Element.
Parameters:
element - adds and Element to the Element.