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.
|
int |
_getSheetRefId()
Returns the (internal, RefID based) sheet number, as used
to in PersistPtr stuff.
|
void |
addShape(HSLFShape shape)
Add a new Shape to this Slide
|
int |
allocateShapeId()
Allocates new shape id for the new drawing group 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
|
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
|
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.
|
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
|
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>
public SheetContainer getSheetContainer()
@Internal protected void setSlideShow(HSLFSlideShow ss)
public java.util.List<HSLFShape> getShapes()
getShapes
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
public void addShape(HSLFShape shape)
addShape
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
shape
- - the Shape to addpublic int allocateShapeId()
public boolean removeShape(HSLFShape shape)
removeShape
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
shape
- shape to be removed from this sheet, if present.public void onCreate()
public abstract HSLFMasterSheet getMasterSheet()
getMasterSheet
in interface Sheet<HSLFShape,HSLFTextParagraph>
public ColorSchemeAtom getColorScheme()
public HSLFBackground getBackground()
getBackground
in interface Sheet<HSLFShape,HSLFTextParagraph>
public void draw(java.awt.Graphics2D graphics)
Sheet
draw
in interface Sheet<HSLFShape,HSLFTextParagraph>
protected void onAddTextShape(HSLFTextShape shape)
shape
- public HSLFTextShape getPlaceholderByTextType(int type)
type
- type of text, See TextHeaderAtom
TextShape
or null
public HSLFSimpleShape getPlaceholder(Placeholder type)
type
- type of placeholder to search. See OEPlaceholderAtom
SimpleShape
or null
public java.lang.String getProgrammableTag()
___PPT12
.public java.util.Iterator<HSLFShape> iterator()
iterator
in interface java.lang.Iterable<HSLFShape>
public boolean getFollowMasterGraphics()
getFollowMasterGraphics
in interface Sheet<HSLFShape,HSLFTextParagraph>
public HSLFTextBox createTextBox()
ShapeContainer
createTextBox
in interface HSLFShapeContainer
createTextBox
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
public HSLFAutoShape createAutoShape()
ShapeContainer
createAutoShape
in interface HSLFShapeContainer
createAutoShape
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
public HSLFFreeformShape createFreeform()
ShapeContainer
createFreeform
in interface HSLFShapeContainer
createFreeform
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
public HSLFConnectorShape createConnector()
ShapeContainer
createConnector
in interface HSLFShapeContainer
createConnector
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
public HSLFGroupShape createGroup()
ShapeContainer
createGroup
in interface HSLFShapeContainer
createGroup
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
public HSLFPictureShape createPicture(PictureData pictureData)
ShapeContainer
createPicture
in interface HSLFShapeContainer
createPicture
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
public HSLFTable createTable(int numRows, int numCols)
ShapeContainer
createTable
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
numRows
- the number of rowsnumCols
- the number of columnspublic HSLFObjectShape createOleShape(PictureData pictureData)
ShapeContainer
createOleShape
in interface HSLFShapeContainer
createOleShape
in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
pictureData
- the preview imagepublic HeadersFooters getHeadersFooters()
public HSLFPlaceholderDetails getPlaceholderDetails(Placeholder placeholder)
Sheet
getPlaceholderDetails
in interface Sheet<HSLFShape,HSLFTextParagraph>
placeholder
- the placeholder typenull
, if the placeholder isn't contained in the sheetCopyright 2021 The Apache Software Foundation or its licensors, as applicable.