anchor, drawing, EMU_PER_PIXEL, EMU_PER_POINT, parent, PIXEL_DPI, POINT_DPI
Modifier | Constructor and Description |
---|---|
protected |
XSSFPicture(XSSFDrawing drawing,
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPicture ctPicture)
Construct a new XSSFPicture object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlt() |
ClientAnchor |
getClientAnchor() |
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPicture |
getCTPicture()
Return the underlying CTPicture bean that holds all properties for this picture
|
protected static java.awt.Dimension |
getImageDimension(PackagePart part,
int type)
Return the dimension of this image
|
java.lang.String |
getName() |
XSSFPictureData |
getPictureData()
Return picture data for this shape
|
java.lang.String |
getPictureId() |
XSSFClientAnchor |
getPreferredSize()
Calculate the preferred size for this picture.
|
XSSFClientAnchor |
getPreferredSize(double scale)
Calculate the preferred size for this picture.
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties |
getShapeProperties()
Returns xml bean with shape properties.
|
protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPicture |
prototype()
Returns a prototype that is used to construct new shapes
|
void |
resize()
Reset the image to the original size.
|
void |
resize(double scale)
Reset the image to the original size.
|
void |
setClientAnchor(ClientAnchor newanchor) |
protected void |
setPictureReference(PackageRelationship rel)
Link this shape with the picture data
|
getAnchor, getDrawing, getParent, isNoFill, setFillColor, setLineStyle, setLineStyleColor, setLineWidth, setNoFill
protected XSSFPicture(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPicture ctPicture)
XSSFDrawing.createPicture(XSSFClientAnchor, int)
drawing
- the XSSFDrawing that owns this pictureprotected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPicture prototype()
protected void setPictureReference(PackageRelationship rel)
rel
- relationship referring the picture data@Internal public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPicture getCTPicture()
public void resize()
Please note, that this method works correctly only for workbooks with the default font size (Calibri 11pt for .xlsx). If the default font is changed the resized image can be streched vertically or horizontally.
public void resize(double scale)
Please note, that this method works correctly only for workbooks with the default font size (Calibri 11pt for .xlsx). If the default font is changed the resized image can be streched vertically or horizontally.
public XSSFClientAnchor getPreferredSize()
getPreferredSize
in interface Picture
public XSSFClientAnchor getPreferredSize(double scale)
scale
- the amount by which image dimensions are multiplied relative to the original size.protected static java.awt.Dimension getImageDimension(PackagePart part, int type)
part
- the package part holding raw picture datatype
- type of the picture: Workbook.PICTURE_TYPE_JPEG
,
Workbook.PICTURE_TYPE_PNG
or Workbook.PICTURE_TYPE_DIB
public XSSFPictureData getPictureData()
getPictureData
in interface Picture
protected org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getShapeProperties()
XSSFShape
getShapeProperties
in class XSSFShape
public ClientAnchor getClientAnchor()
getClientAnchor
in interface Picture
public java.lang.String getPictureId()
getPictureId
in interface Picture
public void setClientAnchor(ClientAnchor newanchor)
setClientAnchor
in interface Picture
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.