|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hslf.model.Sheet org.apache.poi.hslf.model.Slide
public final class Slide
This class represents a slide in a PowerPoint Document. It allows access to the text within, and the layout. For now, it only does the text side of things though
Constructor Summary | |
---|---|
Slide(int sheetNumber,
int sheetRefId,
int slideNumber)
Create a new Slide instance |
|
Slide(Slide slide,
Notes notes,
SlideListWithText.SlideAtomsSet atomSet,
int slideIdentifier,
int slideNumber)
Constructs a Slide from the Slide record, and the SlideAtomsSet containing the text. |
Method Summary | |
---|---|
TextBox |
addTitle()
Create a TextBox object that represents the slide's title. |
void |
draw(java.awt.Graphics2D graphics)
|
Background |
getBackground()
Background for this slide. |
ColorSchemeAtom |
getColorScheme()
Color scheme for this slide. |
Comment[] |
getComments()
Get the comment(s) for this slide. |
boolean |
getFollowMasterBackground()
Whether this slide follows master sheet background |
boolean |
getFollowMasterObjects()
Whether this slide draws master sheet objects |
boolean |
getFollowMasterScheme()
Whether this slide follows master color scheme |
HeadersFooters |
getHeadersFooters()
Header / Footer settings for this slide. |
MasterSheet |
getMasterSheet()
Returns master sheet associated with this slide. |
Notes |
getNotesSheet()
Returns the Notes Sheet for this slide, or null if there isn't one |
protected SlideListWithText.SlideAtomsSet |
getSlideAtomsSet()
|
int |
getSlideNumber()
Returns the (public facing) page number of this slide |
Slide |
getSlideRecord()
Returns the underlying slide record |
TextRun[] |
getTextRuns()
Returns an array of all the TextRuns found |
java.lang.String |
getTitle()
Return title of this slide or null if the slide does not have title. |
protected void |
onAddTextShape(TextShape 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 slide is created. |
void |
setFollowMasterBackground(boolean flag)
Sets whether this slide follows master background |
void |
setFollowMasterObjects(boolean flag)
Sets whether this slide draws master sheet objects |
void |
setFollowMasterScheme(boolean flag)
Sets whether this slide draws master color scheme |
void |
setMasterSheet(MasterSheet master)
Change Master of this slide. |
void |
setNotes(Notes notes)
Sets the Notes that are associated with this. |
void |
setSlideNumber(int newSlideNumber)
Changes the Slide's (external facing) page number. |
Methods inherited from class org.apache.poi.hslf.model.Sheet |
---|
_getSheetNumber, _getSheetRefId, addShape, allocateShapeId, findTextRuns, findTextRuns, getPlaceholder, getPlaceholderByTextType, getPPDrawing, getProgrammableTag, getShapes, getSheetContainer, getSlideShow, removeShape, setSlideShow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Slide(Slide slide, Notes notes, SlideListWithText.SlideAtomsSet atomSet, int slideIdentifier, int slideNumber)
slide
- the Slide record we're based onnotes
- the Notes sheet attached to usatomSet
- the SlideAtomsSet to get the text frompublic Slide(int sheetNumber, int sheetRefId, int slideNumber)
sheetNumber
- The internal number of the sheet, as used by PersistPtrHolderslideNumber
- The user facing number of the sheetMethod Detail |
---|
public void setNotes(Notes notes)
public void setSlideNumber(int newSlideNumber)
SlideShow.reorderSlide(int, int)
public void onCreate()
For Slide we need to do the following:
public TextBox addTitle()
TextBox
object that represents the slide's title.
TextBox
object that represents the slide's title.public java.lang.String getTitle()
null
if the slide does not have title.
The title is a run of text of type TextHeaderAtom.CENTER_TITLE_TYPE
or
TextHeaderAtom.TITLE_TYPE
TextHeaderAtom
public TextRun[] getTextRuns()
getTextRuns
in class Sheet
public int getSlideNumber()
public Slide getSlideRecord()
public Notes getNotesSheet()
protected SlideListWithText.SlideAtomsSet getSlideAtomsSet()
SlideListWithtext
container
which hold text data for this slide (typically for placeholders).public MasterSheet getMasterSheet()
getMasterSheet
in class Sheet
public void setMasterSheet(MasterSheet master)
public void setFollowMasterBackground(boolean flag)
flag
- true
if the slide follows master,
false
otherwisepublic boolean getFollowMasterBackground()
true
if the slide follows master background,
false
otherwisepublic void setFollowMasterObjects(boolean flag)
flag
- true
if the slide draws master sheet objects,
false
otherwisepublic boolean getFollowMasterScheme()
true
if the slide follows master color scheme,
false
otherwisepublic void setFollowMasterScheme(boolean flag)
flag
- true
if the slide draws master color scheme,
false
otherwisepublic boolean getFollowMasterObjects()
true
if the slide draws master sheet objects,
false
otherwisepublic Background getBackground()
getBackground
in class Sheet
public ColorSchemeAtom getColorScheme()
getColorScheme
in class Sheet
public Comment[] getComments()
public void draw(java.awt.Graphics2D graphics)
draw
in class Sheet
public HeadersFooters getHeadersFooters()
protected void onAddTextShape(TextShape shape)
Sheet
onAddTextShape
in class Sheet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |