|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.xssf.usermodel.extensions.XSSFCellFill
public final class XSSFCellFill
This element specifies fill formatting. A cell fill consists of a background color, foreground color, and pattern to be applied across the cell.
Constructor Summary | |
---|---|
XSSFCellFill()
Creates an empty CellFill |
|
XSSFCellFill(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTFill fill)
Creates a CellFill from the supplied parts |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTFill |
getCTFill()
Returns the underlying XML bean. |
XSSFColor |
getFillBackgroundColor()
Get the background fill color. |
XSSFColor |
getFillForegroundColor()
Get the foreground fill color. |
org.openxmlformats.schemas.spreadsheetml.x2006.main.STPatternType.Enum |
getPatternType()
get the fill pattern |
int |
hashCode()
|
void |
setFillBackgroundColor(int index)
Set the background fill color represented as a indexed color value. |
void |
setFillBackgroundColor(XSSFColor color)
Set the background fill color represented as a XSSFColor value. |
void |
setFillForegroundColor(int index)
Set the foreground fill color as a indexed color value |
void |
setFillForegroundColor(XSSFColor color)
Set the foreground fill color represented as a XSSFColor value. |
void |
setPatternType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STPatternType.Enum patternType)
set the fill pattern |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSSFCellFill(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTFill fill)
fill
- - fillpublic XSSFCellFill()
Method Detail |
---|
public XSSFColor getFillBackgroundColor()
public void setFillBackgroundColor(int index)
index
- public void setFillBackgroundColor(XSSFColor color)
XSSFColor
value.
color
- public XSSFColor getFillForegroundColor()
public void setFillForegroundColor(int index)
index
- - the color to usepublic void setFillForegroundColor(XSSFColor color)
XSSFColor
value.
color
- - the color to usepublic org.openxmlformats.schemas.spreadsheetml.x2006.main.STPatternType.Enum getPatternType()
public void setPatternType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STPatternType.Enum patternType)
patternType
- fill pattern to use@Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTFill getCTFill()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |