public abstract class HSLFSheet extends java.lang.Object implements HSLFShapeContainer, Sheet<HSLFShape,HSLFTextParagraph>
Constructor and Description |
---|
HSLFSheet(SheetContainer container, int sheetNo) |
Modifier and Type | Method and Description |
---|---|
int |
_getSheetNumber()
Returns the (internal, SlideIdentifier based) sheet number, as used to reference this sheet from other records.
(返回(内部的,基于 SlideIdentifier 的)工作表编号,用于从其他记录引用此工作表。)
|
int |
_getSheetRefId()
Returns the (internal, RefID based) sheet number, as used to in PersistPtr stuff.
(返回(内部的,基于 RefID 的)工作表编号,如在 PersistPtr 中使用的那样。)
|
void |
addShape(HSLFShape shape)
Add a new Shape to this Slide
(向此幻灯片添加新形状)
|
int |
allocateShapeId()
Allocates new shape id for the new drawing group id.
(为新的绘图组 ID 分配新的形状 ID。)
|
HSLFAutoShape |
createAutoShape()
create a new shape with a predefined geometry and add it to this shape container
(创建具有预定义几何形状的新形状并将其添加到此形状容器中)
|
HSLFConnectorShape |
createConnector()
create a connector
(创建连接器)
|
HSLFFreeformShape |
createFreeform()
create a new shape with a custom geometry
(使用自定义几何创建新形状)
|
HSLFGroupShape |
createGroup()
create a group of shapes belonging to this container
(创建一组属于该容器的形状)
|
HSLFObjectShape |
createOleShape(PictureData pictureData)
Create a new OLE object shape with the given pictureData as preview image
(使用给定的图片数据创建一个新的 OLE 对象形状作为预览图像)
|
HSLFPictureShape |
createPicture(PictureData pictureData)
create a picture belonging to this container
(创建属于该容器的图片)
|
HSLFTable |
createTable(int numRows, int numCols)
Create a new Table of the given number of rows and columns
(创建给定行数和列数的新表)
|
HSLFTextBox |
createTextBox()
create a text box
(创建一个文本框)
|
void |
draw(java.awt.Graphics2D graphics)
Convenience method to draw a sheet to a graphics context
(将工作表绘制到图形上下文的便捷方法)
|
HSLFBackground |
getBackground()
Returns the background shape for this sheet.
(返回此工作表的背景形状。)
|
ColorSchemeAtom |
getColorScheme()
Color scheme for this sheet.
(此表的配色方案。)
|
boolean |
getFollowMasterGraphics() |
HeadersFooters |
getHeadersFooters()
Header / Footer settings for this slide.
(此幻灯片的页眉/页脚设置。)
|
abstract HSLFMasterSheet |
getMasterSheet()
Return the master sheet .
(返回主表。)
|
HSLFSimpleShape |
getPlaceholder(Placeholder type)
Search placeholder by its type
(按类型搜索占位符)
|
HSLFTextShape |
getPlaceholderByTextType(int type)
Return placeholder by text type
(按文本类型返回占位符)
|
HSLFPlaceholderDetails |
getPlaceholderDetails(Placeholder placeholder)
Get the placeholder details for the given placeholder type.
(获取给定占位符类型的占位符详细信息。)
|
PPDrawing |
getPPDrawing()
Fetch the PPDrawing from the underlying record
(从基础记录中获取 PPDrawing)
|
java.lang.String |
getProgrammableTag()
Return programmable tag associated with this sheet, e.g.
(返回与此工作表关联的可编程标签,例如)
|
java.util.List<HSLFShape> |
getShapes()
Returns all shapes contained in this Sheet
(返回此工作表中包含的所有形状)
|
SheetContainer |
getSheetContainer()
Return record container for this sheet
(此表的返回记录容器)
|
HSLFSlideShow |
getSlideShow()
Fetch the SlideShow we're attached to
(获取我们附加到的幻灯片)
|
abstract java.util.List<java.util.List<HSLFTextParagraph>> |
getTextParagraphs()
Returns an array of all the TextRuns in the sheet.
(返回工作表中所有 TextRun 的数组。)
|
java.util.Iterator<HSLFShape> |
iterator() |
protected void |
onAddTextShape(HSLFTextShape shape)
Subclasses should call this method and update the array of text runs when a text shape is added
(子类应调用此方法并在添加文本形状时更新文本运行数组)
|
void |
onCreate()
Called by SlideShow ater a new sheet is created
(由 SlideShow 调用,创建一个新工作表)
|
boolean |
removeShape(HSLFShape shape)
Removes the specified shape from this sheet.
(从此工作表中删除指定的形状。)
|
protected void |
setSlideShow(HSLFSlideShow ss)
Set the SlideShow we're attached to.
(设置我们附加的幻灯片。)
|
public HSLFSheet(SheetContainer container, int sheetNo)
public abstract java.util.List<java.util.List<HSLFTextParagraph>> getTextParagraphs()
public int _getSheetRefId()
public int _getSheetNumber()
public PPDrawing getPPDrawing()
public HSLFSlideShow getSlideShow()
getSlideShow
in interface
Sheet<HSLFShape,HSLFTextParagraph>
(界面Sheet中的getSlideShow
public SheetContainer getSheetContainer()
@Internal protected void setSlideShow(HSLFSlideShow ss)
public java.util.List<HSLFShape> getShapes()
getShapes
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 getShapes
public void addShape(HSLFShape shape)
addShape
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 addShape
shape
- - the Shape to add
(shape - - 要添加的形状)
public int allocateShapeId()
public boolean removeShape(HSLFShape shape)
removeShape
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 removeShape
shape
- shape to be removed from this sheet, if present.
(shape - 要从此工作表中删除的形状(如果存在)。)
public void onCreate()
public abstract HSLFMasterSheet getMasterSheet()
getMasterSheet
in interface
Sheet<HSLFShape,HSLFTextParagraph>
(接口Sheet中的getMasterSheet
public ColorSchemeAtom getColorScheme()
public HSLFBackground getBackground()
getBackground
in interface
Sheet<HSLFShape,HSLFTextParagraph>
(接口表中的getBackground
public void draw(java.awt.Graphics2D graphics)
Sheet
draw
in interface
Sheet<HSLFShape,HSLFTextParagraph>
(在界面Sheet中绘制
protected void onAddTextShape(HSLFTextShape shape)
shape
-
(形状 -)
public HSLFTextShape getPlaceholderByTextType(int type)
type
- type of text, See
TextHeaderAtom
(type - 文本类型,参见 TextHeaderAtom)
TextShape
or
null
(TextShape 或 null)
public HSLFSimpleShape getPlaceholder(Placeholder type)
type
- type of placeholder to search. See
OEPlaceholderAtom
(type - 要搜索的占位符类型。请参见 OEPlaceholderAtom)
SimpleShape
or
null
(SimpleShape 或 null)
public java.lang.String getProgrammableTag()
___PPT12
.
(返回与此工作表关联的可编程标签,例如 ___PPT12。)
public java.util.Iterator<HSLFShape> iterator()
iterator
in interface
java.lang.Iterable<HSLFShape>
(接口 java.lang.Iterable 中的迭代器
public boolean getFollowMasterGraphics()
getFollowMasterGraphics
in interface
Sheet<HSLFShape,HSLFTextParagraph>
(接口表中的getFollowMasterGraphics
public HSLFTextBox createTextBox()
ShapeContainer
createTextBox
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createTextBox)
createTextBox
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createTextBox
public HSLFAutoShape createAutoShape()
ShapeContainer
createAutoShape
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createAutoShape)
createAutoShape
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createAutoShape
public HSLFFreeformShape createFreeform()
ShapeContainer
createFreeform
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createFreeform)
createFreeform
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createFreeform
public HSLFConnectorShape createConnector()
ShapeContainer
createConnector
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createConnector)
createConnector
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createConnector
public HSLFGroupShape createGroup()
ShapeContainer
createGroup
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createGroup)
createGroup
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createGroup
public HSLFPictureShape createPicture(PictureData pictureData)
ShapeContainer
createPicture
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createPicture)
createPicture
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口ShapeContainer中的createPicture
public HSLFTable createTable(int numRows, int numCols)
ShapeContainer
createTable
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createTable
numRows
- the number of rows
(numRows - 行数)
numCols
- the number of columns
(numCols - 列数)
public HSLFObjectShape createOleShape(PictureData pictureData)
ShapeContainer
createOleShape
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createOleShape)
createOleShape
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createOleShape
pictureData
- the preview image
(pictureData - 预览图像)
public HeadersFooters getHeadersFooters()
public HSLFPlaceholderDetails getPlaceholderDetails(Placeholder placeholder)
Sheet
getPlaceholderDetails
in interface
Sheet<HSLFShape,HSLFTextParagraph>
(接口表中的getPlaceholderDetails
placeholder
- the placeholder type
(placeholder - 占位符类型)
null
, if the placeholder isn't contained in the sheet
(占位符详细信息或 null,如果占位符不包含在工作表中)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.