Class MovieShape

All Implemented Interfaces:
IAdjustableShape, PictureShape<HSLFShape,HSLFTextParagraph>, PlaceableShape<HSLFShape,HSLFTextParagraph>, Shape<HSLFShape,HSLFTextParagraph>, SimpleShape<HSLFShape,HSLFTextParagraph>

public final class MovieShape extends HSLFPictureShape
Represents a movie in a PowerPoint document.
Author:
Yegor Kozlov
  • Field Details

  • Constructor Details

    • MovieShape

      public MovieShape(int movieIdx, HSLFPictureData pictureData)
      Create a new Picture
      Parameters:
      pictureData - the picture data
    • MovieShape

      public MovieShape(int movieIdx, HSLFPictureData pictureData, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
      Create a new Picture
      Parameters:
      pictureData - the picture data
      parent - the parent shape
    • MovieShape

      public MovieShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> 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
  • Method Details

    • createSpContainer

      protected EscherContainerRecord createSpContainer(int idx, boolean isChild)
      Create a new Placeholder and initialize internal structures
      Overrides:
      createSpContainer in class HSLFPictureShape
      Parameters:
      idx - the index of the picture which refers 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:
    • setAutoPlay

      public void setAutoPlay(boolean flag)
    • isAutoPlay

      public boolean isAutoPlay()
    • getPath

      public String getPath()
      Returns:
      UNC or local path to a video file