public final class Slide extends Sheet
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
StyleTextProp9Atom[] |
getNumberedListInfo()
This will return an atom per TextBox, so if the page has two text boxes the method should return two atoms.
|
protected SlideListWithText.SlideAtomsSet |
getSlideAtomsSet() |
int |
getSlideNumber()
Returns the (public facing) page number of this slide
|
Slide |
getSlideRecord()
Returns the underlying slide record
|
EscherTextboxWrapper[] |
getTextboxWrappers() |
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.
|
_getSheetNumber, _getSheetRefId, addShape, allocateShapeId, findTextRuns, findTextRuns, findTextRuns, findTextRuns, getPlaceholder, getPlaceholderByTextType, getPPDrawing, getProgrammableTag, getShapes, getSheetContainer, getSlideShow, removeShape, setSlideShow
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 sheetpublic 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 HeadersFooters getHeadersFooters()
protected void onAddTextShape(TextShape shape)
Sheet
onAddTextShape
in class Sheet
public StyleTextProp9Atom[] getNumberedListInfo()
public EscherTextboxWrapper[] getTextboxWrappers()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.