| |
|
| java.lang.Object org.apache.poi.hslf.model.Fill
Fill | public class Fill (Code) | | Represents functionality provided by the 'Fill Effects' dialog in PowerPoint.
author: Yegor Kozlov |
Constructor Summary | |
public | Fill(Shape shape) Construct a Fill object for a shape. |
FILL_BACKGROUND | final public static int FILL_BACKGROUND(Code) | | Use the background fill color/pattern
|
FILL_PATTERN | final public static int FILL_PATTERN(Code) | | Fill with a pattern (bitmap)
|
FILL_PICTURE | final public static int FILL_PICTURE(Code) | | Center a picture in the shape
|
FILL_SHADE | final public static int FILL_SHADE(Code) | | Shade from start to end points
|
FILL_SHADE_CENTER | final public static int FILL_SHADE_CENTER(Code) | | Shade from bounding rectangle to end point
|
FILL_SHADE_SCALE | final public static int FILL_SHADE_SCALE(Code) | | Similar 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
|
FILL_SHADE_SHAPE | final public static int FILL_SHADE_SHAPE(Code) | | Shade from shape outline to end point
|
FILL_SHADE_TITLE | final public static int FILL_SHADE_TITLE(Code) | | shade to title
|
FILL_SOLID | final public static int FILL_SOLID(Code) | | Fill with a solid color
|
FILL_TEXTURE | final public static int FILL_TEXTURE(Code) | | A texture (pattern with its own color map)
|
shape | protected Shape shape(Code) | | The shape this background applies to
|
Fill | public Fill(Shape shape)(Code) | | Construct a Fill object for a shape.
Fill information will be read from shape's escher properties.
Parameters: shape - the shape this background applies to |
getBackgroundColor | public Color getBackgroundColor()(Code) | | Background color
|
getFillType | public int getFillType()(Code) | | Returns fill type.
Must be one of the FILL_* constants defined in this class.
type of fill |
getForegroundColor | public Color getForegroundColor()(Code) | | Foreground color
|
getPictureData | public PictureData getPictureData()(Code) | | PictureData object used in a texture, pattern of picture fill.
|
setBackgroundColor | public void setBackgroundColor(Color color)(Code) | | Background color
|
setFillType | public void setFillType(int type)(Code) | | Sets fill type.
Must be one of the FILL_* constants defined in this class.
Parameters: type - type of the fill |
setForegroundColor | public void setForegroundColor(Color color)(Code) | | Foreground color
|
setPictureData | public void setPictureData(int idx)(Code) | | Assign picture used to fill the underlying shape.
Parameters: idx - 0-based index of the picture added to this ppt by SlideShow.addPicture method. |
|
|
|