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

Author:
Yegor Kozlov

Method Summary
 void drawContent(java.awt.Graphics2D graphics)
          draw any content within this shape (image, text, etc.).
 XSLFPictureData getPictureData()
           
 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.


getPictureData

public XSLFPictureData getPictureData()

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 2012 The Apache Software Foundation or its licensors, as applicable.