com.aspose.slides
Interface ISlide

All Known Implementing Classes:
MainMaster, Slide

public interface ISlide

The interface which defines properties of a slide.


Method Summary
 Notes addNotes()
          Add empty notes to a slide.
 void changeMaster(Slide newMaster)
          Replaces the master slide of a slide and change placeholder style.
 void changeMaster(Slide newMaster, boolean changeStyle)
          Replaces the master slide of a slide and optionally change placeholder style.
 Shape findShape(java.lang.String altText)
          Search and return the shape with the specified alternative text.
 Background getBackground()
          Returns the background of a slide.
 HeaderFooter getHeaderFooter()
          Returns the header and footer settings of a slide.
 int getLayout()
          Returns the layout of a slide.
 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.
 Shapes getShapes()
          Returns the shapes of a slide.
 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 information how the slide advances during a slide show.
 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 the thumbnail image of the specified elements with the specified size.
 java.awt.image.BufferedImage getThumbnail(java.util.Collection elementsToDraw, float scaleX, float scaleY, java.awt.geom.Rectangle2D.Float window)
          Returns the thumbnail image of the specified elements with the specified size.
 java.awt.image.BufferedImage getThumbnail(java.awt.Dimension imageSize, java.awt.geom.Rectangle2D.Float window, IDrawingControl drawingControl)
          Returns the thumbnail image with the specified size.
 java.awt.image.BufferedImage getThumbnail(float scaleX, float scaleY)
          Returns the thumbnail image with custom scaling.
 java.awt.image.BufferedImage getThumbnail(float scaleX, float scaleY, java.awt.geom.Rectangle2D.Float window, IDrawingControl drawingControl)
          Returns the thumbnail image with the custom scaling.
 boolean isFollowMasterBackground()
          Determines whether the slide follows the master slide background.
 boolean isFollowMasterObjects()
          Determines whether 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 vector image of a slide in SVG format and writes it to a stream.
 void setFollowMasterBackground(boolean value)
          Sets whether the slide follows the master slide background.
 void setFollowMasterObjects(boolean value)
          Sets whether 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.
 void setSlidePosition(int value)
          Sets the position of a slide.
 

Method Detail

addNotes

Notes addNotes()
               throws PptEditException
Add empty notes to a slide.

Throws:
PptEditException

getNotes

Notes getNotes()
Returns the notes of a slide.


getParent

Presentation getParent()
Returns the parent presentation.


getShapes

Shapes getShapes()
Returns the shapes of a slide.


getPlaceholders

Placeholders getPlaceholders()
Returns the placeholders of a slide.


getBackground

Background getBackground()
Returns the background of a slide.


getSlideId

long getSlideId()
Returns the Id of a slide.


getMasterId

long getMasterId()
Returns the Id of a master slide.


setMasterId

void setMasterId(long value)
Sets the ID of a master slide.

Parameters:
value - new Id of a master slide.

isMasterSlide

boolean isMasterSlide()
Determines whether the slide is a master slide.

Returns:
true if the slide is a master slide.

getSlidePosition

int getSlidePosition()
Returns the position of a slide.


setSlidePosition

void setSlidePosition(int value)
Sets the position of a slide. Do nothing for master slides.

Parameters:
value - new slide position.

getLayout

int getLayout()
Returns the layout of a slide. See SlideLayout.


isFollowMasterObjects

boolean isFollowMasterObjects()
Determines whether slide objects follow the master slide objects style.

Returns:
true if slide objects follow the master slide objects style.

setFollowMasterObjects

void setFollowMasterObjects(boolean value)
Sets whether slide objects follow the master slide objects style.

Parameters:
value - true to force slide objects follow the master slide objects style.

isFollowMasterScheme

boolean isFollowMasterScheme()
Determines whether the slide follows the master slide color scheme.

Returns:
true if the slide follows the master slide color scheme.

setFollowMasterScheme

void setFollowMasterScheme(boolean value)
Sets whether the slide follows the master slide color scheme.

Parameters:
value - true to force the slide follow the master slide color scheme.

isFollowMasterBackground

boolean isFollowMasterBackground()
Determines whether the slide follows the master slide background.

Returns:
true if the slide follows the master slide background.

setFollowMasterBackground

void setFollowMasterBackground(boolean value)
Sets whether the slide follows the master slide background.

Parameters:
value - true to force the slide follow the master slide background.

getName

java.lang.String getName()
Returns the name of a slide.


setName

void setName(java.lang.String value)
Sets the name of a slide.

Parameters:
value - new name of a slide.

getThumbnail

java.awt.image.BufferedImage getThumbnail(float scaleX,
                                          float scaleY)
                                          throws PptException
Returns the thumbnail image with custom scaling.

Parameters:
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.
Throws:
PptException

getThumbnail

java.awt.image.BufferedImage getThumbnail(java.util.Collection elementsToDraw,
                                          java.awt.Dimension imageSize,
                                          java.awt.geom.Rectangle2D.Float window)
                                          throws PptException
Returns the thumbnail image of the specified elements with the specified size.

Parameters:
elementsToDraw - a list of elements to draw.
imageSize - size of a new image.
window - part of a slide to draw.
Throws:
PptException

getThumbnail

java.awt.image.BufferedImage getThumbnail(java.util.Collection elementsToDraw,
                                          float scaleX,
                                          float scaleY,
                                          java.awt.geom.Rectangle2D.Float window)
                                          throws PptException
Returns the thumbnail image of the specified elements with the specified size.

Parameters:
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 - part of a slide to draw.
Throws:
PptException

getThumbnail

java.awt.image.BufferedImage getThumbnail(float scaleX,
                                          float scaleY,
                                          java.awt.geom.Rectangle2D.Float window,
                                          IDrawingControl drawingControl)
                                          throws PptException
Returns the thumbnail image with the custom scaling.

Parameters:
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 - part of a slide to draw.
drawingControl - object which determines what slide elements to draw or null to draw all elements.
Throws:
PptException

getThumbnail

java.awt.image.BufferedImage getThumbnail(java.awt.Dimension imageSize,
                                          java.awt.geom.Rectangle2D.Float window,
                                          IDrawingControl drawingControl)
                                          throws PptException
Returns the thumbnail image with the specified size.

Parameters:
imageSize - size of a new Image.
window - part of a slide to draw.
drawingControl - object which determines what slide elements to draw or null to draw all elements.
Throws:
PptException

saveToSVG

void saveToSVG(java.io.OutputStream stream)
               throws PptException,
                      AsposeLicenseException
Creates vector image of a slide in SVG format and writes it to a stream.

Parameters:
stream - output stream.
Throws:
PptException
AsposeLicenseException

getSlideShowTransition

SlideShowTransition getSlideShowTransition()
Returns information how the slide advances during a slide show.


changeMaster

void changeMaster(Slide newMaster)
                  throws PptEditException
Replaces the master slide of a slide and change placeholder style.

Parameters:
newMaster - new master slide.
Throws:
PptEditException

changeMaster

void changeMaster(Slide newMaster,
                  boolean changeStyle)
                  throws PptEditException
Replaces the master slide of a slide and optionally change placeholder style.

Parameters:
newMaster - new master slide.
changeStyle - true to change style of placeholders.
Throws:
PptEditException

getHeaderFooter

HeaderFooter getHeaderFooter()
Returns the header and footer settings of a slide.


getTags

Tags getTags()
Returns the tags of a slide.


findShape

Shape findShape(java.lang.String altText)
Search and return the shape with the specified alternative text.

Parameters:
altText - alternative text to find.

getSlideComments

SlideComments getSlideComments()
Returns the collection of slide comments.