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. |
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 datapublic HSLFPictureShape(HSLFPictureData data, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Picture
data
- the picture dataparent
- the parent shapeprotected HSLFPictureShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Picture
objectescherRecord
- the EscherSpContainer
record which holds information about
this picture in the Slide
parent
- 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 HSLFPictureData getPictureData()
PictureShape
getPictureData
in interface PictureShape<HSLFShape,HSLFTextParagraph>
protected EscherBSERecord getEscherBSERecord()
public java.lang.String getPictureName()
public void setPictureName(java.lang.String name)
name
- of this pictureprotected void afterInsert(HSLFSheet sh)
afterInsert
in class HSLFShape
sh
- - owning shapepublic java.awt.Insets getClipping()
PictureShape
getClipping
in interface PictureShape<HSLFShape,HSLFTextParagraph>
public ShapeType getShapeType()
getShapeType
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
getShapeType
in class HSLFShape
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.