org.apache.poi.hslf.model
Class MovieShape
java.lang.Object
org.apache.poi.hslf.model.Shape
org.apache.poi.hslf.model.SimpleShape
org.apache.poi.hslf.model.Picture
org.apache.poi.hslf.model.MovieShape
public final class MovieShape
- extends Picture
Represents a movie in a PowerPoint document.
- Author:
- Yegor Kozlov
Fields inherited from class org.apache.poi.hslf.model.Shape |
_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI |
Methods inherited from class org.apache.poi.hslf.model.SimpleShape |
createSpContainer, getClientDataRecord, getClientRecords, getFillColor, getFlipHorizontal, getFlipVertical, getLineColor, getLineDashing, getLineStyle, getLineWidth, getLogicalAnchor2D, getRotation, setFillColor, setHyperlink, setLineColor, setLineDashing, setLineStyle, setLineWidth, setRotation, updateClientData |
Methods inherited from class org.apache.poi.hslf.model.Shape |
getAnchor, getAnchor2D, getEscherChild, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getHyperlink, getOutline, getParent, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setShapeId, setShapeType, setSheet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MOVIE_THUMBNAIL
public static final int DEFAULT_MOVIE_THUMBNAIL
- See Also:
- Constant Field Values
MOVIE_MPEG
public static final int MOVIE_MPEG
- See Also:
- Constant Field Values
MOVIE_AVI
public static final int MOVIE_AVI
- See Also:
- Constant Field Values
MovieShape
public MovieShape(int movieIdx,
int pictureIdx)
- Create a new
Picture
- Parameters:
pictureIdx
- the index of the picture
MovieShape
public MovieShape(int movieIdx,
int idx,
Shape parent)
- Create a new
Picture
- Parameters:
idx
- the index of the pictureparent
- the parent shape
MovieShape
protected MovieShape(EscherContainerRecord escherRecord,
Shape parent)
- Create a
Picture
object
- Parameters:
escherRecord
- the EscherSpContainer
record which holds information about
this picture in the Slide
parent
- the parent shape of this picture
createSpContainer
protected EscherContainerRecord createSpContainer(int idx,
boolean isChild)
- Create a new Placeholder and initialize internal structures
- Overrides:
createSpContainer
in class Picture
- Parameters:
idx
- the index of the picture which referes to EscherBSE
container.
- Returns:
- the created
EscherContainerRecord
which holds shape data
setMovieIndex
public void setMovieIndex(int idx)
- Assign a movie to this shape
- Parameters:
idx
- the index of the movie- See Also:
SlideShow.addMovie(String, int)
setAutoPlay
public void setAutoPlay(boolean flag)
isAutoPlay
public boolean isAutoPlay()
getPath
public java.lang.String getPath()
- Returns:
- UNC or local path to a video file
Copyright 2012 The Apache Software Foundation or
its licensors, as applicable.