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 intUse the background fill color/patternstatic final intFill with a pattern (bitmap)static final intCenter a picture in the shapestatic final intShade from start to end pointsstatic final intShade from bounding rectangle to end pointstatic final intSimilar to FILL_SHADE, but the fill angle is additionally scaled by the aspect ratio of the shape.static final intShade from shape outline to end pointstatic final intshade to titlestatic final intFill with a solid colorstatic final intA texture (pattern with its own color map) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterInsert(HSLFSheet sh) Background colorprotected EscherBSERecordgetEscherBSERecord(int idx) intReturns fill type.Foreground colorPictureDataobject used in a texture, pattern of picture fill.voidsetBackgroundColor(Color color) Background colorvoidsetFillType(int type) Sets fill type.voidsetForegroundColor(Color color) Foreground colorvoidAssign 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 aFillobject 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
PictureDataobject 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.
-