This project has retired. For details please refer to its
Attic page .
EPFont (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements
Class EPFont
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.BaseElementProcessor
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.EPFont
All Implemented Interfaces: Component , LogEnabled , ElementProcessor , 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
Version:
CVS $Id: EPFont.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marc Johnson (marc_johnson27591@hotmail.com), Andrew C. Oliver (acoliver2@users.sourceforge.net)
Constructor Summary
EPFont ()
constructor
Methods inherited from class org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.BaseElementProcessor
acceptCharacters , acceptWhitespaceCharacters , getAncestor , getAttributes , getCell , getData , getFilesystem , getParent , getSheet , getValue , getWorkbook , setFilesystem
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
EPFont
public EPFont ()
constructor
initialize
public void initialize (Attribute [] attributes,
ElementProcessor parent)
throws IOException
Override of Initialize() implementation
Specified by: initialize
in interface ElementProcessor
Overrides: initialize
in class BaseElementProcessor
Parameters: attributes
- the array of Attribute instances; may be empty, will
never be nullparent
- the parent ElementProcessor; may be null
Throws:
IOException
- if anything is wrong
getUnit
public double getUnit ()
throws IOException
Returns: unit
Throws:
IOException
getBold
public boolean getBold ()
throws IOException
Returns: bold
Throws:
IOException
getItalic
public boolean getItalic ()
throws IOException
Returns: italic
Throws:
IOException
getUnderline
public int getUnderline ()
throws IOException
Returns: underline as one of the public variables in UnderlineType
Throws:
IOException
getStrikeThrough
public boolean getStrikeThrough ()
throws IOException
Returns: strikeThrough
Throws:
IOException
getFont
public String getFont ()
Returns: name of the font
endProcessing
public void endProcessing ()
throws IOException
push the data into the font
Specified by: endProcessing
in interface ElementProcessor
Overrides: endProcessing
in class BaseElementProcessor
Throws:
IOException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.