@Override public boolean isSetPattFill() { return props.isSetPattFill(); }
@Override public void setNoFill(boolean noFill) { CTShapeProperties props = getShapeProperties(); //unset solid and pattern fills if they are set if (props.isSetPattFill()) props.unsetPattFill(); if (props.isSetSolidFill()) props.unsetSolidFill(); props.setNoFill(CTNoFillProperties.Factory.newInstance()); }
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.unsetNoFill(); if (props.isSetPattFill()) { props.unsetPattFill();
@Override public boolean isSetPattFill() { return props.isSetPattFill(); }
@Override public void setNoFill(boolean noFill) { CTShapeProperties props = getShapeProperties(); //unset solid and pattern fills if they are set if (props.isSetPattFill()) props.unsetPattFill(); if (props.isSetSolidFill()) props.unsetSolidFill(); props.setNoFill(CTNoFillProperties.Factory.newInstance()); }
/** * Sets whether this shape is filled or transparent. * * @param noFill if true then no fill will be applied to the shape element. */ public void setNoFill(boolean noFill) { CTShapeProperties props = getShapeProperties(); //unset solid and pattern fills if they are set if (props.isSetPattFill()) props.unsetPattFill(); if (props.isSetSolidFill()) props.unsetSolidFill(); props.setNoFill(CTNoFillProperties.Factory.newInstance()); }
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.unsetNoFill(); if (props.isSetPattFill()) { props.unsetPattFill();