@Beta public class XSLFPictureShape extends XSLFSimpleShape implements PictureShape<XSLFShape,XSLFTextParagraph>
XSLFShape.ReparseFactory<T extends org.apache.xmlbeans.XmlObject>| Modifier and Type | Method and Description |
|---|---|
static XSLFPictureShape |
addSvgImage(XSLFSheet sheet,
XSLFPictureData svgPic,
PictureData.PictureType previewType,
Rectangle2D anchor)
Convenience method for adding SVG images, which generates the preview image
|
PictureData |
getAlternativePictureData() |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlip |
getBlip() |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties |
getBlipFill() |
protected String |
getBlipId() |
protected String |
getBlipLink() |
Insets |
getClipping() |
String |
getName() |
XSLFPictureData |
getPictureData()
Return the data on the (internal) picture.
|
URI |
getPictureLink()
For an external linked picture, return the last-seen
path to the picture.
|
XSLFPictureData |
getSvgImage() |
boolean |
isExternalLinkedPicture()
Is this an internal picture (image data included within
the PowerPoint file), or an external linked picture
(image lives outside)?
|
boolean |
setName(String name) |
void |
setPlaceholder(Placeholder placeholder) |
void |
setSvgImage(XSLFPictureData svgPic)
Add a SVG image reference
|
createHyperlink, getAdjustValue, getAnchor, getFillColor, getFillStyle, getFlipHorizontal, getFlipVertical, getGeometry, getHyperlink, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLinePaint, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getShadow, getShapeType, getStrokeStyle, getXfrm, setAnchor, setFillColor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType, setStrokeStyledraw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getShapeType, getStrokeStyle, isPlaceholder, setFillColor, setShapeType, setStrokeStyledraw, getAnchor, getParent, getShapeId, getShapeName, getSheetgetAdjustValuegetAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotationpublic boolean isExternalLinkedPicture()
public XSLFPictureData getPictureData()
getPictureData in interface PictureShape<XSLFShape,XSLFTextParagraph>public void setPlaceholder(Placeholder placeholder)
setPlaceholder in interface SimpleShape<XSLFShape,XSLFTextParagraph>setPlaceholder in class XSLFShapePlaceholderDetails.setPlaceholder(Placeholder)public URI getPictureLink()
protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties getBlipFill()
protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlip getBlip()
protected String getBlipLink()
protected String getBlipId()
public Insets getClipping()
getClipping in interface PictureShape<XSLFShape,XSLFTextParagraph>public void setSvgImage(XSLFPictureData svgPic)
svgPic - a previously imported svg imagepublic PictureData getAlternativePictureData()
getAlternativePictureData in interface PictureShape<XSLFShape,XSLFTextParagraph>public String getName()
public boolean setName(String name)
name - picture namepublic XSLFPictureData getSvgImage()
public static XSLFPictureShape addSvgImage(XSLFSheet sheet, XSLFPictureData svgPic, PictureData.PictureType previewType, Rectangle2D anchor) throws IOException
sheet - the sheet to addsvgPic - the svg picture to addpreviewType - the preview picture type or null (defaults to PNG) - currently only JPEG,GIF,PNG are allowedanchor - the image anchor (for calculating the preview image size) or
null (the preview size is taken from the svg picture bounds)IOException