@Override public CTCustomGeometry2D getCustGeom() { return props.getCustGeom(); }
public XDDFCustomGeometry2D getCustomGeometry2D() { if (props.isSetCustGeom()) { return new XDDFCustomGeometry2D(props.getCustGeom()); } else { return null; } }
((CTShapeProperties)xo).getCustGeom().getPathLst().setPathArray(new CTPath2D[]{ctPath}); setAnchor(bounds); return numPoints;
final CTCustomGeometry2D geom = ((CTShapeProperties)xo).getCustGeom();
@Override public CTCustomGeometry2D getCustGeom() { return props.getCustGeom(); }
public XDDFCustomGeometry2D getCustomGeometry2D() { if (props.isSetCustGeom()) { return new XDDFCustomGeometry2D(props.getCustGeom()); } else { return null; } }
((CTShapeProperties)xo).getCustGeom().getPathLst().setPathArray(new CTPath2D[]{ctPath}); setAnchor(bounds); return numPoints;
/** * * @return definition of the shape geometry */ CustomGeometry getGeometry(){ CTShapeProperties spPr = getSpPr(); CustomGeometry geom; PresetGeometries dict = PresetGeometries.getInstance(); if(spPr.isSetPrstGeom()){ String name = spPr.getPrstGeom().getPrst().toString(); geom = dict.get(name); if(geom == null) { throw new IllegalStateException("Unknown shape geometry: " + name); } } else if (spPr.isSetCustGeom()){ geom = new CustomGeometry(spPr.getCustGeom()); } else { geom = dict.get("rect"); } return geom; }
final CTCustomGeometry2D geom = ((CTShapeProperties)xo).getCustGeom();
Rectangle2D bounds = getAnchor(); CTCustomGeometry2D geom = getSpPr().getCustGeom(); for(CTPath2D spPath : geom.getPathLst().getPathList()){ double scaleW = bounds.getWidth() / Units.toPoints(spPath.getW());
getSpPr().getCustGeom().getPathLst().setPathArray(new CTPath2D[]{ctPath}); setAnchor(bounds); return numPoints;