public PresetGeometry getGeometry() { return PresetGeometry.valueOf(geometry.getPrst()); }
/** * Gets the shape type, one of the constants defined in {@link org.apache.poi.ss.usermodel.ShapeTypes}. * * @return the shape type * @see org.apache.poi.ss.usermodel.ShapeTypes */ public int getShapeType() { return ctShape.getSpPr().getPrstGeom().getPrst().intValue(); }
/** * Gets the shape type, one of the constants defined in * {@link org.apache.poi.ss.usermodel.ShapeTypes}. * * @return the shape type * @see org.apache.poi.ss.usermodel.ShapeTypes */ public int getShapeType() { return ctShape.getSpPr().getPrstGeom().getPrst().intValue(); }
@Override public ShapeType getShapeType(){ XSLFGeometryProperties gp = XSLFPropertiesDelegate.getGeometryDelegate(getShapeProperties()); if (gp != null && gp.isSetPrstGeom()) { STShapeType.Enum geom = gp.getPrstGeom().getPrst(); if (geom != null) { return ShapeType.forId(geom.intValue(), true); } } return null; }
PresetGeometries dict = PresetGeometries.getInstance(); if(gp.isSetPrstGeom()){ String name = gp.getPrstGeom().getPrst().toString(); geom = dict.get(name); if(geom == null) {
public PresetGeometry getGeometry() { return PresetGeometry.valueOf(geometry.getPrst()); }
/** * Gets the shape type, one of the constants defined in {@link org.apache.poi.ss.usermodel.ShapeTypes}. * * @return the shape type * @see org.apache.poi.ss.usermodel.ShapeTypes */ public int getShapeType() { return ctShape.getSpPr().getPrstGeom().getPrst().intValue(); }
/** * Gets the shape type, one of the constants defined in {@link org.apache.poi.ss.usermodel.ShapeTypes}. * * @return the shape type * @see org.apache.poi.ss.usermodel.ShapeTypes */ public int getShapeType() { return ctShape.getSpPr().getPrstGeom().getPrst().intValue(); }
/** * Gets the shape type, one of the constants defined in * {@link org.apache.poi.ss.usermodel.ShapeTypes}. * * @return the shape type * @see org.apache.poi.ss.usermodel.ShapeTypes */ public int getShapeType() { return ctShape.getSpPr().getPrstGeom().getPrst().intValue(); }
/** * Gets the shape type, one of the constants defined in {@link org.apache.poi.ss.usermodel.ShapeTypes}. * * @return the shape type * @see org.apache.poi.ss.usermodel.ShapeTypes */ public int getShapeType() { return ctShape.getSpPr().getPrstGeom().getPrst().intValue(); }
public XSLFShapeType getShapeType(){ CTShape shape = (CTShape) getXmlObject(); STShapeType.Enum geom = shape.getSpPr().getPrstGeom().getPrst(); return XSLFShapeType.forInt(geom.intValue()); }
@Override public ShapeType getShapeType(){ XSLFGeometryProperties gp = XSLFPropertiesDelegate.getGeometryDelegate(getShapeProperties()); if (gp != null && gp.isSetPrstGeom()) { STShapeType.Enum geom = gp.getPrstGeom().getPrst(); if (geom != null) { return ShapeType.forId(geom.intValue(), true); } } return null; }
/** * * @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; }
PresetGeometries dict = PresetGeometries.getInstance(); if(gp.isSetPrstGeom()){ String name = gp.getPrstGeom().getPrst().toString(); geom = dict.get(name); if(geom == null) {