Examples of CTBackground


Examples of org.docx4j.wml.CTBackground

   
  private static CTBackground createBackground(String rId) {

    org.docx4j.wml.ObjectFactory wmlObjectFactory = new org.docx4j.wml.ObjectFactory();

    CTBackground background = wmlObjectFactory.createCTBackground();
    background.setColor("FFFFFF");
    org.docx4j.vml.ObjectFactory vmlObjectFactory = new org.docx4j.vml.ObjectFactory();
    // Create object for background (wrapped in JAXBElement)
    org.docx4j.vml.CTBackground background2 = vmlObjectFactory
        .createCTBackground();
    JAXBElement<org.docx4j.vml.CTBackground> backgroundWrapped = vmlObjectFactory
        .createBackground(background2);
    background.getAnyAndAny().add(backgroundWrapped);
    background2.setTargetscreensize("1024,768");
    background2.setVmlId("_x0000_s1025");
    background2.setBwmode(org.docx4j.vml.officedrawing.STBWMode.WHITE);
    // Create object for fill
    CTFill fill = vmlObjectFactory.createCTFill();
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTBackground

     */
    Paint getPaint(Graphics2D graphics){
        RenderableShape rShape = new RenderableShape(this);

        Paint fill = null;
        CTBackground bg = (CTBackground)getXmlObject();
        if(bg.isSetBgPr()){
            XmlObject spPr = bg.getBgPr();
            fill = rShape.getPaint(graphics, spPr, null);
        } else if (bg.isSetBgRef()){
            CTStyleMatrixReference bgRef= bg.getBgRef();
            CTSchemeColor phClr = bgRef.getSchemeClr();

            int idx = (int)bgRef.getIdx() - 1001;
            XSLFTheme theme = getSheet().getTheme();
            CTBackgroundFillStyleList bgStyles =
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTBackground

     *
     * @return the information about background appearance of this slide
     */
    @Override
    public XSLFBackground getBackground() {
        CTBackground bg = _slide.getCSld().getBg();
        if(bg != null) {
            return new XSLFBackground(bg, this);
        } else {
            return getMasterSheet().getBackground();
        }
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTBackground

    @Override
    public XSLFSlide importContent(XSLFSheet src){
        super.importContent(src);

        CTBackground bg = ((CTSlide)src.getXmlObject()).getCSld().getBg();
        if(bg != null) {
            if(bg.isSetBgPr() && bg.getBgPr().isSetBlipFill()){
                CTBlip blip = bg.getBgPr().getBlipFill().getBlip();
                String blipId = blip.getEmbed();

                String relId = importBlip(blipId, src.getPackagePart());
                blip.setEmbed(relId);
            }
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTBackground

    }


    @Override
    public XSLFBackground getBackground() {
        CTBackground bg = _layout.getCSld().getBg();
        if(bg != null) {
            return new XSLFBackground(bg, this);
        } else {
            return getMasterSheet().getBackground();
        }
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTBackground

        return true;
    }

    @Override
    public XSLFBackground getBackground() {
        CTBackground bg = _slide.getCSld().getBg();
        if(bg != null) {
            return new XSLFBackground(bg, this);
        } else {
            return null;
        }
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTBackground

     */
    Paint getPaint(Graphics2D graphics){
        RenderableShape rShape = new RenderableShape(this);

        Paint fill = null;
        CTBackground bg = (CTBackground)getXmlObject();
        if(bg.isSetBgPr()){
            XmlObject spPr = bg.getBgPr();
            fill = rShape.getPaint(graphics, spPr, null);
        } else if (bg.isSetBgRef()){
            CTStyleMatrixReference bgRef= bg.getBgRef();
            CTSchemeColor phClr = bgRef.getSchemeClr();

            int idx = (int)bgRef.getIdx() - 1001;
            XSLFTheme theme = getSheet().getTheme();
            CTBackgroundFillStyleList bgStyles =
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTBackground

     *
     * @return the information about background appearance of this slide
     */
    @Override
    public XSLFBackground getBackground() {
        CTBackground bg = _slide.getCSld().getBg();
        if(bg != null) {
            return new XSLFBackground(bg, this);
        } else {
            return getMasterSheet().getBackground();
        }
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTBackground

    public XSLFSlide importContent(XSLFSheet src){
        super.importContent(src);

        XSLFBackground bgShape = getBackground();
        if(bgShape != null) {
            CTBackground bg = (CTBackground)bgShape.getXmlObject();
            if(bg.isSetBgPr() && bg.getBgPr().isSetBlipFill()){
                CTBlip blip = bg.getBgPr().getBlipFill().getBlip();
                String blipId = blip.getEmbed();

                String relId = importBlip(blipId, src.getPackagePart());
                blip.setEmbed(relId);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.