Package org.apache.poi.xslf.usermodel
Class XSLFSlide
- java.lang.Object
-
- org.apache.poi.ooxml.POIXMLDocumentPart
-
- org.apache.poi.xslf.usermodel.XSLFSheet
-
- org.apache.poi.xslf.usermodel.XSLFSlide
-
- All Implemented Interfaces:
Iterable<XSLFShape>,ShapeContainer<XSLFShape,XSLFTextParagraph>,Sheet<XSLFShape,XSLFTextParagraph>,Slide<XSLFShape,XSLFTextParagraph>,XSLFShapeContainer
@Beta public final class XSLFSlide extends XSLFSheet implements Slide<XSLFShape,XSLFTextParagraph>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart
-
-
Method Summary
-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFSheet
addChart, addChart, addShape, allocateShapeId, appendContent, buildShapes, clear, commit, createAutoShape, createConnector, createFreeform, createGroup, createOleShape, createPicture, createTable, createTable, createTextBox, deregisterShapeId, getPlaceholder, getPlaceholder, getPlaceholder, getPlaceholderDetails, getPlaceholders, getShapes, getSlideShow, getSpTree, getTextShapeByType, iterator, mapSchemeColor, mapSchemeColor, registerShapeId, removeShape
-
Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommitted, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.apache.poi.sl.usermodel.ShapeContainer
addShape, createOleShape, createTable, getShapes, removeShape
-
Methods inherited from interface org.apache.poi.sl.usermodel.Sheet
getPlaceholderDetails, getSlideShow
-
Methods inherited from interface org.apache.poi.sl.usermodel.Slide
getDisplayPlaceholder, getDisplayPlaceholder
-
-
-
-
Method Detail
-
getXmlObject
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlide getXmlObject()
- Specified by:
getXmlObjectin classXSLFSheet- Returns:
- top-level Xml bean representing this sheet
-
getRootElementName
protected String getRootElementName()
- Specified by:
getRootElementNamein classXSLFSheet
-
removeChartRelation
protected void removeChartRelation(XSLFChart chart)
-
removeLayoutRelation
protected void removeLayoutRelation(XSLFSlideLayout layout)
-
getMasterSheet
public XSLFSlideLayout getMasterSheet()
- Specified by:
getMasterSheetin interfaceSheet<XSLFShape,XSLFTextParagraph>
-
getSlideLayout
public XSLFSlideLayout getSlideLayout()
- Specified by:
getSlideLayoutin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
getSlideMaster
public XSLFSlideMaster getSlideMaster()
-
getCommentsPart
public XSLFComments getCommentsPart()
- Returns:
- the comments part or
nullif there weren't any comments - Since:
- POI 4.0.0
-
getCommentAuthorsPart
public XSLFCommentAuthors getCommentAuthorsPart()
- Returns:
- the comment authors part or
nullif there weren't any comments - Since:
- POI 4.0.0
-
getComments
public List<XSLFComment> getComments()
- Specified by:
getCommentsin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
getNotes
public XSLFNotes getNotes()
- Specified by:
getNotesin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceSlide<XSLFShape,XSLFTextParagraph>
-
getTheme
public XSLFTheme getTheme()
- Overrides:
getThemein classXSLFSheet- Returns:
- theme (shared styles) associated with this theme.
By default returns
nullwhich means that this sheet is theme-less. Sheets that support the notion of themes (slides, masters, layouts, etc.) should override this method and return the corresponding package part.
-
getBackground
public XSLFBackground getBackground()
- Specified by:
getBackgroundin interfaceSheet<XSLFShape,XSLFTextParagraph>- Overrides:
getBackgroundin classXSLFSheet- Returns:
- the information about background appearance of this slide
-
getFollowMasterGraphics
public boolean getFollowMasterGraphics()
- Specified by:
getFollowMasterGraphicsin interfaceSheet<XSLFShape,XSLFTextParagraph>- Overrides:
getFollowMasterGraphicsin classXSLFSheet- Returns:
- whether shapes on the master sheet should be shown. By default master graphics is turned off. Sheets that support the notion of master (slide, slideLayout) should override it and check this setting in the sheet XML
-
setFollowMasterGraphics
public void setFollowMasterGraphics(boolean value)
- Parameters:
value- whether shapes on the master slide should be shown or not.
-
getFollowMasterObjects
public boolean getFollowMasterObjects()
- Specified by:
getFollowMasterObjectsin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
setFollowMasterObjects
public void setFollowMasterObjects(boolean follow)
- Specified by:
setFollowMasterObjectsin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
importContent
public XSLFSlide importContent(XSLFSheet src)
Description copied from class:XSLFSheetSet the contents of this sheet to be a copy of the source sheet. This method erases any existing shapes and replaces them with object from the source sheet.- Overrides:
importContentin classXSLFSheet- Parameters:
src- the source sheet to copy data from- Returns:
- modified 'this'
-
getFollowMasterBackground
public boolean getFollowMasterBackground()
- Specified by:
getFollowMasterBackgroundin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
setFollowMasterBackground
@NotImplemented public void setFollowMasterBackground(boolean follow)
- Specified by:
setFollowMasterBackgroundin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
getFollowMasterColourScheme
public boolean getFollowMasterColourScheme()
- Specified by:
getFollowMasterColourSchemein interfaceSlide<XSLFShape,XSLFTextParagraph>
-
setFollowMasterColourScheme
@NotImplemented public void setFollowMasterColourScheme(boolean follow)
- Specified by:
setFollowMasterColourSchemein interfaceSlide<XSLFShape,XSLFTextParagraph>
-
setNotes
@NotImplemented public void setNotes(Notes<XSLFShape,XSLFTextParagraph> notes)
- Specified by:
setNotesin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
getSlideNumber
public int getSlideNumber()
- Specified by:
getSlideNumberin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
draw
public void draw(Graphics2D graphics)
Render this sheet into the supplied graphics object
-
setHidden
public void setHidden(boolean hidden)
- Specified by:
setHiddenin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
isHidden
public boolean isHidden()
- Specified by:
isHiddenin interfaceSlide<XSLFShape,XSLFTextParagraph>
-
getSlideName
public String getSlideName()
- Specified by:
getSlideNamein interfaceSlide<XSLFShape,XSLFTextParagraph>
-
-