org.apache.ecs
Class BaseFont

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

public class BaseFont
extends SinglePartElement

This class creates a <BASEFONT> object.

Version:
$Id: BaseFont.java,v 1.4 1999/05/06 21:55:01 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.ElementAttributes
attribute_filter, end_modifier, end_modifier_defined, filter_attribute_state, NO_ATTRIBUTE_VALUE, start_modifier, start_modifier_defined
 
Fields inherited from class org.apache.ecs.Element
case_type, codeset, element, end_element, filter, filter_state, position, VERSION
 
Constructor Summary
BaseFont()
          Basic Constructor.
BaseFont(int size, java.lang.String face)
          Basic constructor
BaseFont(java.lang.String face)
          Basic constructor.
BaseFont(java.lang.String color, int size)
          Basic constructor
BaseFont(java.lang.String face, java.lang.String color)
          Basic constructor
BaseFont(java.lang.String face, java.lang.String color, int size)
          Basic constructor
 
Method Summary
(package private)  void ()
          Private initializer.
 BaseFont setColor(java.lang.String color)
          sets the COLOR="" attribute.
 BaseFont setFace(java.lang.String face)
          sets the FACE="" attribute.
 BaseFont setSize(int size)
          sets the SIZE="" attribute.
 BaseFont setSize(java.lang.String size)
          sets the SIZE="" attribute.
 
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
addAttribute, clone, getAttributeFilter, getAttributeFilterState, getEndModifier, getEndModifierDefined, getStartModifier, getStartModifierDefined, hasAttribute, removeAttribute, removeEndModifier, removeStartModifier, setAttributeFilter, setAttributeFilterState, setClass, setDir, setEndModifier, setEndModifierDefined, setID, setLang, setModifier, setModifier, setStartModifier, setStartModifierDefined, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.Element
alterCase, getCase, getCodeSet, getElementHashEntry, getElementType, getFilter, getFilterState, getNeedClosingTag, getTagPosition, getVersion, setCase, setCodeSet, setElementType, setFilter, setFilterState, setNeedClosingTag, setTagPosition, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

BaseFont

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

BaseFont

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

BaseFont

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

BaseFont

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

BaseFont

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

BaseFont

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

void ()
Private initializer.
Overrides:
in class SinglePartElement

setFace

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

setColor

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

setSize

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

setSize

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