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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.BaseElementProcessor
          extended by org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.EPStyle
All Implemented Interfaces:
Component, LogEnabled, ElementProcessor, POIFSElementProcessor

public class EPStyle
extends BaseElementProcessor

No-op implementation of ElementProcessor to handle the "Style" tag This element is a container of other elements and has several attributes This element is not used in HSSFSerializer 1.0

Version:
CVS $Id: EPStyle.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marc Johnson (marc_johnson27591@hotmail.com), Andrew C. Oliver (acoliver2@users.sourceforge.net)

Field Summary
 
Fields inherited from interface org.apache.cocoon.components.elementprocessor.ElementProcessor
ROLE
 
Constructor Summary
EPStyle()
          constructor
 
Method Summary
 ColorCode getBackgroundColor()
           
 ColorCode getForegroundColor()
           
 String getFormat()
           
 int getIndent()
           
 ColorCode getPatternColor()
           
 int getShade()
           
 boolean getWrapText()
           
 void initialize(Attribute[] attributes, ElementProcessor parent)
          Override of Initialize() implementation
 boolean isHorizontalCenter()
           
 boolean isHorizontalCenterAcrossSelection()
           
 boolean isHorizontalFill()
           
 boolean isHorizontalGeneral()
           
 boolean isHorizontalJustify()
           
 boolean isHorizontalLeft()
           
 boolean isHorizontalRight()
           
 boolean isStyleOrientationHoriz()
           
 boolean isStyleOrientationVertHorizText()
           
 boolean isStyleOrientationVertVertText()
           
 boolean isStyleOrientationVertVertText2()
           
 boolean isValid()
           
 boolean isVerticalBottom()
           
 boolean isVerticalCenter()
           
 boolean isVerticalJustify()
           
 boolean isVerticalTop()
           
 
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.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPStyle

public EPStyle()
constructor

Method Detail

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 null
parent - the parent ElementProcessor; may be null
Throws:
IOException - if anything is wrong

isHorizontalGeneral

public boolean isHorizontalGeneral()
                            throws IOException
Returns:
true if horizontal alignment general bit is set
Throws:
IOException

isHorizontalLeft

public boolean isHorizontalLeft()
                         throws IOException
Returns:
true if horizontal alignment left bit is set
Throws:
IOException

isHorizontalRight

public boolean isHorizontalRight()
                          throws IOException
Returns:
true if horizontal alignment right bit is set
Throws:
IOException

isHorizontalCenter

public boolean isHorizontalCenter()
                           throws IOException
Returns:
true if horizontal alignment center bit is set
Throws:
IOException

isHorizontalFill

public boolean isHorizontalFill()
                         throws IOException
Returns:
true if horizontal alignment fill bit is set
Throws:
IOException

isHorizontalJustify

public boolean isHorizontalJustify()
                            throws IOException
Returns:
true if horizontal alignment justify bit is set
Throws:
IOException

isHorizontalCenterAcrossSelection

public boolean isHorizontalCenterAcrossSelection()
                                          throws IOException
Returns:
true if horizontal alignment center across selection bit is set
Throws:
IOException

isVerticalTop

public boolean isVerticalTop()
                      throws IOException
Returns:
true if vertical alignment top bit is set
Throws:
IOException

isVerticalBottom

public boolean isVerticalBottom()
                         throws IOException
Returns:
true if vertical alignment bottom bit is set
Throws:
IOException

isVerticalCenter

public boolean isVerticalCenter()
                         throws IOException
Returns:
true if vertical alignment center bit is set
Throws:
IOException

isVerticalJustify

public boolean isVerticalJustify()
                          throws IOException
Returns:
true if vertical alignment justify bit is set
Throws:
IOException

getWrapText

public boolean getWrapText()
                    throws IOException
Returns:
true if wrap text is enabled
Throws:
IOException

isStyleOrientationHoriz

public boolean isStyleOrientationHoriz()
                                throws IOException
Returns:
true if style orientation horiz bit is set
Throws:
IOException

isStyleOrientationVertHorizText

public boolean isStyleOrientationVertHorizText()
                                        throws IOException
Returns:
true if style orientation vert horiz text bit is set
Throws:
IOException

isStyleOrientationVertVertText

public boolean isStyleOrientationVertVertText()
                                       throws IOException
Returns:
true if style orientation vert vert text bit is set
Throws:
IOException

isStyleOrientationVertVertText2

public boolean isStyleOrientationVertVertText2()
                                        throws IOException
Returns:
true if style orientation vert vert text2 bit is set
Throws:
IOException

getShade

public int getShade()
             throws IOException
Returns:
shade as one of the public variables in StyleShading
Throws:
IOException

getIndent

public int getIndent()
              throws IOException
Returns:
indent
Throws:
IOException

getForegroundColor

public ColorCode getForegroundColor()
                             throws IOException
Returns:
foreground color
Throws:
IOException

getBackgroundColor

public ColorCode getBackgroundColor()
                             throws IOException
Returns:
background color
Throws:
IOException

getPatternColor

public ColorCode getPatternColor()
                          throws IOException
Returns:
pattern color
Throws:
IOException

getFormat

public String getFormat()
                 throws IOException
Returns:
format string
Throws:
IOException

isValid

public boolean isValid()
Returns:
validity (used to determine whether this is a big wasteful region with no purpose (gnumeric does this)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.