Package org.apache.poi.hslf.usermodel
Class HSLFFill
java.lang.Object
org.apache.poi.hslf.usermodel.HSLFFill
Represents functionality provided by the 'Fill Effects' dialog in PowerPoint.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Use the background fill color/patternstatic final int
Fill with a pattern (bitmap)static final int
Center a picture in the shapestatic final int
Shade from start to end pointsstatic final int
Shade from bounding rectangle to end pointstatic final int
Similar to FILL_SHADE, but the fill angle is additionally scaled by the aspect ratio of the shape.static final int
Shade from shape outline to end pointstatic final int
shade to titlestatic final int
Fill with a solid colorstatic final int
A texture (pattern with its own color map) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
afterInsert
(HSLFSheet sh) Background colorprotected EscherBSERecord
getEscherBSERecord
(int idx) int
Returns fill type.Foreground colorPictureData
object used in a texture, pattern of picture fill.void
setBackgroundColor
(Color color) Background colorvoid
setFillType
(int type) Sets fill type.void
setForegroundColor
(Color color) Foreground colorvoid
Assign picture used to fill the underlying shape.
-
Field Details
-
FILL_SOLID
public static final int FILL_SOLIDFill with a solid color- See Also:
-
FILL_PATTERN
public static final int FILL_PATTERNFill with a pattern (bitmap)- See Also:
-
FILL_TEXTURE
public static final int FILL_TEXTUREA texture (pattern with its own color map)- See Also:
-
FILL_PICTURE
public static final int FILL_PICTURECenter a picture in the shape- See Also:
-
FILL_SHADE
public static final int FILL_SHADEShade from start to end points- See Also:
-
FILL_SHADE_CENTER
public static final int FILL_SHADE_CENTERShade from bounding rectangle to end point- See Also:
-
FILL_SHADE_SHAPE
public static final int FILL_SHADE_SHAPEShade from shape outline to end point- See Also:
-
FILL_SHADE_SCALE
public static final int FILL_SHADE_SCALESimilar to FILL_SHADE, but the fill angle is additionally scaled by the aspect ratio of the shape. If shape is square, it is the same as FILL_SHADE- See Also:
-
FILL_SHADE_TITLE
public static final int FILL_SHADE_TITLEshade to title- See Also:
-
FILL_BACKGROUND
public static final int FILL_BACKGROUNDUse the background fill color/pattern- See Also:
-
-
Constructor Details
-
HSLFFill
Construct aFill
object for a shape. Fill information will be read from shape's escher properties.- Parameters:
shape
- the shape this background applies to
-
-
Method Details
-
getFillStyle
-
getFillType
public int getFillType()Returns fill type. Must be one of theFILL_*
constants defined in this class.- Returns:
- type of fill
-
afterInsert
-
getEscherBSERecord
-
setFillType
public void setFillType(int type) Sets fill type. Must be one of theFILL_*
constants defined in this class.- Parameters:
type
- type of the fill
-
getForegroundColor
Foreground color -
setForegroundColor
Foreground color -
getBackgroundColor
Background color -
setBackgroundColor
Background color -
getPictureData
PictureData
object used in a texture, pattern of picture fill. -
setPictureData
Assign picture used to fill the underlying shape.- Parameters:
data
- the picture data added to this ppt byHSLFSlideShow.addPicture(byte[], org.apache.poi.sl.usermodel.PictureData.PictureType)
method.
-