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 record, int sheetNo)
          Constructs a SlideMaster from the MainMaster record,
 
Method Summary
 MasterSheet getMasterSheet()
          Returns null since SlideMasters doen't have master sheet.
 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
static boolean isPlaceholder(Shape shape)
          Checks if the shape is a placeholder.
 void setSlideShow(SlideShow ss)
          Assign SlideShow for this slide master.
 
Methods inherited from class org.apache.poi.hslf.model.MasterSheet
getPlaceholder
 
Methods inherited from class org.apache.poi.hslf.model.Sheet
_getSheetNumber, _getSheetRefId, addShape, allocateShapeId, draw, findTextRuns, findTextRuns, getBackground, getColorScheme, getPPDrawing, getShapes, getSheetContainer, getSlideShow, onCreate, removeShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideMaster

public SlideMaster(MainMaster record,
                   int sheetNo)
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

getMasterSheet

public MasterSheet getMasterSheet()
Returns null since SlideMasters doen't have master sheet.

Specified by:
getMasterSheet 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.

Specified by:
getStyleAttribute in class MasterSheet

setSlideShow

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

Overrides:
setSlideShow in class Sheet

isPlaceholder

public static boolean isPlaceholder(Shape shape)
Checks if the shape is a placeholder. (placeholders aren't normal shapes, they are visible only in the Edit Master mode)

Returns:
true if the shape is a placeholder


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