|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hslf.usermodel.HSLFSheet
public abstract class HSLFSheet
This class defines the common format of "Sheets" in a powerpoint document. Such sheets could be Slides, Notes, Master etc
| Constructor Summary | |
|---|---|
HSLFSheet(SheetContainer container,
int sheetNo)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HSLFSheet(SheetContainer container,
int sheetNo)
| Method Detail |
|---|
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 nullpublic HSLFSimpleShape getPlaceholder(Placeholder type)
type - type of placeholder to search. See OEPlaceholderAtom
SimpleShape 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()
ShapeContainer
createTextBox in interface HSLFShapeContainercreateTextBox in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFAutoShape createAutoShape()
ShapeContainer
createAutoShape in interface HSLFShapeContainercreateAutoShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFFreeformShape createFreeform()
ShapeContainer
createFreeform in interface HSLFShapeContainercreateFreeform in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFConnectorShape createConnector()
ShapeContainer
createConnector in interface HSLFShapeContainercreateConnector in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFGroupShape createGroup()
ShapeContainer
createGroup in interface HSLFShapeContainercreateGroup in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFPictureShape createPicture(PictureData pictureData)
ShapeContainer
createPicture in interface HSLFShapeContainercreatePicture 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 columns
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||