* @see #SS_SUPER\r
* @see #SS_SUB\r
*/\r
+ @Override\r
public short getEscapementType(){\r
if(_font.sizeOfVertAlignArray() == 0) return SS_NONE;\r
\r
* @see #SS_SUPER\r
* @see #SS_SUB\r
*/\r
+ @Override\r
public void setEscapementType(short escapementType){\r
_font.setVertAlignArray(null);\r
if(escapementType != SS_NONE){\r
/**\r
* @return font color index\r
*/\r
+ @Override\r
public short getFontColorIndex(){\r
if(_font.sizeOfColorArray() == 0) return -1;\r
\r
/**\r
* @param color font color index\r
*/\r
+ @Override\r
public void setFontColorIndex(short color){\r
_font.setColorArray(null);\r
if(color != -1){\r
}\r
}\r
\r
+ @Override\r
public XSSFColor getFontColor() {\r
if(_font.sizeOfColorArray() == 0) return null;\r
\r
return new XSSFColor(_font.getColorArray(0));\r
}\r
\r
+ @Override\r
public void setFontColor(Color color) {\r
XSSFColor xcolor = XSSFColor.toXSSFColor(color);\r
if (xcolor == null) {\r
*\r
* @return fontheight (in points/20); or -1 if not modified\r
*/\r
+ @Override\r
public int getFontHeight(){\r
if(_font.sizeOfSzArray() == 0) return -1;\r
\r
*\r
* @param height the height in twips (in points/20)\r
*/\r
+ @Override\r
public void setFontHeight(int height){\r
_font.setSzArray(null);\r
if(height != -1){\r
* @see #U_SINGLE_ACCOUNTING\r
* @see #U_DOUBLE_ACCOUNTING\r
*/\r
+ @Override\r
public short getUnderlineType(){\r
if(_font.sizeOfUArray() == 0) return U_NONE;\r
CTUnderlineProperty u = _font.getUArray(0);\r
* @see #U_SINGLE_ACCOUNTING\r
* @see #U_DOUBLE_ACCOUNTING\r
*/\r
+ @Override\r
public void setUnderlineType(short underlineType){\r
_font.setUArray(null);\r
if(underlineType != U_NONE){\r
*\r
* @return bold - whether the font is bold or not\r
*/\r
+ @Override\r
public boolean isBold(){\r
return _font.sizeOfBArray() == 1 && _font.getBArray(0).getVal();\r
}\r
/**\r
* @return true if font style was set to <i>italic</i>\r
*/\r
+ @Override\r
public boolean isItalic(){\r
return _font.sizeOfIArray() == 1 && _font.getIArray(0).getVal();\r
}\r
* @param italic - if true, set posture style to italic, otherwise to normal\r
* @param bold if true, set font weight to bold, otherwise to normal\r
*/\r
+ @Override\r
public void setFontStyle(boolean italic, boolean bold){\r
_font.setIArray(null);\r
_font.setBArray(null);\r
/**\r
* set font style options to default values (non-italic, non-bold)\r
*/\r
+ @Override\r
public void resetFontStyle(){\r
_font.set(CTFont.Factory.newInstance());\r
}\r