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() |
HSLFConnectorShape |
createConnector() |
HSLFFreeformShape |
createFreeform() |
HSLFGroupShape |
createGroup() |
HSLFObjectShape |
createOleShape(PictureData pictureData) |
HSLFPictureShape |
createPicture(PictureData pictureData) |
HSLFTable |
createTable(int numRows,
int numCols) |
HSLFTextBox |
createTextBox() |
void |
draw(java.awt.Graphics2D graphics) |
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) |
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)
draw 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()
createTextBox in interface HSLFShapeContainercreateTextBox in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFAutoShape createAutoShape()
createAutoShape in interface HSLFShapeContainercreateAutoShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFFreeformShape createFreeform()
createFreeform in interface HSLFShapeContainercreateFreeform in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFConnectorShape createConnector()
createConnector in interface HSLFShapeContainercreateConnector in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFGroupShape createGroup()
createGroup in interface HSLFShapeContainercreateGroup in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFPictureShape createPicture(PictureData pictureData)
createPicture in interface HSLFShapeContainercreatePicture in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFTable createTable(int numRows, int numCols)
createTable in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFObjectShape createOleShape(PictureData pictureData)
createOleShape in interface HSLFShapeContainercreateOleShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HeadersFooters getHeadersFooters()
public HSLFPlaceholderDetails getPlaceholderDetails(Placeholder placeholder)
getPlaceholderDetails in interface Sheet<HSLFShape,HSLFTextParagraph>