Package org.docx4j.dml.diagram

Examples of org.docx4j.dml.diagram.CTElemPropSet


          // reference
          org.opendope.SmartArt.dataHierarchy.ImageRef imageRef = factory.createImageRef();
          imageRef.setContentRef(imgPt.getModelId());
          // Other attributes
          if (imgPt.getPrSet()!=null ) {
            CTElemPropSet props = imgPt.getPrSet();
            if (props.getCustLinFactNeighborX()!=null) {
              imageRef.setCustLinFactNeighborX(props.getCustLinFactNeighborX());
            }
            if (props.getCustLinFactNeighborY()!=null) {
              imageRef.setCustLinFactNeighborY(props.getCustLinFactNeighborY());
            }
            if (props.getCustScaleX()!=null) {
              imageRef.setCustScaleX(props.getCustScaleX());
            }
            if (props.getCustScaleY()!=null) {
              imageRef.setCustScaleY(props.getCustScaleY());
            }
          }
         
          thisListItem.setImageRef(imageRef);
         
View Full Code Here


                           
              pt.setModelId(
                  mapGet(map, pt.getModelId() ));
             
              if (pt.getPrSet()!=null) {
                CTElemPropSet pr = (CTElemPropSet)pt.getPrSet();
                if (pr.getPresAssocID()!=null) {
                  pr.setPresAssocID(
                      mapGet(map, pr.getPresAssocID() ));
                }
              }
             
              if (!pt.getCxnId().equals("0")) {
                pt.setCxnId(
View Full Code Here

            <dgm:prSet
                loTypeId="mylayout"
                qsTypeId="mystyle"
                csTypeId="mycolors" />
        </dgm:pt> */
    CTElemPropSet prSet = factory.createCTElemPropSet();
    prSet.setLoTypeId("mylayout");
    prSet.setQsTypeId(style.getJaxbElement().getUniqueId());
    prSet.setCsTypeId(colors.getJaxbElement().getUniqueId());

    clonedDataModel.getPtLst().getPt().get(0).setPrSet(prSet);

    String layoutRelId = wordMLPackage.getMainDocumentPart().addTargetPart(layout).getId();
    String dataRelId = wordMLPackage.getMainDocumentPart().addTargetPart(data).getId();
View Full Code Here

TOP

Related Classes of org.docx4j.dml.diagram.CTElemPropSet

Copyright © 2018 www.massapicom. 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.