org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements
Class EPStyle
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.EPStyle
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, ElementProcessor, org.apache.avalon.framework.logger.Loggable, 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
- Author:
- Marc Johnson (marc_johnson27591@hotmail.com), Andrew C. Oliver (acoliver2@users.sourceforge.net)
Constructor Summary |
EPStyle()
constructor |
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 |
EPStyle
public EPStyle()
- constructor
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 nullparent
- the parent ElementProcessor; may be nullfilesystem
- the POIFSFileSystem object- Throws:
java.io.IOException
- if anything is wrong
isHorizontalGeneral
public boolean isHorizontalGeneral()
throws java.io.IOException
- Returns:
- true if horizontal alignment general bit is set
- Throws:
java.io.IOException
-
isHorizontalLeft
public boolean isHorizontalLeft()
throws java.io.IOException
- Returns:
- true if horizontal alignment left bit is set
- Throws:
java.io.IOException
-
isHorizontalRight
public boolean isHorizontalRight()
throws java.io.IOException
- Returns:
- true if horizontal alignment right bit is set
- Throws:
java.io.IOException
-
isHorizontalCenter
public boolean isHorizontalCenter()
throws java.io.IOException
- Returns:
- true if horizontal alignment center bit is set
- Throws:
java.io.IOException
-
isHorizontalFill
public boolean isHorizontalFill()
throws java.io.IOException
- Returns:
- true if horizontal alignment fill bit is set
- Throws:
java.io.IOException
-
isHorizontalJustify
public boolean isHorizontalJustify()
throws java.io.IOException
- Returns:
- true if horizontal alignment justify bit is set
- Throws:
java.io.IOException
-
isHorizontalCenterAcrossSelection
public boolean isHorizontalCenterAcrossSelection()
throws java.io.IOException
- Returns:
- true if horizontal alignment center across selection
bit is set
- Throws:
java.io.IOException
-
isVerticalTop
public boolean isVerticalTop()
throws java.io.IOException
- Returns:
- true if vertical alignment top bit is set
- Throws:
java.io.IOException
-
isVerticalBottom
public boolean isVerticalBottom()
throws java.io.IOException
- Returns:
- true if vertical alignment bottom bit is set
- Throws:
java.io.IOException
-
isVerticalCenter
public boolean isVerticalCenter()
throws java.io.IOException
- Returns:
- true if vertical alignment center bit is set
- Throws:
java.io.IOException
-
isVerticalJustify
public boolean isVerticalJustify()
throws java.io.IOException
- Returns:
- true if vertical alignment justify bit is set
- Throws:
java.io.IOException
-
getWrapText
public boolean getWrapText()
throws java.io.IOException
- Returns:
- true if wrap text is enabled
- Throws:
java.io.IOException
-
isStyleOrientationHoriz
public boolean isStyleOrientationHoriz()
throws java.io.IOException
- Returns:
- true if style orientation horiz bit is set
- Throws:
java.io.IOException
-
isStyleOrientationVertHorizText
public boolean isStyleOrientationVertHorizText()
throws java.io.IOException
- Returns:
- true if style orientation vert horiz text bit is set
- Throws:
java.io.IOException
-
isStyleOrientationVertVertText
public boolean isStyleOrientationVertVertText()
throws java.io.IOException
- Returns:
- true if style orientation vert vert text bit is set
- Throws:
java.io.IOException
-
isStyleOrientationVertVertText2
public boolean isStyleOrientationVertVertText2()
throws java.io.IOException
- Returns:
- true if style orientation vert vert text2 bit is set
- Throws:
java.io.IOException
-
getShade
public int getShade()
throws java.io.IOException
- Returns:
- shade as one of the public variables in StyleShading
- Throws:
java.io.IOException
-
getIndent
public int getIndent()
throws java.io.IOException
- Returns:
- indent
- Throws:
java.io.IOException
-
getForegroundColor
public ColorCode getForegroundColor()
throws java.io.IOException
- Returns:
- foreground color
- Throws:
java.io.IOException
-
getBackgroundColor
public ColorCode getBackgroundColor()
throws java.io.IOException
- Returns:
- background color
- Throws:
java.io.IOException
-
getPatternColor
public ColorCode getPatternColor()
throws java.io.IOException
- Returns:
- pattern color
- Throws:
java.io.IOException
-
getFormat
public java.lang.String getFormat()
throws java.io.IOException
- Returns:
- format string
- Throws:
java.io.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-2002 Apache Software Foundation. All Rights Reserved.