org.apache.poi.hslf.model
Class SlideMaster

java.lang.Object
  extended by org.apache.poi.hslf.model.Sheet
      extended by org.apache.poi.hslf.model.MasterSheet
          extended by org.apache.poi.hslf.model.SlideMaster

public class SlideMaster
extends MasterSheet

SlideMaster determines the graphics, layout, and formatting for all the slides in a given presentation. It stores information about default font styles, placeholder sizes and positions, background design, and color schemes.

Author:
Yegor Kozlov

Constructor Summary
SlideMaster(MainMaster rec, int slideId)
          Constructs a SlideMaster from the MainMaster record,
 
Method Summary
 int _getSheetNumber()
          Returns the (internal, SlideIdentifer based) number of the slide we're attached to
 int _getSheetRefId()
          Returns the (internal, RefID based) sheet number, as used to in PersistPtr stuff.
 Background getBackground()
          Returns the background shape for this sheet.
 ColorSchemeAtom getColorScheme()
          Returns the ColorSchemeAtom associated with this slide master
protected  PPDrawing getPPDrawing()
          Returns the PPDrawing associated with this slide master
 TextProp getStyleAttribute(int txtype, int level, java.lang.String name, boolean isCharacter)
          Pickup a style attribute from the master.
 TextRun[] getTextRuns()
          Returns an array of all the TextRuns found
 void setSlideShow(SlideShow ss)
          Assign SlideShow for this slide master.
 
Methods inherited from class org.apache.poi.hslf.model.Sheet
addShape, findTextRuns, findTextRuns, getMasterSheet, getShapes, getSlideShow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideMaster

public SlideMaster(MainMaster rec,
                   int slideId)
Constructs a SlideMaster from the MainMaster record,

Method Detail

getTextRuns

public TextRun[] getTextRuns()
Returns an array of all the TextRuns found

Specified by:
getTextRuns in class Sheet

_getSheetRefId

public int _getSheetRefId()
Returns the (internal, RefID based) sheet number, as used to in PersistPtr stuff.

Specified by:
_getSheetRefId in class Sheet

_getSheetNumber

public int _getSheetNumber()
Returns the (internal, SlideIdentifer based) number of the slide we're attached to

Specified by:
_getSheetNumber in class Sheet

getPPDrawing

protected PPDrawing getPPDrawing()
Returns the PPDrawing associated with this slide master

Specified by:
getPPDrawing in class Sheet

getStyleAttribute

public TextProp getStyleAttribute(int txtype,
                                  int level,
                                  java.lang.String name,
                                  boolean isCharacter)
Pickup a style attribute from the master. This is the "workhorse" which returns the default style attrubutes.


setSlideShow

public void setSlideShow(SlideShow ss)
Assign SlideShow for this slide master. (Used interanlly)

Overrides:
setSlideShow in class Sheet

getColorScheme

public ColorSchemeAtom getColorScheme()
Returns the ColorSchemeAtom associated with this slide master

Overrides:
getColorScheme in class Sheet

getBackground

public Background getBackground()
Returns the background shape for this sheet.

Returns:
the background shape for this sheet.


Copyright 2007 The Apache Software Foundation or its licensors, as applicable.