Package org.pptx4j.model
Class ResolvedLayout
java.lang.Object
org.pptx4j.model.ResolvedLayout
- All Implemented Interfaces:
Cloneable
The idea of this class is that it provides
an effective slide layout.
It can either represent:
- a slide layout (resolved so that no further reference to
the slide master is required), or
- a slide (resolved so that no further reference to a
slide layout is required)
It doesn't say anything about text fonts/styles, since
these are handled in TextStyles.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CTBackgroundprotected static org.slf4j.Loggerprivate intprivate GroupShape -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResolvedLayoutclone()static GroupShapecreateEffectiveShapeTree(GroupShape shapeTree, Map<String, ShapeWrapper> placeholders) Resolve references to Slide Layouts, Master etc, in order to get the actual shapes we'll render.getBg()intprivate static voidprivate static voidhandleNvSpPr(Shape.NvSpPr sp, Shape.NvSpPr layoutShape) private static voidhandleSpPr(CTShapeProperties sp, CTShapeProperties layoutShape) private static voidhandleTxBody(CTTextBody sp, CTTextBody layoutShape) static ResolvedLayoutresolveSlideLayout(SlideLayoutPart slideLayoutPart) Create a ResolvedLayout for a SlideLayoutPart.static ResolvedLayoutresolveSlideLayout(SlidePart slidePart) Create a ResolvedLayout for a SlidePart.voidsetBg(CTBackground bg) voidsetShapeTree(GroupShape shapeTree)
-
Field Details
-
log
protected static org.slf4j.Logger log -
bg
-
shapeTree
-
masterNumber
private int masterNumber -
relationships
-
-
Constructor Details
-
ResolvedLayout
public ResolvedLayout()
-
-
Method Details
-
getBg
- Returns:
- the bg
-
setBg
- Parameters:
bg- the bg to set
-
getShapeTree
- Returns:
- the shapeTree
-
setShapeTree
- Parameters:
shapeTree- the shapeTree to set
-
getMasterNumber
public int getMasterNumber() -
resolveSlideLayout
Create a ResolvedLayout for a SlideLayoutPart.- Parameters:
slideLayoutPart-- Returns:
-
resolveSlideLayout
Create a ResolvedLayout for a SlidePart.- Parameters:
slideLayoutPart-- Returns:
-
createEffectiveShapeTree
public static GroupShape createEffectiveShapeTree(GroupShape shapeTree, Map<String, ShapeWrapper> placeholders) Resolve references to Slide Layouts, Master etc, in order to get the actual shapes we'll render.- Returns:
-
handle
-
handleNvSpPr
-
handleSpPr
-
handleTxBody
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-