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:
Iterable<HSLFShape>,HSLFShapeContainer,MasterSheet<HSLFShape,,HSLFTextParagraph> ShapeContainer<HSLFShape,,HSLFTextParagraph> Sheet<HSLFShape,HSLFTextParagraph>
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
ConstructorsConstructorDescriptionHSLFSlideMaster(MainMaster record, int sheetNo) Constructs a SlideMaster from the MainMaster record, -
Method Summary
Modifier and TypeMethodDescriptionReturnsnullsince SlideMasters doen't have master sheet.getPropCollection(int txtype, int level, String name, boolean isCharacter) Find the master collection for the given txtype/level/name.Returns an array of all the TextRuns foundprotected voidonAddTextShape(HSLFTextShape shape) Subclasses should call this method and update the array of text runs when a text shape is addedprotected voidAssign SlideShow for this slide master.Methods inherited from class org.apache.poi.hslf.usermodel.HSLFMasterSheet
isPlaceholderMethods 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, removeShapeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.poi.sl.usermodel.MasterSheet
getPlaceholderMethods inherited from interface org.apache.poi.sl.usermodel.ShapeContainer
addShape, createTable, getShapes, removeShapeMethods inherited from interface org.apache.poi.sl.usermodel.Sheet
draw, getBackground, getFollowMasterGraphics, getPlaceholderDetails, getSlideShow
-
Constructor Details
-
HSLFSlideMaster
Constructs a SlideMaster from the MainMaster record,
-
-
Method Details
-
getTextParagraphs
Returns an array of all the TextRuns found- Specified by:
getTextParagraphsin classHSLFSheet
-
getMasterSheet
Returnsnullsince SlideMasters doen't have master sheet.- Specified by:
getMasterSheetin interfaceSheet<HSLFShape,HSLFTextParagraph> - Specified by:
getMasterSheetin classHSLFSheet
-
getPropCollection
public TextPropCollection getPropCollection(int txtype, int level, 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:
getPropCollectionin classHSLFMasterSheet- Parameters:
txtype- theTextHeaderAtomtypelevel- 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- iftrueuse character styles, otherwise use paragraph styles
-
setSlideShow
Assign SlideShow for this slide master.- Overrides:
setSlideShowin classHSLFSheet
-
onAddTextShape
Description copied from class:HSLFSheetSubclasses should call this method and update the array of text runs when a text shape is added- Overrides:
onAddTextShapein classHSLFSheet
-
getTxMasterStyleAtoms
-