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
|
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() |
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
|
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)
Sheetdraw in interface Sheet<HSLFShape,HSLFTextParagraph>protected void onAddTextShape(HSLFTextShape shape)
shape - public HSLFTextShape getPlaceholderByTextType(int type)
type - type of text, See TextHeaderAtomTextShape or nullpublic HSLFSimpleShape getPlaceholder(Placeholder type)
type - type of placeholder to search. See OEPlaceholderAtomSimpleShape or nullpublic 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()
ShapeContainercreateTextBox in interface HSLFShapeContainercreateTextBox in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFAutoShape createAutoShape()
ShapeContainercreateAutoShape in interface HSLFShapeContainercreateAutoShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFFreeformShape createFreeform()
ShapeContainercreateFreeform in interface HSLFShapeContainercreateFreeform in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFConnectorShape createConnector()
ShapeContainercreateConnector in interface HSLFShapeContainercreateConnector in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFGroupShape createGroup()
ShapeContainercreateGroup in interface HSLFShapeContainercreateGroup in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFPictureShape createPicture(PictureData pictureData)
ShapeContainercreatePicture in interface HSLFShapeContainercreatePicture in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFTable createTable(int numRows, int numCols)
ShapeContainercreateTable in interface ShapeContainer<HSLFShape,HSLFTextParagraph>numRows - the number of rowsnumCols - the number of columnsCopyright 2018 The Apache Software Foundation or its licensors, as applicable.