@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, java.awt.geom.Rectangle2D anchor)
Convienence method for adding SVG images, which generates the preview image
(添加SVG图片的便捷方法,生成预览图)
|
PictureData |
getAlternativePictureData()
Returns an alternative picture data, e.g.
(返回替代图片数据,例如)
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlip |
getBlip() |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties |
getBlipFill() |
protected java.lang.String |
getBlipId() |
protected java.lang.String |
getBlipLink() |
java.awt.Insets |
getClipping()
Returns the clipping values as percent ratio relatively to the image size.
(以相对于图像大小的百分比返回剪裁值。)
|
XSLFPictureData |
getPictureData()
Return the data on the (internal) picture.
(返回(内部)图片上的数据。)
|
java.net.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)?
(这是内部图片(PowerPoint 文件中包含的图像数据)还是外部链接图片(图像位于外部)?)
|
void |
setPlaceholder(Placeholder placeholder)
Specifies that the corresponding shape should be represented by the generating application as a placeholder.
(指定相应的形状应由生成应用程序表示为占位符。)
|
void |
setSvgImage(XSLFPictureData svgPic)
Add a SVG image reference
(添加 SVG 图像参考)
|
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, setStrokeStyle
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getShapeType, getStrokeStyle, isPlaceholder, setFillColor, setShapeType, setStrokeStyle
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAdjustValue
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
public boolean isExternalLinkedPicture()
public XSLFPictureData getPictureData()
getPictureData
in interface
PictureShape<XSLFShape,XSLFTextParagraph>
(接口 PictureShape 中的 getPictureData
public void setPlaceholder(Placeholder placeholder)
SimpleShape
setPlaceholder
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 setPlaceholder
setPlaceholder
in class
XSLFShape
placeholder
- the placeholder or null to remove the reference to the placeholder
(placeholder - 占位符或 null 删除对占位符的引用)
PlaceholderDetails.setPlaceholder(Placeholder)
public java.net.URI getPictureLink()
protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties getBlipFill()
protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlip getBlip()
protected java.lang.String getBlipLink()
protected java.lang.String getBlipId()
public java.awt.Insets getClipping()
PictureShape
getClipping
in interface
PictureShape<XSLFShape,XSLFTextParagraph>
(接口 PictureShape 中的 getClipping
public void setSvgImage(XSLFPictureData svgPic)
svgPic
- a previously imported svg image
(svgPic - 之前导入的 svg 图像)
public PictureData getAlternativePictureData()
PictureShape
getAlternativePictureData
in interface
PictureShape<XSLFShape,XSLFTextParagraph>
(接口 PictureShape 中的 getAlternativePictureData
public XSLFPictureData getSvgImage()
public static XSLFPictureShape addSvgImage(XSLFSheet sheet, XSLFPictureData svgPic, PictureData.PictureType previewType, java.awt.geom.Rectangle2D anchor) throws java.io.IOException
sheet
- the sheet to add
(sheet - 要添加的工作表)
svgPic
- the svg picture to add
(svgPic - 要添加的 svg 图片)
previewType
- the preview picture type or null (defaults to PNG) - currently only JPEG,GIF,PNG are allowed
(previewType - 预览图片类型或 null(默认为 PNG) - 目前只允许 JPEG,GIF,PNG)
anchor
- the image anchor (for calculating the preview image size) or null (the preview size is taken from the svg picture bounds)
(anchor - 图像锚点(用于计算预览图像大小)或 null(预览大小取自 svg 图片边界))
java.io.IOException
(java.io.IOException)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.