|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.BaseSlide
com.aspose.slides.Slide
public class Slide
Represents the slide in a presentation.
Method Summary | |
---|---|
Notes |
addNotes()
Adds the empty notes to a slide. |
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. |
Shape |
findShape(java.lang.String altText)
Search and return the shape with defined alternative text. |
Background |
getBackground()
Returns the background of a slide. |
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. |
java.awt.Color |
getSchemeColor(int index)
Returns the color from the color scheme for a slide. |
Shapes |
getShapes()
Returns the shapes of a slide. |
Comments |
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. |
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. |
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. |
void |
setSchemeColor(int index,
java.awt.Color color)
Sets the color of a color scheme for a slide. |
void |
setSlidePosition(int value)
Sets the position of a slide. |
Methods inherited from class com.aspose.slides.BaseSlide |
---|
getParentPresentation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Notes addNotes() throws PptEditException
addNotes
in interface ISlide
PptEditException
- on notes adding errors.public Presentation getParent()
getParent
in interface ISlide
getParent
in class BaseSlide
public Notes getNotes()
getNotes
in interface ISlide
public Shapes getShapes()
getShapes
in interface ISlide
getShapes
in class BaseSlide
public Placeholders getPlaceholders()
getPlaceholders
in interface ISlide
getPlaceholders
in class BaseSlide
public Background getBackground()
getBackground
in interface ISlide
getBackground
in class BaseSlide
public long getSlideId()
getSlideId
in interface ISlide
getSlideId
in class BaseSlide
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
isMasterSlide
in class BaseSlide
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.public java.awt.Color getSchemeColor(int index)
getSchemeColor
in class BaseSlide
index
- index of the color in a scheme.
public 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, com.aspose.slides.license.AsposeLicenseException
saveToSVG
in interface ISlide
stream
- output stream.
PptException
com.aspose.slides.license.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
public Tags getTags()
getTags
in interface ISlide
public Comments getSlideComments()
getSlideComments
in interface ISlide
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 |