Package org.pptx4j.model

Examples of org.pptx4j.model.ShapeWrapper


          Shape sp = (Shape)o;
          if (sp.getNvSpPr()!=null
              && sp.getNvSpPr().getNvPr()!=null
                && sp.getNvSpPr().getNvPr().getPh() != null) {
            CTPlaceholder placeholder = sp.getNvSpPr().getNvPr().getPh();
            ShapeWrapper sw = new ShapeWrapper(sp, placeholder.getType().toString(),
                this);
            indexedPlaceHolders.put(sw.getPhType(), sw);
            log.debug("Indexed: " + sw.getPhType() + " in " + sw.getOwner().getPartName().toString() );
          }
        }
      }
      return indexedPlaceHolders;
  }
View Full Code Here


          Shape sp = (Shape)o;
          if (sp.getNvSpPr()!=null
              && sp.getNvSpPr().getNvPr()!=null
                && sp.getNvSpPr().getNvPr().getPh() != null) {
            CTPlaceholder placeholder = sp.getNvSpPr().getNvPr().getPh();
            ShapeWrapper sw = new ShapeWrapper(sp, placeholder.getType().toString(),
                this);
            indexedPlaceHolders.put(sw.getPhType(), sw);
           
            String name = "";
            if (sp.getNvSpPr().getCNvPr()!=null) {
              name = sp.getNvSpPr().getCNvPr().getName();
            }
           
            log.debug("Indexed: " + sw.getPhType() + "(" + name + ") in " + sw.getOwner().getPartName().toString() );
          }
        }
      }
      return indexedPlaceHolders;
  }
View Full Code Here

TOP

Related Classes of org.pptx4j.model.ShapeWrapper

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.