org.apache.poi.xslf.usermodel
Class XSLFShadow
- java.lang.Object
-
- org.apache.poi.xslf.usermodel.XSLFShape
-
- org.apache.poi.xslf.usermodel.XSLFSimpleShape
-
- org.apache.poi.xslf.usermodel.XSLFShadow
-
public class XSLFShadow extends XSLFSimpleShape
Represents a shadow of a shape. For now supports only outer shadows.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(java.awt.Graphics2D graphics, java.awt.Shape outline)voidfill(java.awt.Graphics2D graphics, java.awt.Shape outline)java.awt.geom.Rectangle2DgetAnchor()doublegetAngle()doublegetBlur()doublegetDistance()java.awt.ColorgetFillColor()voidsetAnchor(java.awt.geom.Rectangle2D anchor)-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFSimpleShape
draw, drawContent, getFlipHorizontal, getFlipVertical, getLineCap, getLineColor, getLineDash, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getShadow, getShapeId, getShapeName, getShapeType, getSheet, getXmlObject, setFillColor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType
-
-
-
-
Method Detail
-
fill
public void fill(java.awt.Graphics2D graphics, java.awt.Shape outline)
-
draw
public void draw(java.awt.Graphics2D graphics, java.awt.Shape outline)
-
getAnchor
public java.awt.geom.Rectangle2D getAnchor()
- Overrides:
getAnchorin classXSLFSimpleShape- Returns:
- the position of this shape within the drawing canvas. The coordinates are expressed in points
-
setAnchor
public void setAnchor(java.awt.geom.Rectangle2D anchor)
- Overrides:
setAnchorin classXSLFSimpleShape- Parameters:
anchor- the position of this shape within the drawing canvas. The coordinates are expressed in points
-
getDistance
public double getDistance()
- Returns:
- the offset of this shadow in points
-
getAngle
public double getAngle()
- Returns:
- the direction to offset the shadow in angles
-
getBlur
public double getBlur()
- Returns:
- the blur radius of the shadow TODO: figure out how to make sense of this property when rendering shadows
-
getFillColor
public java.awt.Color getFillColor()
- Overrides:
getFillColorin classXSLFSimpleShape- 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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG