]> source.dussan.org Git - poi.git/commitdiff
add @Override annotations
authorJaven O'Neal <onealj@apache.org>
Wed, 15 Jun 2016 04:08:56 +0000 (04:08 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 15 Jun 2016 04:08:56 +0000 (04:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748491 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java

index e788cf893b036e18ee6666cfb53d474d459909e6..da7a57e8701058de110ad28676349c80c6e80d15 100644 (file)
@@ -46,6 +46,7 @@ public class XSSFFontFormatting implements FontFormatting {
      * @see #SS_SUPER\r
      * @see #SS_SUB\r
      */\r
+    @Override\r
     public short getEscapementType(){\r
         if(_font.sizeOfVertAlignArray() == 0) return SS_NONE;\r
 \r
@@ -61,6 +62,7 @@ public class XSSFFontFormatting implements FontFormatting {
      * @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
@@ -71,6 +73,7 @@ public class XSSFFontFormatting implements FontFormatting {
     /**\r
      * @return font color index\r
      */\r
+    @Override\r
     public short getFontColorIndex(){\r
         if(_font.sizeOfColorArray() == 0) return -1;\r
 \r
@@ -83,6 +86,7 @@ public class XSSFFontFormatting implements FontFormatting {
     /**\r
      * @param color font color index\r
      */\r
+    @Override\r
     public void setFontColorIndex(short color){\r
         _font.setColorArray(null);\r
         if(color != -1){\r
@@ -90,12 +94,14 @@ public class XSSFFontFormatting implements FontFormatting {
         }\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
@@ -117,6 +123,7 @@ public class XSSFFontFormatting implements FontFormatting {
      *\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
@@ -129,6 +136,7 @@ public class XSSFFontFormatting implements FontFormatting {
      *\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
@@ -147,6 +155,7 @@ public class XSSFFontFormatting implements FontFormatting {
      * @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
@@ -170,6 +179,7 @@ public class XSSFFontFormatting implements FontFormatting {
      * @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
@@ -184,6 +194,7 @@ public class XSSFFontFormatting implements FontFormatting {
      *\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
@@ -191,6 +202,7 @@ public class XSSFFontFormatting implements FontFormatting {
     /**\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
@@ -201,6 +213,7 @@ public class XSSFFontFormatting implements FontFormatting {
      * @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
@@ -211,6 +224,7 @@ public class XSSFFontFormatting implements FontFormatting {
     /**\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