/** * Sets the subscript/superscript option * * @param val the percentage of the font size. If the value is positive, it is superscript, otherwise it is subscript */ public void setSuperscript(int val) { setCharTextPropVal("superscript", val); }
/** * Sets color of the text, as a int bgr. * (PowerPoint stores as BlueGreenRed, not the more * usual RedGreenBlue) * @see java.awt.Color */ public void setFontColor(int bgr) { setCharTextPropVal("font.color", bgr); }
/** * Sets the font index */ public void setFontIndex(int idx) { setCharTextPropVal("font.index", idx); }
@Override public void setFontSize(Double fontSize) { Integer iFontSize = (fontSize == null) ? null : fontSize.intValue(); setCharTextPropVal("font.size", iFontSize); }