public final class XSSFCellFill
extends java.lang.Object
Constructor and Description |
---|
XSSFCellFill()
Creates an empty CellFill
|
XSSFCellFill(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTFill fill, IndexedColorMap colorMap)
Creates a CellFill from the supplied parts
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTFill |
getCTFill()
Returns the underlying XML bean.
(返回底层 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.
(设置表示为 XSSFColor 值的背景填充颜色。)
|
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.
(设置表示为 XSSFColor 值的前景填充颜色。)
|
void |
setPatternType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STPatternType.Enum patternType)
set the fill pattern
(设置填充图案)
|
public XSSFCellFill(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTFill fill, IndexedColorMap colorMap)
fill
- - fill
(填——填)
public XSSFCellFill()
public XSSFColor getFillBackgroundColor()
public void setFillBackgroundColor(int index)
index
- - the color to use
(index - - 要使用的颜色)
public void setFillBackgroundColor(XSSFColor color)
XSSFColor
value.
(设置表示为 XSSFColor 值的背景填充颜色。)
color
- - background color. null if color should be unset
(颜色 - - 背景颜色。如果不设置颜色,则为 null)
public XSSFColor getFillForegroundColor()
public void setFillForegroundColor(int index)
index
- - the color to use
(index - - 要使用的颜色)
public void setFillForegroundColor(XSSFColor color)
XSSFColor
value.
(设置表示为 XSSFColor 值的前景填充颜色。)
color
- - the color to use
(color - - 要使用的颜色)
public 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
(patternType - 要使用的填充图案)
@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
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.