public class HSLFPictureShape extends HSLFSimpleShape implements PictureShape<HSLFShape,HSLFTextParagraph>
_hyperlink, ADJUST_VALUES, DEFAULT_LINE_WIDTH
Modifier | Constructor and Description |
---|---|
protected |
HSLFPictureShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a
Picture object
(创建图片对象)
|
|
HSLFPictureShape(HSLFPictureData data)
Create a new
Picture
(创建新图片)
|
|
HSLFPictureShape(HSLFPictureData data, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a new
Picture
(创建新图片)
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterInsert(HSLFSheet 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.
(创建一个新图片并填充包含有关此图片的信息的 EscherSp 记录的初始结构。)
|
java.awt.Insets |
getClipping()
Returns the clipping values as percent ratio relatively to the image size.
(以相对于图像大小的百分比返回剪裁值。)
|
protected EscherBSERecord |
getEscherBSERecord() |
HSLFPictureData |
getPictureData()
Returns the picture data for this picture.
(返回此图片的图片数据。)
|
int |
getPictureIndex()
Returns index associated with this picture.
(返回与此图片关联的索引。)
|
java.lang.String |
getPictureName()
Name of this picture.
(此图片的名称。)
|
ShapeType |
getShapeType() |
void |
setPictureName(java.lang.String name)
Name of this picture.
(此图片的名称。)
|
createHyperlink, createSpContainer, getAdjustValue, getFillColor, getGeometry, getHyperlink, getLineBackgroundColor, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getPlaceholder, getPlaceholderDetails, getShadow, getShadowAngle, getShadowColor, getShadowDistance, getStrokeStyle, isPlaceholder, setFillColor, setHyperlink, setLineBackgroundColor, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setPlaceholder, setStrokeStyle
draw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlternativePictureData
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getStrokeStyle, isPlaceholder, setFillColor, setPlaceholder, setShapeType, setStrokeStyle
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAdjustValue
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
public HSLFPictureShape(HSLFPictureData data)
Picture
(创建新图片)
data
- the picture data
(data - 图片数据)
public HSLFPictureShape(HSLFPictureData data, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Picture
(创建新图片)
data
- the picture data
(data - 图片数据)
parent
- the parent shape
(parent - 父形状)
protected HSLFPictureShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Picture
object
(创建图片对象)
escherRecord
- the
EscherSpContainer
record which holds information about this picture in the
Slide
(escherRecord - EscherSpContainer 记录,它在幻灯片中保存有关此图片的信息)
parent
- the parent shape of this picture
(parent - 此图片的父形状)
public int getPictureIndex()
protected EscherContainerRecord createSpContainer(int idx, boolean isChild)
EscherSp
record which holds information about this picture.
(创建一个新图片并填充包含有关此图片的信息的 EscherSp 记录的初始结构。)
idx
- the index of the picture which refers to
EscherBSE
container.
(idx - 引用 EscherBSE 容器的图片索引。)
public HSLFPictureData getPictureData()
PictureShape
getPictureData
in interface
PictureShape<HSLFShape,HSLFTextParagraph>
(接口 PictureShape 中的 getPictureData
protected EscherBSERecord getEscherBSERecord()
public java.lang.String getPictureName()
public void setPictureName(java.lang.String name)
name
- of this picture
(这张照片的名字)
protected void afterInsert(HSLFSheet sh)
afterInsert
in class
HSLFShape
sh
- - owning shape
(sh - - 拥有形状)
public java.awt.Insets getClipping()
PictureShape
getClipping
in interface
PictureShape<HSLFShape,HSLFTextParagraph>
(接口 PictureShape 中的 getClipping
public ShapeType getShapeType()
getShapeType
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getShapeType
getShapeType
in class
HSLFShape
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.