Package org.apache.poi.hslf.usermodel
Class HSLFSlideMaster
- java.lang.Object
-
- org.apache.poi.hslf.usermodel.HSLFSheet
-
- org.apache.poi.hslf.usermodel.HSLFMasterSheet
-
- org.apache.poi.hslf.usermodel.HSLFSlideMaster
-
- All Implemented Interfaces:
java.lang.Iterable<HSLFShape>
,HSLFShapeContainer
,MasterSheet<HSLFShape,HSLFTextParagraph>
,ShapeContainer<HSLFShape,HSLFTextParagraph>
,Sheet<HSLFShape,HSLFTextParagraph>
public final class HSLFSlideMaster extends HSLFMasterSheet
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.
-
-
Constructor Summary
Constructors Constructor Description HSLFSlideMaster(MainMaster record, int sheetNo)
Constructs a SlideMaster from the MainMaster record,
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HSLFMasterSheet
getMasterSheet()
Returnsnull
since SlideMasters doen't have master sheet.TextPropCollection
getPropCollection(int txtype, int level, java.lang.String name, boolean isCharacter)
Find the master collection for the given txtype/level/name.java.util.List<java.util.List<HSLFTextParagraph>>
getTextParagraphs()
Returns an array of all the TextRuns foundTxMasterStyleAtom[]
getTxMasterStyleAtoms()
-
Methods inherited from class org.apache.poi.hslf.usermodel.HSLFMasterSheet
isPlaceholder
-
Methods inherited from class org.apache.poi.hslf.usermodel.HSLFSheet
_getSheetNumber, _getSheetRefId, addShape, allocateShapeId, createAutoShape, createConnector, createFreeform, createGroup, createOleShape, createPicture, createTable, createTextBox, draw, getBackground, getColorScheme, getFollowMasterGraphics, getHeadersFooters, getPlaceholder, getPlaceholderByTextType, getPlaceholderDetails, getPPDrawing, getProgrammableTag, getShapes, getSheetContainer, getSlideShow, iterator, onCreate, removeShape
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.sl.usermodel.MasterSheet
getPlaceholder
-
Methods inherited from interface org.apache.poi.sl.usermodel.ShapeContainer
addShape, createTable, getShapes, removeShape
-
Methods inherited from interface org.apache.poi.sl.usermodel.Sheet
draw, getBackground, getFollowMasterGraphics, getPlaceholderDetails, getSlideShow
-
-
-
-
Constructor Detail
-
HSLFSlideMaster
public HSLFSlideMaster(MainMaster record, int sheetNo)
Constructs a SlideMaster from the MainMaster record,
-
-
Method Detail
-
getTextParagraphs
public java.util.List<java.util.List<HSLFTextParagraph>> getTextParagraphs()
Returns an array of all the TextRuns found- Specified by:
getTextParagraphs
in classHSLFSheet
-
getMasterSheet
public HSLFMasterSheet getMasterSheet()
Returnsnull
since SlideMasters doen't have master sheet.- Specified by:
getMasterSheet
in interfaceSheet<HSLFShape,HSLFTextParagraph>
- Specified by:
getMasterSheet
in classHSLFSheet
-
getPropCollection
public TextPropCollection getPropCollection(int txtype, int level, java.lang.String name, boolean isCharacter)
Find the master collection for the given txtype/level/name. This is the "workhorse" which returns the default style attributes. Ifname = "*"
return the current collection, otherwise if the name is not found in the current selection of txtype/level/name, first try lower levels then try parent types, if it wasn't found there returnnull
.- Specified by:
getPropCollection
in classHSLFMasterSheet
- Parameters:
txtype
- theTextHeaderAtom
typelevel
- the indent level of the paragraph, if the level is not defined for the found collection, the highest existing level will be usedname
- the property name,isCharacter
- iftrue
use character styles, otherwise use paragraph styles
-
getTxMasterStyleAtoms
public TxMasterStyleAtom[] getTxMasterStyleAtoms()
-
-