/** * set the type of underlining type for the font * * @param underlineType super or subscript option * * @see #U_NONE * @see #U_SINGLE * @see #U_DOUBLE * @see #U_SINGLE_ACCOUNTING * @see #U_DOUBLE_ACCOUNTING */ @Override public void setUnderlineType(short underlineType){ _font.setUArray(null); if(underlineType != U_NONE){ FontUnderline fenum = FontUnderline.valueOf(underlineType); STUnderlineValues.Enum val = STUnderlineValues.Enum.forInt(fenum.getValue()); _font.addNewU().setVal(val); } }
/** * set an enumeration representing the style of underlining that is used. * The none style is equivalent to not using underlining at all. * The possible values for this attribute are defined by the FontUnderline * * @param underline - FontUnderline enum value */ public void setUnderline(FontUnderline underline) { if(underline == FontUnderline.NONE && _ctFont.sizeOfUArray() > 0){ _ctFont.setUArray(null); } else { CTUnderlineProperty ctUnderline = _ctFont.sizeOfUArray() == 0 ? _ctFont.addNewU() : _ctFont.getUArray(0); STUnderlineValues.Enum val = STUnderlineValues.Enum.forInt(underline.getValue()); ctUnderline.setVal(val); } }
if(pr.sizeOfUArray() > 0) ctFont.addNewU().setVal(pr.getUArray(0).getVal()); if(pr.sizeOfIArray() > 0) ctFont.addNewI().setVal(pr.getIArray(0).getVal()); if(pr.sizeOfColorArray() > 0) {
/** * set the type of underlining type for the font * * @param underlineType super or subscript option * * @see #U_NONE * @see #U_SINGLE * @see #U_DOUBLE * @see #U_SINGLE_ACCOUNTING * @see #U_DOUBLE_ACCOUNTING */ public void setUnderlineType(short underlineType){ _font.setUArray(null); if(underlineType != U_NONE){ FontUnderline fenum = FontUnderline.valueOf(underlineType); STUnderlineValues.Enum val = STUnderlineValues.Enum.forInt(fenum.getValue()); _font.addNewU().setVal(val); } }
/** * set the type of underlining type for the font * * @param underlineType super or subscript option * * @see #U_NONE * @see #U_SINGLE * @see #U_DOUBLE * @see #U_SINGLE_ACCOUNTING * @see #U_DOUBLE_ACCOUNTING */ @Override public void setUnderlineType(short underlineType){ _font.setUArray(null); if(underlineType != U_NONE){ FontUnderline fenum = FontUnderline.valueOf(underlineType); STUnderlineValues.Enum val = STUnderlineValues.Enum.forInt(fenum.getValue()); _font.addNewU().setVal(val); } }
/** * set an enumeration representing the style of underlining that is used. * The none style is equivalent to not using underlining at all. * The possible values for this attribute are defined by the FontUnderline * * @param underline - FontUnderline enum value */ public void setUnderline(FontUnderline underline) { if(underline == FontUnderline.NONE && _ctFont.sizeOfUArray() > 0){ _ctFont.setUArray(null); } else { CTUnderlineProperty ctUnderline = _ctFont.sizeOfUArray() == 0 ? _ctFont.addNewU() : _ctFont.getUArray(0); STUnderlineValues.Enum val = STUnderlineValues.Enum.forInt(underline.getValue()); ctUnderline.setVal(val); } }
/** * set an enumeration representing the style of underlining that is used. * The none style is equivalent to not using underlining at all. * The possible values for this attribute are defined by the FontUnderline * * @param underline - FontUnderline enum value */ public void setUnderline(FontUnderline underline) { if(underline == FontUnderline.NONE && _ctFont.sizeOfUArray() > 0){ _ctFont.setUArray(null); } else { CTUnderlineProperty ctUnderline = _ctFont.sizeOfUArray() == 0 ? _ctFont.addNewU() : _ctFont.getUArray(0); STUnderlineValues.Enum val = STUnderlineValues.Enum.forInt(underline.getValue()); ctUnderline.setVal(val); } }
if(pr.sizeOfUArray() > 0) ctFont.addNewU().setVal(pr.getUArray(0).getVal()); if(pr.sizeOfIArray() > 0) ctFont.addNewI().setVal(pr.getIArray(0).getVal()); if(pr.sizeOfColorArray() > 0) {
if(pr.sizeOfUArray() > 0) ctFont.addNewU().setVal(pr.getUArray(0).getVal()); if(pr.sizeOfIArray() > 0) ctFont.addNewI().setVal(pr.getIArray(0).getVal()); if(pr.sizeOfColorArray() > 0) {