public List<XDDFGeometryGuide> getGuides() { if (geometry.isSetGdLst()) { return Collections.unmodifiableList(geometry .getGdLst() .getGdList() .stream() .map(guide -> new XDDFGeometryGuide(guide)) .collect(Collectors.toList())); } else { return Collections.emptyList(); } }
public List<XDDFGeometryGuide> getAdjustValues() { if (geometry.isSetAvLst()) { return Collections.unmodifiableList(geometry .getAvLst() .getGdList() .stream() .map(guide -> new XDDFGeometryGuide(guide)) .collect(Collectors.toList())); } else { return Collections.emptyList(); } }
public List<XDDFGeometryGuide> getAdjustValues() { if (geometry.isSetAvLst()) { return Collections.unmodifiableList(geometry .getAvLst() .getGdList() .stream() .map(guide -> new XDDFGeometryGuide(guide)) .collect(Collectors.toList())); } else { return Collections.emptyList(); } } }
public List<XDDFGeometryGuide> getAdjustValues() { if (geometry.isSetAvLst()) { return Collections.unmodifiableList(geometry .getAvLst() .getGdList() .stream() .map(guide -> new XDDFGeometryGuide(guide)) .collect(Collectors.toList())); } else { return Collections.emptyList(); } }
public List<XDDFGeometryGuide> getGuides() { if (geometry.isSetGdLst()) { return Collections.unmodifiableList(geometry .getGdLst() .getGdList() .stream() .map(guide -> new XDDFGeometryGuide(guide)) .collect(Collectors.toList())); } else { return Collections.emptyList(); } }
public List<XDDFGeometryGuide> getAdjustValues() { if (geometry.isSetAvLst()) { return Collections.unmodifiableList(geometry .getAvLst() .getGdList() .stream() .map(guide -> new XDDFGeometryGuide(guide)) .collect(Collectors.toList())); } else { return Collections.emptyList(); } } }
public Guide getAdjustValue(String name) { CTPresetGeometry2D prst = _shape.getSpPr().getPrstGeom(); if (prst.isSetAvLst()) { for (CTGeomGuide g : prst.getAvLst().getGdList()) { if (g.getName().equals(name)) { return new Guide(g); } } } return null; } }) ;
public CustomGeometry(CTCustomGeometry2D geom) { CTGeomGuideList avLst = geom.getAvLst(); if(avLst != null) for(CTGeomGuide gd : avLst.getGdList()){ adjusts.add(new AdjustValue(gd)); } CTGeomGuideList gdLst = geom.getGdLst(); if(gdLst != null) for(CTGeomGuide gd : gdLst.getGdList()){ guides.add(new Guide(gd)); } CTPath2DList pathLst = geom.getPathLst(); if(pathLst != null) for(CTPath2D spPath : pathLst.getPathList()){ paths.add(new Path(spPath)); } if(geom.isSetRect()) { CTGeomRect rect = geom.getRect(); textBounds = new Path(); textBounds.addCommand( new MoveToCommand(rect.getL().toString(), rect.getT().toString())); textBounds.addCommand( new LineToCommand(rect.getR().toString(), rect.getT().toString())); textBounds.addCommand( new LineToCommand(rect.getR().toString(), rect.getB().toString())); textBounds.addCommand( new LineToCommand(rect.getL().toString(), rect.getB().toString())); textBounds.addCommand( new ClosePathCommand()); } }