|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Slide
public class Slide
Represents the slide in a presentation.
Field Summary | |
---|---|
protected Background |
m_background
|
protected Document |
m_doc
|
protected PPDrawing |
m_drawing
|
protected Notes |
m_notes
|
protected Presentation |
m_parent
|
protected Placeholders |
m_pholders
|
protected SlideAtom |
m_satom
|
protected Shapes |
m_shapes
|
protected PPTSlide |
m_slide
|
protected SlideShowTransition |
m_SlideTransition
|
protected Tags |
m_tags
|
Constructor Summary | |
---|---|
protected |
Slide()
|
protected |
Slide(Presentation parent)
Creates new Slide - called by Presentation to create a slide from scratch. |
protected |
Slide(Presentation parent,
PPTSlide slide)
Creates a PPTSlide representing the given Slide object. |
Method Summary | |
---|---|
Notes |
addNotes()
Adds the empty notes to a slide. |
protected void |
addNotes(Notes notes)
|
protected int |
changeIdBase(java.util.TreeMap idList)
|
protected int |
changeIdBase(java.util.TreeMap idList,
EsSpGrContainer group,
int newMaxId)
|
void |
changeMaster(Slide newMaster)
Replaces the master slide for a slide and changes placeholder's style. |
void |
changeMaster(Slide newMaster,
boolean changeStyle)
Replaces the master slide for a slide and optionally changes placeholder's style. |
protected Slide |
clone(Presentation pres)
|
protected void |
deleteSpContainer(EsRecordArray drw,
EsContainer cnt)
|
protected java.util.ArrayList |
findRootSpContainers(EsRecordArray drw)
|
Shape |
findShape(java.lang.String altText)
Search and return the shape with defined alternative text. |
Background |
getBackground()
Returns the background of a slide. |
protected Document |
getDoc()
|
HeaderFooter |
getHeaderFooter()
Returns the header and footer settings for a slide. |
int |
getLayout()
Returns the slide layout. |
long |
getMasterId()
Returns the Id of a master slide. |
java.lang.String |
getName()
Returns the name of a slide. |
Notes |
getNotes()
Returns the notes of a slide. |
Presentation |
getParent()
Returns the parent presentation. |
Placeholders |
getPlaceholders()
Returns the placeholders of a slide. |
protected PPDrawing |
getPPDrawing()
|
protected PPTSlide |
getPPTSlide()
|
protected java.awt.Color |
getSchemeColor(int index)
Returns the color from the color scheme for a slide. |
Shapes |
getShapes()
Returns the shapes of a slide. |
protected SlideAtom |
getSlideAtom()
|
SlideComments |
getSlideComments()
Returns the collection of slide comments. |
long |
getSlideId()
Returns the Id of a slide. |
int |
getSlidePosition()
Returns the position of a slide. |
SlideShowTransition |
getSlideShowTransition()
Returns the SlideShowTransition object which contains information about how the specified slide advances during a slide show. |
protected java.util.ArrayList |
getSubFrames()
|
Tags |
getTags()
Returns the tags of a slide. |
java.awt.image.BufferedImage |
getThumbnail(java.util.Collection elementsToDraw,
java.awt.Dimension imageSize,
java.awt.geom.Rectangle2D.Float window)
Returns a Thumbnail Image of specified elements with specified size. |
java.awt.image.BufferedImage |
getThumbnail(java.util.Collection elementsToDraw,
float scaleX,
float scaleY,
java.awt.geom.Rectangle2D.Float window)
Returns a Thumbnail Image of specified elements with specified size. |
java.awt.image.BufferedImage |
getThumbnail(java.awt.Dimension imageSize)
Returns the thumbnail image object with specified size. |
java.awt.image.BufferedImage |
getThumbnail(java.awt.Dimension imageSize,
java.awt.geom.Rectangle2D.Float window,
IDrawingControl drawingControl)
Returns the thumbnail image object with specified size. |
java.awt.image.BufferedImage |
getThumbnail(float scaleX,
float scaleY)
Returns the thumbnail image object with custom scaling. |
java.awt.image.BufferedImage |
getThumbnail(float scaleX,
float scaleY,
java.awt.geom.Rectangle2D.Float window,
IDrawingControl drawingControl)
Returns a Thumbnail Image object with custom scaling. |
boolean |
isFollowMasterBackground()
Determines whether the slide follows the master slide background. |
boolean |
isFollowMasterObjects()
Determines whether the slide objects follow the master slide objects style. |
boolean |
isFollowMasterScheme()
Determines whether the slide follows the master slide color scheme. |
boolean |
isMasterSlide()
Determines whether the slide is a master slide. |
void |
saveToSVG(java.io.OutputStream stream)
Creates image of a slide in SVG (vector graphics) format and writes it to a stream. |
protected void |
setDoc(Document value)
|
void |
setFollowMasterBackground(boolean value)
Sets whether the slide follows the master slide background. |
void |
setFollowMasterObjects(boolean value)
Sets whether the slide objects follow the master slide objects style. |
void |
setFollowMasterScheme(boolean value)
Sets whether the slide follows the master slide color scheme. |
void |
setMasterId(long value)
Sets the ID of a master slide. |
void |
setName(java.lang.String value)
Sets the name of a slide. |
protected void |
setPPDrawing(PPDrawing value)
|
protected void |
setPPTSlide(PPTSlide value)
|
protected void |
setSchemeColor(int index,
java.awt.Color color)
Sets the color of a color scheme for a slide. |
protected void |
setSlideAtom(SlideAtom value)
|
protected void |
setSlideId(long val)
|
void |
setSlidePosition(int value)
Sets the position of a slide. |
protected void |
updateDefaultMasterText(Slide srcSlide)
|
protected void |
updateParagraphs(Shapes subShapes,
boolean skipEmpty)
|
protected void |
updateShapeSizes()
|
protected void |
updateTextColors()
|
protected void |
zOrder(EsRecordArray drw,
Shape shape,
int cmd)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Presentation m_parent
protected PPTSlide m_slide
protected SlideAtom m_satom
protected Document m_doc
protected Notes m_notes
protected Background m_background
protected PPDrawing m_drawing
protected Placeholders m_pholders
protected Shapes m_shapes
protected SlideShowTransition m_SlideTransition
protected Tags m_tags
Constructor Detail |
---|
protected Slide()
protected Slide(Presentation parent)
parent
- Presentation object associated with the slide.protected Slide(Presentation parent, PPTSlide slide) throws PptReadException
parent
- slide
-
PptReadException
Method Detail |
---|
protected void updateShapeSizes()
protected void updateTextColors()
protected void updateDefaultMasterText(Slide srcSlide)
protected void updateParagraphs(Shapes subShapes, boolean skipEmpty)
protected void deleteSpContainer(EsRecordArray drw, EsContainer cnt)
protected java.util.ArrayList findRootSpContainers(EsRecordArray drw)
protected java.util.ArrayList getSubFrames()
protected int changeIdBase(java.util.TreeMap idList)
protected int changeIdBase(java.util.TreeMap idList, EsSpGrContainer group, int newMaxId)
protected Slide clone(Presentation pres) throws java.io.IOException, PptReadException
pres
- the target presentation.
java.io.IOException
PptReadException
protected void zOrder(EsRecordArray drw, Shape shape, int cmd)
protected void addNotes(Notes notes)
public Notes addNotes() throws PptEditException
addNotes
in interface ISlide
PptEditException
- on notes adding errors.public Presentation getParent()
getParent
in interface ISlide
public Notes getNotes()
getNotes
in interface ISlide
public Shapes getShapes()
getShapes
in interface ISlide
public Placeholders getPlaceholders()
getPlaceholders
in interface ISlide
public Background getBackground()
getBackground
in interface ISlide
public long getSlideId()
getSlideId
in interface ISlide
protected void setSlideId(long val)
public long getMasterId()
getMasterId
in interface ISlide
public void setMasterId(long value)
setMasterId
in interface ISlide
value
- the new Id of a master slide.public boolean isMasterSlide()
isMasterSlide
in interface ISlide
public int getSlidePosition()
0
for master slides.
getSlidePosition
in interface ISlide
public void setSlidePosition(int value)
setSlidePosition
in interface ISlide
value
- new slide position.public int getLayout()
getLayout
in interface ISlide
SlideLayout
.public boolean isFollowMasterObjects()
isFollowMasterObjects
in interface ISlide
public void setFollowMasterObjects(boolean value)
setFollowMasterObjects
in interface ISlide
value
- true to force slide objects follow the master slide objects
style.public boolean isFollowMasterScheme()
isFollowMasterScheme
in interface ISlide
public void setFollowMasterScheme(boolean value)
setFollowMasterScheme
in interface ISlide
value
- true to force slide follow the master slide color scheme.public boolean isFollowMasterBackground()
isFollowMasterBackground
in interface ISlide
public void setFollowMasterBackground(boolean value)
setFollowMasterBackground
in interface ISlide
value
- true to force slide follow the master slide background.public java.lang.String getName()
getName
in interface ISlide
public void setName(java.lang.String value)
setName
in interface ISlide
value
- the name of a slide.protected java.awt.Color getSchemeColor(int index)
index
- index of the color in a scheme.
protected void setSchemeColor(int index, java.awt.Color color)
index
- Index of a color in a scheme.color
- New colorpublic java.awt.image.BufferedImage getThumbnail(float scaleX, float scaleY) throws PptException
getThumbnail
in interface ISlide
scaleX
- The value by which to scale this Thumbnail in the x-axis direction.scaleY
- The value by which to scale this Thumbnail in the y-axis direction.
PptException
public java.awt.image.BufferedImage getThumbnail(java.util.Collection elementsToDraw, java.awt.Dimension imageSize, java.awt.geom.Rectangle2D.Float window) throws PptException
getThumbnail
in interface ISlide
elementsToDraw
- a list of elements to draw.imageSize
- size of a new Image.window
- a part of slide to draw.
PptException
public java.awt.image.BufferedImage getThumbnail(java.util.Collection elementsToDraw, float scaleX, float scaleY, java.awt.geom.Rectangle2D.Float window) throws PptException
getThumbnail
in interface ISlide
elementsToDraw
- a list of elements to draw.scaleX
- value by which to scale thumbnail in the x-axis direction.scaleY
- value by which to scale thumbnail in the y-axis direction.window
- a part of slide to draw.
PptException
public java.awt.image.BufferedImage getThumbnail(float scaleX, float scaleY, java.awt.geom.Rectangle2D.Float window, IDrawingControl drawingControl) throws PptException
getThumbnail
in interface ISlide
scaleX
- value by which to scale thumbnail in the x-axis direction.scaleY
- value by which to scale thumbnail in the y-axis direction.window
- a part of slide to draw.drawingControl
- an object which determines which slide elements to draw or null to draw all.
PptException
public java.awt.image.BufferedImage getThumbnail(java.awt.Dimension imageSize) throws PptException
imageSize
- Size of new Image.
PptException
public java.awt.image.BufferedImage getThumbnail(java.awt.Dimension imageSize, java.awt.geom.Rectangle2D.Float window, IDrawingControl drawingControl) throws PptException
getThumbnail
in interface ISlide
imageSize
- size of a new Image.window
- a part of slide to draw.drawingControl
- an object which determines which slide elements to draw or null to draw all.
PptException
public void saveToSVG(java.io.OutputStream stream) throws PptException, AsposeLicenseException
saveToSVG
in interface ISlide
stream
- output stream.
PptException
AsposeLicenseException
public SlideShowTransition getSlideShowTransition()
getSlideShowTransition
in interface ISlide
public void changeMaster(Slide newMaster) throws PptEditException
changeMaster
in interface ISlide
newMaster
- New master slide.
PptEditException
public void changeMaster(Slide newMaster, boolean changeStyle) throws PptEditException
changeMaster
in interface ISlide
newMaster
- New master slide.changeStyle
- true to change style of placeholders.
PptEditException
public HeaderFooter getHeaderFooter()
getHeaderFooter
in interface ISlide
HeaderFooter
.public Tags getTags()
getTags
in interface ISlide
Tags
.public SlideComments getSlideComments()
getSlideComments
in interface ISlide
SlideComments
.protected Document getDoc()
protected void setDoc(Document value)
protected PPTSlide getPPTSlide()
protected void setPPTSlide(PPTSlide value)
protected PPDrawing getPPDrawing()
protected void setPPDrawing(PPDrawing value)
protected SlideAtom getSlideAtom()
protected void setSlideAtom(SlideAtom value)
public Shape findShape(java.lang.String altText)
findShape
in interface ISlide
altText
- Alternative text to find.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |