Package org.apache.poi.xslf.usermodel
Class XSLFShadow
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFShape
org.apache.poi.xslf.usermodel.XSLFShadow
- All Implemented Interfaces:
Shadow<XSLFShape,,XSLFTextParagraph> Shape<XSLFShape,XSLFTextParagraph>
Represents a shadow of a shape. For now supports only outer shadows.
- Author:
- Yegor Kozlov
-
Method Summary
Modifier and TypeMethodDescriptionReturns the anchor (the bounding box rectangle) of this shape.doublegetAngle()doublegetBlur()doublevoidsetAnchor(Rectangle2D anchor) Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholder
-
Method Details
-
getShadowParent
- Specified by:
getShadowParentin interfaceShadow<XSLFShape,XSLFTextParagraph>
-
getAnchor
Description copied from interface:ShapeReturns the anchor (the bounding box rectangle) of this shape. All coordinates are expressed in points (72 dpi).- Specified by:
getAnchorin interfaceShape<XSLFShape,XSLFTextParagraph> - Returns:
- the anchor of this shape
-
setAnchor
-
getDistance
public double getDistance()- Specified by:
getDistancein interfaceShadow<XSLFShape,XSLFTextParagraph> - Returns:
- the offset of this shadow in points
-
getAngle
public double getAngle()- Specified by:
getAnglein interfaceShadow<XSLFShape,XSLFTextParagraph> - Returns:
- the direction to offset the shadow in angles
-
getBlur
public double getBlur()- Specified by:
getBlurin interfaceShadow<XSLFShape,XSLFTextParagraph> - Returns:
- the blur radius of the shadow TODO: figure out how to make sense of this property when rendering shadows
-
getFillColor
- Returns:
- the color of this shadow. Depending whether the parent shape is filled or stroked, this color is used to fill or stroke this shadow
-
getFillStyle
- Specified by:
getFillStylein interfaceShadow<XSLFShape,XSLFTextParagraph> - Returns:
- the color of this shadow. Depending whether the parent shape is filled or stroked, this color is used to fill or stroke this shadow
-