public void removePath(int index) { geometry.getPathLst().removePath(index); }
public List<XDDFPath> getPaths() { return Collections.unmodifiableList(geometry .getPathLst() .getPathList() .stream() .map(ds -> new XDDFPath(ds)) .collect(Collectors.toList())); } }
public XDDFPath getPath(int index) { return new XDDFPath(geometry.getPathLst().getPathArray(index)); }
public XDDFPath addNewPath() { return new XDDFPath(geometry.getPathLst().addNewPath()); }
public XDDFPath insertNewPath(int index) { return new XDDFPath(geometry.getPathLst().insertNewPath(index)); }
((CTShapeProperties)xo).getCustGeom().getPathLst().setPathArray(new CTPath2D[]{ctPath}); setAnchor(bounds); return numPoints;
for(CTPath2D spPath : geom.getPathLst().getPathArray()){ XmlCursor cursor = spPath.newCursor(); try {
public void removePath(int index) { geometry.getPathLst().removePath(index); }
public List<XDDFPath> getPaths() { return Collections.unmodifiableList(geometry .getPathLst() .getPathList() .stream() .map(ds -> new XDDFPath(ds)) .collect(Collectors.toList())); } }
public XDDFPath addNewPath() { return new XDDFPath(geometry.getPathLst().addNewPath()); }
public XDDFPath getPath(int index) { return new XDDFPath(geometry.getPathLst().getPathArray(index)); }
public XDDFPath insertNewPath(int index) { return new XDDFPath(geometry.getPathLst().insertNewPath(index)); }
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()); } }
((CTShapeProperties)xo).getCustGeom().getPathLst().setPathArray(new CTPath2D[]{ctPath}); setAnchor(bounds); return numPoints;
for(CTPath2D spPath : geom.getPathLst().getPathList()){ double scaleW = bounds.getWidth() / Units.toPoints(spPath.getW()); double scaleH = bounds.getHeight() / Units.toPoints(spPath.getH());
for(CTPath2D spPath : geom.getPathLst().getPathArray()){ XmlCursor cursor = spPath.newCursor(); try {
getSpPr().getCustGeom().getPathLst().setPathArray(new CTPath2D[]{ctPath}); setAnchor(bounds); return numPoints;