org.apache.poi.xslf.usermodel
Class XSLFPictureShape
- java.lang.Object
-
- org.apache.poi.xslf.usermodel.XSLFShape
-
- org.apache.poi.xslf.usermodel.XSLFSimpleShape
-
- org.apache.poi.xslf.usermodel.XSLFPictureShape
-
@Beta public class XSLFPictureShape extends XSLFSimpleShape
Represents a picture shape
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddrawContent(java.awt.Graphics2D graphics)draw any content within this shape (image, text, etc.).java.awt.InsetsgetBlipClip()XSLFPictureDatagetPictureData()Return the data on the (internal) picture.java.net.URIgetPictureLink()For an external linked picture, return the last-seen path to the picture.booleanisExternalLinkedPicture()Is this an internal picture (image data included within the PowerPoint file), or an external linked picture (image lives outside)?voidresize()Resize this picture to the default size.-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFSimpleShape
draw, getAnchor, getFillColor, getFlipHorizontal, getFlipVertical, getLineCap, getLineColor, getLineDash, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getShadow, getShapeId, getShapeName, getShapeType, getSheet, getXmlObject, setAnchor, setFillColor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType
-
-
-
-
Method Detail
-
resize
public void resize()
Resize this picture to the default size. For PNG and JPEG resizes the image to 100%, for other types sets the default size of 200x200 pixels.
-
isExternalLinkedPicture
public boolean isExternalLinkedPicture()
Is this an internal picture (image data included within the PowerPoint file), or an external linked picture (image lives outside)?
-
getPictureData
public XSLFPictureData getPictureData()
Return the data on the (internal) picture. For an external linked picture, will return null
-
getPictureLink
public java.net.URI getPictureLink()
For an external linked picture, return the last-seen path to the picture. For an internal picture, returns null.
-
getBlipClip
public java.awt.Insets getBlipClip()
-
drawContent
public void drawContent(java.awt.Graphics2D graphics)
Description copied from class:XSLFSimpleShapedraw any content within this shape (image, text, etc.).- Overrides:
drawContentin classXSLFSimpleShape- Parameters:
graphics- the graphics to draw into
-
-
DataMelt 3.0 © DataMelt by jWork.ORG