Package org.apache.poi.sl.usermodel
Interface Slide<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
-
- All Superinterfaces:
Iterable<S>,ShapeContainer<S,P>,Sheet<S,P>
public interface Slide<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends Sheet<S,P>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description List<? extends Comment>getComments()default booleangetDisplayPlaceholder(Placeholder placeholder)Deprecated.in POI 5.2.0 - usegetDisplayPlaceholder(SimpleShape)default booleangetDisplayPlaceholder(SimpleShape<?,?> placeholderRefShape)In XSLF, slidenumber and date shapes aren't marked as placeholders whereas in HSLF they are activated via a HeadersFooter configuration.booleangetFollowMasterBackground()booleangetFollowMasterColourScheme()booleangetFollowMasterObjects()Notes<S,P>getNotes()MasterSheet<S,P>getSlideLayout()StringgetSlideName()intgetSlideNumber()StringgetTitle()booleanisHidden()voidsetFollowMasterBackground(boolean follow)voidsetFollowMasterColourScheme(boolean follow)voidsetFollowMasterObjects(boolean follow)voidsetHidden(boolean hidden)Sets the slide visibilityvoidsetNotes(Notes<S,P> notes)-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.apache.poi.sl.usermodel.ShapeContainer
addShape, createAutoShape, createConnector, createFreeform, createGroup, createOleShape, createPicture, createTable, createTextBox, getShapes, removeShape
-
Methods inherited from interface org.apache.poi.sl.usermodel.Sheet
draw, getBackground, getFollowMasterGraphics, getMasterSheet, getPlaceholderDetails, getSlideShow
-
-
-
-
Method Detail
-
getFollowMasterBackground
boolean getFollowMasterBackground()
-
setFollowMasterBackground
void setFollowMasterBackground(boolean follow)
-
getFollowMasterColourScheme
boolean getFollowMasterColourScheme()
-
setFollowMasterColourScheme
void setFollowMasterColourScheme(boolean follow)
-
getFollowMasterObjects
boolean getFollowMasterObjects()
-
setFollowMasterObjects
void setFollowMasterObjects(boolean follow)
-
getSlideNumber
int getSlideNumber()
- Returns:
- the 1-based slide no.
-
getTitle
String getTitle()
- Returns:
- title of this slide or null if title is not set
-
getDisplayPlaceholder
@Deprecated @Removal(version="6.0.0") default boolean getDisplayPlaceholder(Placeholder placeholder)
Deprecated.in POI 5.2.0 - usegetDisplayPlaceholder(SimpleShape)In XSLF, slidenumber and date shapes aren't marked as placeholders whereas in HSLF they are activated via a HeadersFooter configuration. This method is used to generalize that handling.- Parameters:
placeholder- the placeholder type- Returns:
trueif the placeholder should be displayed/rendered- Since:
- POI 3.16-beta2
-
getDisplayPlaceholder
default boolean getDisplayPlaceholder(SimpleShape<?,?> placeholderRefShape)
In XSLF, slidenumber and date shapes aren't marked as placeholders whereas in HSLF they are activated via a HeadersFooter configuration. This method is used to generalize that handling.- Parameters:
placeholderRefShape- the shape which references to the placeholder- Returns:
trueif the placeholder should be displayed/rendered- Since:
- POI 5.2.0
-
setHidden
void setHidden(boolean hidden)
Sets the slide visibility- Parameters:
hidden- slide visibility, iftruethe slide is hidden,falseshows the slide- Since:
- POI 4.0.0
-
isHidden
boolean isHidden()
- Returns:
- the slide visibility, the slide is hidden when
true- or shown whenfalse - Since:
- POI 4.0.0
-
getSlideLayout
MasterSheet<S,P> getSlideLayout()
- Returns:
- the assigned slide layout
- Since:
- POI 4.0.0
-
getSlideName
String getSlideName()
- Returns:
- the slide name, defaults to "Slide[slideNumber]"
- Since:
- POI 4.0.0
-
-