/** * set a boolean value for the property specifying whether to use italics or not * If omitted, the default value is true. * * @param italic - value for italics or not */ public void setItalic(boolean italic) { if(italic){ CTBooleanProperty bool = _ctFont.sizeOfIArray() == 0 ? _ctFont.addNewI() : _ctFont.getIArray(0); bool.setVal(true); } else { _ctFont.setIArray(null); } }
/** * set font style options. * * @param italic - if true, set posture style to italic, otherwise to normal * @param bold if true, set font weight to bold, otherwise to normal */ @Override public void setFontStyle(boolean italic, boolean bold){ _font.setIArray(null); _font.setBArray(null); if(italic) _font.addNewI().setVal(true); if(bold) _font.addNewB().setVal(true); }
if(pr.sizeOfIArray() > 0) ctFont.addNewI().setVal(pr.getIArray(0).getVal()); if(pr.sizeOfColorArray() > 0) { CTColor c1 = pr.getColorArray(0);
/** * set a boolean value for the property specifying whether to use italics or not * If omitted, the default value is true. * * @param italic - value for italics or not */ public void setItalic(boolean italic) { if(italic){ CTBooleanProperty bool = _ctFont.sizeOfIArray() == 0 ? _ctFont.addNewI() : _ctFont.getIArray(0); bool.setVal(true); } else { _ctFont.setIArray(null); } }
/** * set a boolean value for the property specifying whether to use italics or not * If omitted, the default value is true. * * @param italic - value for italics or not */ public void setItalic(boolean italic) { if(italic){ CTBooleanProperty bool = _ctFont.sizeOfIArray() == 0 ? _ctFont.addNewI() : _ctFont.getIArray(0); bool.setVal(italic); } else { _ctFont.setIArray(null); } }
/** * set font style options. * * @param italic - if true, set posture style to italic, otherwise to normal * @param bold if true, set font weight to bold, otherwise to normal */ @Override public void setFontStyle(boolean italic, boolean bold){ _font.setIArray(null); _font.setBArray(null); if(italic) _font.addNewI().setVal(true); if(bold) _font.addNewB().setVal(true); }
/** * set font style options. * * @param italic - if true, set posture style to italic, otherwise to normal * @param bold if true, set font weight to bold, otherwise to normal */ public void setFontStyle(boolean italic, boolean bold){ _font.setIArray(null); _font.setBArray(null); if(italic) _font.addNewI().setVal(true); if(bold) _font.addNewB().setVal(true); }
if(pr.sizeOfIArray() > 0) ctFont.addNewI().setVal(pr.getIArray(0).getVal()); if(pr.sizeOfColorArray() > 0) { CTColor c1 = pr.getColorArray(0);
if(pr.sizeOfIArray() > 0) ctFont.addNewI().setVal(pr.getIArray(0).getVal()); if(pr.sizeOfColorArray() > 0) { CTColor c1 = pr.getColorArray(0);