public final class HSLFFill
extends java.lang.Object
Constructor and Description |
---|
HSLFFill(HSLFShape shape)
Construct a
Fill object for a shape.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackgroundColor()
Background color
(背景颜色)
|
int |
getFillFocus()
The fillFocus property specifies the relative position of the last color in the shaded fill.
(fillFocus 属性指定阴影填充中最后一种颜色的相对位置。)
|
FillStyle |
getFillStyle() |
int |
getFillType()
Returns fill type.
(返回填充类型。)
|
java.awt.Color |
getForegroundColor()
Foreground color
(前景色)
|
HSLFPictureData |
getPictureData()
PictureData object used in a texture, pattern of picture fill.
(PictureData 对象用于纹理、图案的图片填充。)
|
void |
setBackgroundColor(java.awt.Color color)
Background color
(背景颜色)
|
void |
setFillType(int type)
Sets fill type.
(设置填充类型。)
|
void |
setForegroundColor(java.awt.Color color)
Foreground color
(前景色)
|
void |
setPictureData(HSLFPictureData data)
Assign picture used to fill the underlying shape.
(分配用于填充基础形状的图片。)
|
public HSLFFill(HSLFShape shape)
Fill
object for a shape. Fill information will be read from shape's escher properties.
(为形状构造一个 Fill 对象。填充信息将从形状的 escher 属性中读取。)
shape
- the shape this background applies to
(shape - 此背景适用的形状)
public FillStyle getFillStyle()
public int getFillType()
FILL_*
constants defined in this class.
(返回填充类型。必须是此类中定义的 FILL_* 常量之一。)
public int getFillFocus()
public void setFillType(int type)
FILL_*
constants defined in this class.
(设置填充类型。必须是此类中定义的 FILL_* 常量之一。)
type
- type of the fill
(type - 填充类型)
public java.awt.Color getForegroundColor()
public void setForegroundColor(java.awt.Color color)
public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color color)
public HSLFPictureData getPictureData()
PictureData
object used in a texture, pattern of picture fill.
(PictureData 对象用于纹理、图案的图片填充。)
public void setPictureData(HSLFPictureData data)
data
- the picture data added to this ppt by
HSLFSlideShow.addPicture(byte[], org.apache.poi.sl.usermodel.PictureData.PictureType)
method.
(data - 通过 HSLFSlideShow.addPicture(byte[], org.apache.poi.sl.usermodel.PictureData.PictureType) 方法添加到这个 ppt 中的图片数据。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.