@Beta public final class XSLFSlide extends XSLFSheet implements Slide<XSLFShape,XSLFTextParagraph>
POIXMLDocumentPart.RelationPart
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D graphics)
Render this sheet into the supplied graphics object
(将此工作表渲染到提供的图形对象中)
|
XSLFBackground |
getBackground() |
XSLFCommentAuthors |
getCommentAuthorsPart() |
java.util.List<XSLFComment> |
getComments() |
XSLFComments |
getCommentsPart() |
boolean |
getDisplayPlaceholder(Placeholder placeholder)
In XSLF, slidenumber and date shapes aren't marked as placeholders whereas in HSLF they are activated via a HeadersFooter configuration.
(在 XSLF 中,幻灯片编号和日期形状未标记为占位符,而在 HSLF 中,它们通过 HeadersFooter 配置激活。)
|
boolean |
getFollowMasterBackground() |
boolean |
getFollowMasterColourScheme() |
boolean |
getFollowMasterGraphics() |
boolean |
getFollowMasterObjects() |
XSLFSlideLayout |
getMasterSheet() |
XSLFNotes |
getNotes() |
protected java.lang.String |
getRootElementName() |
XSLFSlideLayout |
getSlideLayout() |
XSLFSlideMaster |
getSlideMaster() |
java.lang.String |
getSlideName() |
int |
getSlideNumber() |
XSLFTheme |
getTheme() |
java.lang.String |
getTitle() |
org.openxmlformats.schemas.presentationml.x2006.main.CTSlide |
getXmlObject() |
XSLFSlide |
importContent(XSLFSheet src)
Set the contents of this sheet to be a copy of the source sheet.
(将此工作表的内容设置为源工作表的副本。)
|
boolean |
isHidden() |
protected void |
removeChartRelation(XSLFChart chart) |
protected void |
removeLayoutRelation(XSLFSlideLayout layout) |
void |
setFollowMasterBackground(boolean follow) |
void |
setFollowMasterColourScheme(boolean follow) |
void |
setFollowMasterGraphics(boolean value) |
void |
setFollowMasterObjects(boolean follow) |
void |
setHidden(boolean hidden)
Sets the slide visibility
(设置幻灯片可见性)
|
void |
setNotes(Notes<XSLFShape,XSLFTextParagraph> notes) |
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
_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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPlaceholderDetails, getSlideShow
addShape, createAutoShape, createConnector, createFreeform, createGroup, createOleShape, createPicture, createTable, createTextBox, getShapes, removeShape
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlide getXmlObject()
getXmlObject
in class
XSLFSheet
(类 XSLFSheet 中的 getXmlObject)
protected java.lang.String getRootElementName()
getRootElementName
in class
XSLFSheet
(XSLFSheet 类中的 getRootElementName)
protected void removeChartRelation(XSLFChart chart)
protected void removeLayoutRelation(XSLFSlideLayout layout)
public XSLFSlideLayout getMasterSheet()
getMasterSheet
in interface
Sheet<XSLFShape,XSLFTextParagraph>
(接口Sheet中的getMasterSheet
public XSLFSlideLayout getSlideLayout()
getSlideLayout
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面Slide中的getSlideLayout
public XSLFSlideMaster getSlideMaster()
public XSLFComments getCommentsPart()
null
if there weren't any comments
(评论部分或 null 如果没有任何评论)
public XSLFCommentAuthors getCommentAuthorsPart()
null
if there weren't any comments
(评论作者部分或 null 如果没有任何评论)
public java.util.List<XSLFComment> getComments()
getComments
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面 Slide 中的 getComments
public XSLFNotes getNotes()
getNotes
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面幻灯片中的getNotes
public java.lang.String getTitle()
getTitle
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面 Slide 中的 getTitle
public XSLFTheme getTheme()
getTheme
in class
XSLFSheet
null
which 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.
(与此主题相关联的主题(共享样式)。默认情况下返回 null ,这意味着此工作表没有主题。支持主题概念(幻灯片、母版、布局等)的工作表应覆盖此方法并返回相应的包部分。)
public XSLFBackground getBackground()
getBackground
in interface
Sheet<XSLFShape,XSLFTextParagraph>
(接口表中的getBackground
getBackground
in class
XSLFSheet
public boolean getFollowMasterGraphics()
getFollowMasterGraphics
in interface
Sheet<XSLFShape,XSLFTextParagraph>
(接口表中的getFollowMasterGraphics
getFollowMasterGraphics
in class
XSLFSheet
public void setFollowMasterGraphics(boolean value)
value
- whether shapes on the master slide should be shown or not.
(value - 是否应显示母版幻灯片上的形状。)
public boolean getFollowMasterObjects()
getFollowMasterObjects
in interface
Slide<XSLFShape,XSLFTextParagraph>
(接口 Slide 中的 getFollowMasterObjects
public void setFollowMasterObjects(boolean follow)
setFollowMasterObjects
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面 Slide 中的 setFollowMasterObjects
public XSLFSlide importContent(XSLFSheet src)
XSLFSheet
importContent
in class
XSLFSheet
src
- the source sheet to copy data from
(src - 要从中复制数据的源工作表)
public boolean getFollowMasterBackground()
getFollowMasterBackground
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面 Slide 中的 getFollowMasterBackground
@NotImplemented public void setFollowMasterBackground(boolean follow)
setFollowMasterBackground
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面 Slide 中的 setFollowMasterBackground
public boolean getFollowMasterColourScheme()
getFollowMasterColourScheme
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面 Slide 中的 getFollowMasterColourScheme
@NotImplemented public void setFollowMasterColourScheme(boolean follow)
setFollowMasterColourScheme
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面 Slide 中的 setFollowMasterColourScheme
@NotImplemented public void setNotes(Notes<XSLFShape,XSLFTextParagraph> notes)
setNotes
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面Slide中的setNotes
public int getSlideNumber()
getSlideNumber
in interface
Slide<XSLFShape,XSLFTextParagraph>
(接口 Slide 中的 getSlideNumber
public void draw(java.awt.Graphics2D graphics)
public boolean getDisplayPlaceholder(Placeholder placeholder)
Slide
getDisplayPlaceholder
in interface
Slide<XSLFShape,XSLFTextParagraph>
(界面 Slide 中的 getDisplayPlaceholder
placeholder
- the placeholder type
(placeholder - 占位符类型)
true
if the placeholder should be displayed/rendered
(如果应显示/呈现占位符,则为 true)
public void setHidden(boolean hidden)
Slide
setHidden
in interface
Slide<XSLFShape,XSLFTextParagraph>
(setHidden在界面Slide中
hidden
- slide visibility, if
true
the slide is hidden,
false
shows the slide
(hidden - 幻灯片可见性,如果 true 幻灯片被隐藏,false 显示幻灯片)
public boolean isHidden()
isHidden
in interface
Slide<XSLFShape,XSLFTextParagraph>
(isHidden 在界面 Slide
true
- or shown when
false
(幻灯片可见性,幻灯片在 true 时隐藏 - 或在 false 时显示)
public java.lang.String getSlideName()
getSlideName
in interface
Slide<XSLFShape,XSLFTextParagraph>
(接口 Slide 中的 getSlideName
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.