Package org.apache.poi.hslf.model
Class MovieShape
java.lang.Object
org.apache.poi.hslf.usermodel.HSLFShape
org.apache.poi.hslf.usermodel.HSLFSimpleShape
org.apache.poi.hslf.usermodel.HSLFPictureShape
org.apache.poi.hslf.model.MovieShape
- All Implemented Interfaces:
IAdjustableShape,PictureShape<HSLFShape,,HSLFTextParagraph> PlaceableShape<HSLFShape,,HSLFTextParagraph> Shape<HSLFShape,,HSLFTextParagraph> SimpleShape<HSLFShape,HSLFTextParagraph>
Represents a movie in a PowerPoint document.
- Author:
- Yegor Kozlov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class org.apache.poi.hslf.usermodel.HSLFSimpleShape
_hyperlink, DEFAULT_LINE_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionMovieShape(int movieIdx, HSLFPictureData pictureData) Create a newPictureMovieShape(int movieIdx, HSLFPictureData pictureData, ShapeContainer<HSLFShape, HSLFTextParagraph> parent) Create a newPictureMovieShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape, HSLFTextParagraph> parent) Create aPictureobject -
Method Summary
Modifier and TypeMethodDescriptionprotected EscherContainerRecordcreateSpContainer(int idx, boolean isChild) Create a new Placeholder and initialize internal structuresgetPath()booleanvoidsetAutoPlay(boolean flag) voidsetMovieIndex(int idx) Assign a movie to this shapeMethods inherited from class org.apache.poi.hslf.usermodel.HSLFPictureShape
afterInsert, getClipping, getEscherBSERecord, getPictureData, getPictureIndex, getPictureName, getShapeType, setPictureNameMethods inherited from class org.apache.poi.hslf.usermodel.HSLFSimpleShape
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, setStrokeStyleMethods inherited from class org.apache.poi.hslf.usermodel.HSLFShape
draw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.sl.draw.geom.IAdjustableShape
getAdjustValueMethods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotationMethods inherited from interface org.apache.poi.sl.usermodel.Shape
draw, getAnchor, getParent, getShapeId, getShapeName, getSheetMethods inherited from interface org.apache.poi.sl.usermodel.SimpleShape
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getStrokeStyle, isPlaceholder, setFillColor, setPlaceholder, setShapeType, setStrokeStyle
-
Field Details
-
DEFAULT_MOVIE_THUMBNAIL
public static final int DEFAULT_MOVIE_THUMBNAIL- See Also:
-
MOVIE_MPEG
public static final int MOVIE_MPEG- See Also:
-
MOVIE_AVI
public static final int MOVIE_AVI- See Also:
-
-
Constructor Details
-
MovieShape
Create a newPicture- Parameters:
pictureData- the picture data
-
MovieShape
public MovieShape(int movieIdx, HSLFPictureData pictureData, ShapeContainer<HSLFShape, HSLFTextParagraph> parent) Create a newPicture- Parameters:
pictureData- the picture dataparent- the parent shape
-
MovieShape
public MovieShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape, HSLFTextParagraph> parent) Create aPictureobject- Parameters:
escherRecord- theEscherSpContainerrecord which holds information about this picture in theSlideparent- the parent shape of this picture
-
-
Method Details
-
createSpContainer
Create a new Placeholder and initialize internal structures- Overrides:
createSpContainerin classHSLFPictureShape- Parameters:
idx- the index of the picture which refers toEscherBSEcontainer.- Returns:
- the created
EscherContainerRecordwhich holds shape data
-
setMovieIndex
public void setMovieIndex(int idx) Assign a movie to this shape- Parameters:
idx- the index of the movie- See Also:
-
setAutoPlay
public void setAutoPlay(boolean flag) -
isAutoPlay
public boolean isAutoPlay() -
getPath
- Returns:
- UNC or local path to a video file
-