@Override public boolean isSetNoFill() { return props.isSetNoFill(); }
@Override public boolean isNoFill() { return getShapeProperties().isSetNoFill(); }
public XDDFFillProperties getFillProperties() { if (props.isSetGradFill()) { return new XDDFGradientFillProperties(props.getGradFill()); } else if (props.isSetGrpFill()) { return new XDDFGroupFillProperties(props.getGrpFill()); } else if (props.isSetNoFill()) { return new XDDFNoFillProperties(props.getNoFill()); } else if (props.isSetPattFill()) { return new XDDFPatternFillProperties(props.getPattFill()); } else if (props.isSetBlipFill()) { return new XDDFPictureFillProperties(props.getBlipFill()); } else if (props.isSetSolidFill()) { return new XDDFSolidFillProperties(props.getSolidFill()); } else { return null; } }
props.unsetGrpFill(); if (props.isSetNoFill()) { props.unsetNoFill();
@Override public boolean isSetNoFill() { return props.isSetNoFill(); }
/** * Whether this shape is not filled with a color * * @return true if this shape is not filled with a color. */ public boolean isNoFill() { return getShapeProperties().isSetNoFill(); }
@Override public boolean isNoFill() { return getShapeProperties().isSetNoFill(); }
public boolean fetch(XSLFSimpleShape shape) { CTShapeProperties spPr = shape.getSpPr(); if (spPr.isSetNoFill()) { setValue(RenderableShape.NO_PAINT); // use it as 'nofill' value return true; } Paint paint = getPaint(graphics, spPr, null); if (paint != null) { setValue(paint); return true; } return false; } };
/** * Specifies a solid color fill. The shape is filled entirely with the * specified color. * * @param color the solid color fill. The value of <code>null</code> unsets * the solidFIll attribute from the underlying xml */ public void setFillColor(Color color) { CTShapeProperties spPr = getSpPr(); if (color == null) { if (spPr.isSetSolidFill()) spPr.unsetSolidFill(); if (!spPr.isSetNoFill()) spPr.addNewNoFill(); } else { if (spPr.isSetNoFill()) spPr.unsetNoFill(); CTSolidColorFillProperties fill = spPr.isSetSolidFill() ? spPr .getSolidFill() : spPr.addNewSolidFill(); CTSRgbColor rgb = CTSRgbColor.Factory.newInstance(); rgb.setVal(new byte[]{(byte) color.getRed(), (byte) color.getGreen(), (byte) color.getBlue()}); fill.setSrgbClr(rgb); if(fill.isSetHslClr()) fill.unsetHslClr(); if(fill.isSetPrstClr()) fill.unsetPrstClr(); if(fill.isSetSchemeClr()) fill.unsetSchemeClr(); if(fill.isSetScrgbClr()) fill.unsetScrgbClr(); if(fill.isSetSysClr()) fill.unsetSysClr(); } }
public XDDFFillProperties getFillProperties() { if (props.isSetGradFill()) { return new XDDFGradientFillProperties(props.getGradFill()); } else if (props.isSetGrpFill()) { return new XDDFGroupFillProperties(props.getGrpFill()); } else if (props.isSetNoFill()) { return new XDDFNoFillProperties(props.getNoFill()); } else if (props.isSetPattFill()) { return new XDDFPatternFillProperties(props.getPattFill()); } else if (props.isSetBlipFill()) { return new XDDFPictureFillProperties(props.getBlipFill()); } else if (props.isSetSolidFill()) { return new XDDFSolidFillProperties(props.getSolidFill()); } else { return null; } }
props.unsetGrpFill(); if (props.isSetNoFill()) { props.unsetNoFill();