Package org.pptx4j.model
Class ResolvedLayout
java.lang.Object
org.pptx4j.model.ResolvedLayout
- All Implemented Interfaces:
java.lang.Cloneable
public class ResolvedLayout
extends java.lang.Object
implements java.lang.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.
- Author:
- jharrop
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
RelationshipsPart
relationships
-
Constructor Summary
Constructors Constructor Description ResolvedLayout()
-
Method Summary
Modifier and Type Method Description protected ResolvedLayout
clone()
static GroupShape
createEffectiveShapeTree(GroupShape shapeTree, java.util.Map<java.lang.String,ShapeWrapper> placeholders)
Resolve references to Slide Layouts, Master etc, in order to get the actual shapes we'll render.CTBackground
getBg()
int
getMasterNumber()
GroupShape
getShapeTree()
static ResolvedLayout
resolveSlideLayout(SlideLayoutPart slideLayoutPart)
Create a ResolvedLayout for a SlideLayoutPart.static ResolvedLayout
resolveSlideLayout(SlidePart slidePart)
Create a ResolvedLayout for a SlidePart.void
setBg(CTBackground bg)
void
setShapeTree(GroupShape shapeTree)
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
log
protected static org.slf4j.Logger log -
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, java.util.Map<java.lang.String,ShapeWrapper> placeholders)Resolve references to Slide Layouts, Master etc, in order to get the actual shapes we'll render.- Returns:
-
clone
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-