org.apache.poi.xssf.usermodel.extensions
public final class XSSFCellFill extends java.lang.Object
Constructor and Description |
---|
XSSFCellFill()
Creates an empty CellFill
|
XSSFCellFill(CTFill fill)
Creates a CellFill from the supplied parts
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
CTFill |
getCTFill()
Returns the underlying XML bean.
|
XSSFColor |
getFillBackgroundColor()
Get the background fill color.
|
XSSFColor |
getFillForegroundColor()
Get the foreground fill color.
|
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(STPatternType.Enum patternType)
set the fill pattern
|
public XSSFCellFill(CTFill fill)
fill
- - fillpublic XSSFCellFill()
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 STPatternType.Enum getPatternType()
public void setPatternType(STPatternType.Enum patternType)
patternType
- fill pattern to use@Internal public CTFill getCTFill()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.