ActiveXShape, MovieShape, OLEShapepublic class Picture extends SimpleShape
| Modifier and Type | Field | Description |
|---|---|---|
static byte |
DIB |
Windows DIB (BMP)
|
static int |
EMF |
Windows Enhanced Metafile (EMF)
|
static int |
JPEG |
JPEG
|
static int |
PICT |
Macintosh PICT
|
static int |
PNG |
PNG
|
static int |
WMF |
Windows Metafile (WMF)
|
_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI_clientData, _clientRecords, DEFAULT_LINE_WIDTH| Modifier | Constructor | Description |
|---|---|---|
|
Picture(int idx) |
Create a new
Picture |
|
Picture(int idx,
Shape parent) |
Create a new
Picture |
protected |
Picture(EscherContainerRecord escherRecord,
Shape parent) |
Create a
Picture object |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
afterInsert(Sheet sh) |
By default set the orininal image size
|
protected EscherContainerRecord |
createSpContainer(int idx,
boolean isChild) |
Create a new Picture and populate the inital structure of the
EscherSp record which holds information about this picture. |
void |
draw(java.awt.Graphics2D graphics) |
|
java.awt.Insets |
getBlipClip() |
Returns the clipping values as percent ratio relatively to the image size.
|
protected EscherBSERecord |
getEscherBSERecord() |
|
PictureData |
getPictureData() |
Returns the picture data for this picture.
|
int |
getPictureIndex() |
Returns index associated with this picture.
|
java.lang.String |
getPictureName() |
Name of this picture.
|
void |
setDefaultSize() |
Resize this picture to the default size.
|
void |
setPictureName(java.lang.String name) |
Name of this picture.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnchor, getAnchor2D, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFlipHorizontal, getFlipVertical, getHyperlink, getOutline, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setRotation, setShapeId, setShapeType, setSheetcreateSpContainer, getClientDataRecord, getClientRecords, getFillColor, getLineColor, getLineDashing, getLineStyle, getLineWidth, getLogicalAnchor2D, setFillColor, setHyperlink, setLineColor, setLineDashing, setLineStyle, setLineWidth, updateClientDatapublic static final int EMF
public static final int WMF
public static final int PICT
public static final int JPEG
public static final int PNG
public static final byte DIB
public Picture(int idx)
Pictureidx - the index of the picturepublic Picture(int idx,
Shape parent)
Pictureidx - the index of the pictureparent - the parent shapeprotected Picture(EscherContainerRecord escherRecord, Shape parent)
Picture objectescherRecord - the EscherSpContainer record which holds information about
this picture in the Slideparent - the parent shape of this picturepublic int getPictureIndex()
protected EscherContainerRecord createSpContainer(int idx, boolean isChild)
EscherSp record which holds information about this picture.idx - the index of the picture which refers to EscherBSE container.public void setDefaultSize()
public PictureData getPictureData()
protected EscherBSERecord getEscherBSERecord()
public java.lang.String getPictureName()
public void setPictureName(java.lang.String name)
name - of this pictureprotected void afterInsert(Sheet sh)
afterInsert in class Shapesh - - owning shapepublic void draw(java.awt.Graphics2D graphics)
draw in class SimpleShapepublic java.awt.Insets getBlipClip()
SimpleShape.getLogicalAnchor2D() is the displayed size,
i.e. the size of the already clipped imageCopyright 2018 The Apache Software Foundation or its licensors, as applicable.