org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements
Class EPFont

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.BaseElementProcessor
              |
              +--org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.EPFont
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, ElementProcessor, org.apache.avalon.framework.logger.Loggable, POIFSElementProcessor

public class EPFont
extends BaseElementProcessor

No-op implementation of ElementProcessor to handle the "Font" tag This element has five attributes and also holds the name of the font as element content. This element is not used in HSSFSerializer 1.0

Author:
Marc Johnson (marc_johnson27591@hotmail.com), Andrew C. Oliver (acoliver2@users.sourceforge.net)

Fields inherited from interface org.apache.cocoon.components.elementprocessor.ElementProcessor
ROLE
 
Constructor Summary
EPFont()
          constructor
 
Method Summary
 boolean getBold()
           
 java.lang.String getFont()
           
 boolean getItalic()
           
 boolean getStrikeThrough()
           
 int getUnderline()
           
 double getUnit()
           
 void initialize(Attribute[] attributes, ElementProcessor parent)
          Override of Initialize() implementation
 
Methods inherited from class org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.BaseElementProcessor
acceptCharacters, acceptWhitespaceCharacters, endProcessing, getAncestor, getAttributes, getCell, getData, getFilesystem, getParent, getSheet, getValue, getWorkbook, setFilesystem
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPFont

public EPFont()
constructor
Method Detail

initialize

public void initialize(Attribute[] attributes,
                       ElementProcessor parent)
                throws java.io.IOException
Override of Initialize() implementation
Overrides:
initialize in class BaseElementProcessor
Parameters:
attributes - the array of Attribute instances; may be empty, will never be null
parent - the parent ElementProcessor; may be null
filesystem - the POIFSFileSystem object
Throws:
java.io.IOException - if anything is wrong

getUnit

public double getUnit()
               throws java.io.IOException
Returns:
unit
Throws:
java.io.IOException -  

getBold

public boolean getBold()
                throws java.io.IOException
Returns:
bold
Throws:
java.io.IOException -  

getItalic

public boolean getItalic()
                  throws java.io.IOException
Returns:
italic
Throws:
java.io.IOException -  

getUnderline

public int getUnderline()
                 throws java.io.IOException
Returns:
underline as one of the public variables in UnderlineType
Throws:
java.io.IOException -  

getStrikeThrough

public boolean getStrikeThrough()
                         throws java.io.IOException
Returns:
strikeThrough
Throws:
java.io.IOException -  

getFont

public java.lang.String getFont()
Returns:
name of the font


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.