org.apache.poi.xslf.usermodel
Class XSLFPictureShape

java.lang.Object
  extended by org.apache.poi.xslf.usermodel.XSLFShape
      extended by org.apache.poi.xslf.usermodel.XSLFSimpleShape
          extended by org.apache.poi.xslf.usermodel.XSLFPictureShape

@Beta
public class XSLFPictureShape
extends XSLFSimpleShape

Represents a picture shape


Method Summary
 void drawContent(java.awt.Graphics2D graphics)
          draw any content within this shape (image, text, etc.).
 java.awt.Insets getBlipClip()
           
 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.
 boolean isExternalLinkedPicture()
          Is this an internal picture (image data included within the PowerPoint file), or an external linked picture (image lives outside)?
 void resize()
          Resize this picture to the default size.
 
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFSimpleShape
draw, getAnchor, getCTPlaceholder, getFillColor, getFlipHorizontal, getFlipVertical, getLineCap, getLineColor, getLineDash, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getNvPr, getRotation, getShadow, getShapeId, getShapeName, getShapeType, getSheet, getSpPr, getSpStyle, getXmlObject, setAnchor, setFillColor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType
 
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape
applyTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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: XSLFSimpleShape
draw any content within this shape (image, text, etc.).

Overrides:
drawContent in class XSLFSimpleShape
Parameters:
graphics - the graphics to draw into


Copyright 2015 The Apache Software Foundation or its licensors, as applicable.