public interface SlideShow<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
PictureData |
addPicture(byte[] pictureData,
PictureData.PictureType format)
Adds a picture to the presentation.
|
PictureData |
addPicture(java.io.File pict,
PictureData.PictureType format)
Adds a picture to the presentation.
|
PictureData |
addPicture(java.io.InputStream is,
PictureData.PictureType format)
Adds a picture to the presentation.
|
MasterSheet<S,P> |
createMasterSheet() |
Slide<S,P> |
createSlide() |
PictureData |
findPictureData(byte[] pictureData)
check if a picture with this picture data already exists in this presentation
|
POITextExtractor |
getMetadataTextExtractor() |
java.awt.Dimension |
getPageSize()
Returns the current page size
|
java.lang.Object |
getPersistDocument() |
java.util.List<? extends PictureData> |
getPictureData()
Returns all Pictures of this slideshow.
|
Resources |
getResources() |
java.util.List<? extends MasterSheet<S,P>> |
getSlideMasters()
Returns all slide masters.
|
java.util.List<? extends Slide<S,P>> |
getSlides() |
void |
setPageSize(java.awt.Dimension pgsize)
Change the current page size
|
void |
write(java.io.OutputStream out)
Writes out the slideshow file the is represented by an instance of this
class
|
MasterSheet<S,P> createMasterSheet() throws java.io.IOException
java.io.IOException
java.util.List<? extends MasterSheet<S,P>> getSlideMasters()
Resources getResources()
java.awt.Dimension getPageSize()
void setPageSize(java.awt.Dimension pgsize)
pgsize
- page size (in points)java.util.List<? extends PictureData> getPictureData()
List
is unmodifiable.List
of PictureData
.PictureData addPicture(byte[] pictureData, PictureData.PictureType format) throws java.io.IOException
pictureData
- The bytes of the pictureformat
- The format of the picture.java.io.IOException
PictureData addPicture(java.io.InputStream is, PictureData.PictureType format) throws java.io.IOException
is
- The stream to read the image fromformat
- The format of the picture.java.io.IOException
PictureData addPicture(java.io.File pict, PictureData.PictureType format) throws java.io.IOException
pict
- The file containing the image to addformat
- The format of the picture.java.io.IOException
PictureData findPictureData(byte[] pictureData)
pictureData
- The picture data to find in the SlideShownull
if picture data is not found in this slideshowvoid write(java.io.OutputStream out) throws java.io.IOException
out
- The OutputStream to write to.java.io.IOException
- If there is an unexpected IOException from the passed in
OutputStreamPOITextExtractor getMetadataTextExtractor()
java.lang.Object getPersistDocument()
POIDocument
or POIXMLDocument
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.