public void setFontSize(Double size) { if (size == null) { if (props.isSetSz()) { props.unsetSz(); } } else if (size < 1 || 400 < size) { throw new IllegalArgumentException("Minimum inclusive = 1. Maximum inclusive = 400."); } else { props.setSz((int) (100 * size)); } }
@Override public void setFontSize(Double fontSize){ CTTextCharacterProperties rPr = getRPr(true); if(fontSize == null) { if (rPr.isSetSz()) { rPr.unsetSz(); } } else { if (fontSize < 1.0) { throw new IllegalArgumentException("Minimum font size is 1pt but was " + fontSize); } rPr.setSz((int)(100*fontSize)); } }
/** * * @param fontSize font size in points. * The value of <code>-1</code> unsets the Sz attribute from the underlying xml bean */ public void setFontSize(double fontSize){ CTTextCharacterProperties rPr = getRPr(); if(fontSize == -1.0) { if(rPr.isSetSz()) rPr.unsetSz(); } else { if(fontSize < 1.0) { throw new IllegalArgumentException("Minimum font size is 1pt but was " + fontSize); } rPr.setSz((int)(100*fontSize)); } }
public void setFontSize(Double size) { if (size == null) { if (props.isSetSz()) { props.unsetSz(); } } else if (size < 1 || 400 < size) { throw new IllegalArgumentException("Minimum inclusive = 1. Maximum inclusive = 400."); } else { props.setSz((int) (100 * size)); } }
@Override public void setFontSize(Double fontSize){ CTTextCharacterProperties rPr = getRPr(true); if(fontSize == null) { if (rPr.isSetSz()) { rPr.unsetSz(); } } else { if (fontSize < 1.0) { throw new IllegalArgumentException("Minimum font size is 1pt but was " + fontSize); } rPr.setSz((int)(100*fontSize)); } }
/** * * @param fontSize font size in points. * The value of <code>-1</code> unsets the Sz attribute from the underlying xml bean */ public void setFontSize(double fontSize){ CTTextCharacterProperties rPr = getRPr(); if(fontSize == -1.0) { if(rPr.isSetSz()) rPr.unsetSz(); } else { if(fontSize < 1.0) { throw new IllegalArgumentException("Minimum font size is 1pt but was " + fontSize); } rPr.setSz((int)(100*fontSize)); } }
/** * * @param fontSize font size in points. * The value of <code>-1</code> unsets the Sz attribyte from the underlying xml bean */ public void setFontSize(double fontSize){ CTTextCharacterProperties rPr = getRPr(); if(fontSize == -1.0) { if(rPr.isSetSz()) rPr.unsetSz(); } else { if(fontSize < 1.0) { throw new IllegalArgumentException("Minimum font size is 1pt but was " + fontSize); } rPr.setSz((int)(100*fontSize)); } }