Search in sources :

Example 1 with CTEffectStyleList

use of org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleList in project poi by apache.

the class TestXSLFSimpleShape method testShadowEffects.

@SuppressWarnings("unused")
@Test
public void testShadowEffects() throws IOException {
    XMLSlideShow ppt = new XMLSlideShow();
    XSLFSlide slide = ppt.createSlide();
    CTStyleMatrix styleMatrix = slide.getTheme().getXmlObject().getThemeElements().getFmtScheme();
    CTEffectStyleList lst = styleMatrix.getEffectStyleLst();
    assertNotNull(lst);
    for (CTEffectStyleItem ef : lst.getEffectStyleArray()) {
        CTOuterShadowEffect obj = ef.getEffectLst().getOuterShdw();
    }
    ppt.close();
}
Also used : CTStyleMatrix(org.openxmlformats.schemas.drawingml.x2006.main.CTStyleMatrix) CTEffectStyleList(org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleList) CTEffectStyleItem(org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem) CTOuterShadowEffect(org.openxmlformats.schemas.drawingml.x2006.main.CTOuterShadowEffect) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 CTEffectStyleItem (org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem)1 CTEffectStyleList (org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleList)1 CTOuterShadowEffect (org.openxmlformats.schemas.drawingml.x2006.main.CTOuterShadowEffect)1 CTStyleMatrix (org.openxmlformats.schemas.drawingml.x2006.main.CTStyleMatrix)1