org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements
Class EPStyleRegion
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.EPStyleRegion
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, ElementProcessor, org.apache.avalon.framework.logger.Loggable, POIFSElementProcessor
- public class EPStyleRegion
- extends BaseElementProcessor
No-op implementation of ElementProcessor to handle the
"StyleRegion" tag
This element is a container of other elements and has four
attributes that define the boundaries of the region.
- Author:
- Marc Johnson (marc_johnson27591@hotmail.com), Andrew C. Oliver (acoliver2@users.sourceforge.net)
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 |
EPStyleRegion
public EPStyleRegion()
- 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
getStartRow
public int getStartRow()
throws java.io.IOException
- Returns:
- start row
- Throws:
java.io.IOException
-
getStartCol
public int getStartCol()
throws java.io.IOException
- Returns:
- start column
- Throws:
java.io.IOException
-
getEndRow
public int getEndRow()
throws java.io.IOException
- Returns:
- end row
- Throws:
java.io.IOException
-
getEndCol
public int getEndCol()
throws java.io.IOException
- Returns:
- end column
- Throws:
java.io.IOException
-
getStyle
public org.apache.poi.hssf.usermodel.HSSFCellStyle getStyle()
getColorHash
public java.util.Hashtable getColorHash()
- Returns:
- instance created in the EPStyles instance from HSSFColor.getTripletHash();
- See Also:
HSSFColor.getTripletHash()
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.