com.aspose.slides
Class Slide

java.lang.Object
  extended by com.aspose.slides.BaseSlide
      extended by com.aspose.slides.Slide
All Implemented Interfaces:
IBaseSlide, IOverrideThemeable, IPresentationComponent, ISlide, ISlideComponent, IThemeable

public final class Slide
extends BaseSlide
implements ISlide

Represents a slide in a presentation.


Method Summary
 INotesSlide addNotesSlide()
          Deprecated. 
 void applyColorScheme(ExtraColorScheme scheme)
          Deprecated. 
 boolean getHidden()
           Determines whether the specified slide is hidden during a slide show.
 ILayoutSlide getLayoutSlide()
           Returns or sets the layout slide for the current slide.
 INotesSlide getNotesSlide()
          Deprecated. 
 INotesSlideManager getNotesSlideManager()
           Allow to access notes slide, add and remove it.
 OverrideTheme getOverrideTheme()
          Deprecated. 
 IComment[] getSlideComments(ICommentAuthor author)
           Returns all slide comments added by specific author.
 int getSlideNumber()
           Returns a number of slide.
 IOverrideThemeManager getThemeManager()
           Returns the overriding theme manager.
 java.awt.image.BufferedImage getThumbnail()
           Returns a Thumbnail Image object (20% of real size).
 java.awt.image.BufferedImage getThumbnail(java.awt.Dimension imageSize)
           Returns a Thumbnail Bitmap object with specified size.
 java.awt.image.BufferedImage getThumbnail(float scaleX, float scaleY)
           Returns a Thumbnail Bitmap object with custom scaling.
 java.awt.image.BufferedImage getThumbnail(ITiffOptions options)
           Returns a Thumbnail tiff bitmap object with specified parameters.
 void joinPortionsWithSameFormatting()
           Joins runs with same formatting in all paragraphs in all acceptable shapes.
 void remove()
           Removes slide from presentation.
 void renderToGraphics(boolean withNotes, java.awt.Graphics2D graphics)
           Renders certain slide to a Graphics object.
 void renderToGraphics(boolean withNotes, java.awt.Graphics2D graphics, float scale)
           Renders certain slide to a Graphics object.
 void renderToGraphics(boolean withNotes, java.awt.Graphics2D graphics, int width, int height)
           Renders certain slide to a Graphics object.
 void setHidden(boolean value)
           Determines whether the specified slide is hidden during a slide show.
 void setLayoutSlide(ILayoutSlide value)
           Returns or sets the layout slide for the current slide.
 void setSlideNumber(int value)
           Returns a number of slide.
 void writeAsSvg(java.io.OutputStream stream)
           Saves content of slide as SVG file.
 void writeAsSvg(java.io.OutputStream stream, ISVGOptions svgOptions)
           Saves content of slide as SVG file.
 
Methods inherited from class com.aspose.slides.BaseSlide
createThemeEffective, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getName, getParent_Immediate, getParentPresentation, getPresentation, getShapes, getSlide, getSlideId, getSlideShowTransition, getTags, getTimeline, joinPortionsWithSameFormatting, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aspose.slides.IBaseSlide
findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getName, getShapes, getSlideId, getSlideShowTransition, getTimeline, setName
 
Methods inherited from interface com.aspose.slides.IThemeable
createThemeEffective
 
Methods inherited from interface com.aspose.slides.ISlideComponent
getSlide
 
Methods inherited from interface com.aspose.slides.IPresentationComponent
getPresentation
 

Method Detail

getThemeManager

public IOverrideThemeManager getThemeManager()

Returns the overriding theme manager. Read-only IOverrideThemeManager.

Specified by:
getThemeManager in interface IOverrideThemeable

getOverrideTheme

@Deprecated
public OverrideTheme getOverrideTheme()
Deprecated. 

Returns the overriding theme object. Read-only OverrideTheme.


getSlideNumber

public final int getSlideNumber()

Returns a number of slide. Index of slide in Presentation.Slides collection is always equal to SlideNumber - 1. Read/write int.

Specified by:
getSlideNumber in interface ISlide

setSlideNumber

public final void setSlideNumber(int value)

Returns a number of slide. Index of slide in Presentation.Slides collection is always equal to SlideNumber - 1. Read/write int.

Specified by:
setSlideNumber in interface ISlide

getHidden

public boolean getHidden()

Determines whether the specified slide is hidden during a slide show. Read/write boolean.

Specified by:
getHidden in interface ISlide

setHidden

public void setHidden(boolean value)

Determines whether the specified slide is hidden during a slide show. Read/write boolean.

Specified by:
setHidden in interface ISlide

getThumbnail

public java.awt.image.BufferedImage getThumbnail(float scaleX,
                                                 float scaleY)

Returns a Thumbnail Bitmap object with custom scaling.

Specified by:
getThumbnail in interface ISlide
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.
Returns:
Bitmap object.

getThumbnail

public java.awt.image.BufferedImage getThumbnail()

Returns a Thumbnail Image object (20% of real size).

Specified by:
getThumbnail in interface ISlide

getThumbnail

public java.awt.image.BufferedImage getThumbnail(java.awt.Dimension imageSize)

Returns a Thumbnail Bitmap object with specified size.

Specified by:
getThumbnail in interface ISlide
Parameters:
imageSize - Size of the image to create.
Returns:
Bitmap object.

getThumbnail

public java.awt.image.BufferedImage getThumbnail(ITiffOptions options)

Returns a Thumbnail tiff bitmap object with specified parameters.

Specified by:
getThumbnail in interface ISlide
Parameters:
options - Tiff options.
Returns:
Bitmap object.

renderToGraphics

public void renderToGraphics(boolean withNotes,
                             java.awt.Graphics2D graphics,
                             int width,
                             int height)

Renders certain slide to a Graphics object.

Specified by:
renderToGraphics in interface ISlide
Parameters:
withNotes - True to render slide notes as well. False otherwise.
graphics - The object where to render to.
width - The maximum width (in pixels) that can be occupied by the rendered slide.
height - The maximum height (in pixels) that can be occupied by the rendered slide.

renderToGraphics

public void renderToGraphics(boolean withNotes,
                             java.awt.Graphics2D graphics,
                             float scale)

Renders certain slide to a Graphics object.

Specified by:
renderToGraphics in interface ISlide
Parameters:
withNotes - True to render slide notes as well. False otherwise.
graphics - The object where to render to.
scale - The scale for rendering the slide (1.0 is 100%).

renderToGraphics

public void renderToGraphics(boolean withNotes,
                             java.awt.Graphics2D graphics)

Renders certain slide to a Graphics object.

Specified by:
renderToGraphics in interface ISlide
Parameters:
withNotes - True to render slide notes as well. False otherwise.
graphics - The object where to render to.

writeAsSvg

public void writeAsSvg(java.io.OutputStream stream)

Saves content of slide as SVG file.

Specified by:
writeAsSvg in interface ISlide
Parameters:
stream - Target stream

writeAsSvg

public void writeAsSvg(java.io.OutputStream stream,
                       ISVGOptions svgOptions)

Saves content of slide as SVG file.

Specified by:
writeAsSvg in interface ISlide
Parameters:
stream - Target stream
svgOptions - SVG generation options

remove

public void remove()

Removes slide from presentation.

Specified by:
remove in interface ISlide
Throws:
PptxEditException - Thrown if slide is already removed from presentation.

getLayoutSlide

public ILayoutSlide getLayoutSlide()

Returns or sets the layout slide for the current slide. Read/write ILayoutSlide.

Specified by:
getLayoutSlide in interface ISlide

setLayoutSlide

public void setLayoutSlide(ILayoutSlide value)

Returns or sets the layout slide for the current slide. Read/write ILayoutSlide.

Specified by:
setLayoutSlide in interface ISlide

getNotesSlide

@Deprecated
public INotesSlide getNotesSlide()
Deprecated. 

Returns the notes slide for the current slide. Read-only INotesSlide.

Specified by:
getNotesSlide in interface ISlide

addNotesSlide

@Deprecated
public INotesSlide addNotesSlide()
Deprecated. 

Returns the notes slide for the current slide, creating one if there isn't.

Specified by:
addNotesSlide in interface ISlide
Returns:
NotesSlide for this slide.

getNotesSlideManager

public INotesSlideManager getNotesSlideManager()

Allow to access notes slide, add and remove it. Read-only INotesSlideManager.

Specified by:
getNotesSlideManager in interface ISlide

getSlideComments

public IComment[] getSlideComments(ICommentAuthor author)

Returns all slide comments added by specific author.

Specified by:
getSlideComments in interface ISlide
Parameters:
author - Author of comments to find or null to return all comments.
Returns:
Array of Comment.

applyColorScheme

@Deprecated
public void applyColorScheme(ExtraColorScheme scheme)
Deprecated. 

Applies extra color scheme to a slide.

Specified by:
applyColorScheme in class BaseSlide
Parameters:
scheme -

joinPortionsWithSameFormatting

public void joinPortionsWithSameFormatting()

Joins runs with same formatting in all paragraphs in all acceptable shapes.

Specified by:
joinPortionsWithSameFormatting in interface IBaseSlide
Overrides:
joinPortionsWithSameFormatting in class BaseSlide


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.