diff options
author | PJ Fanning <fanningpj@apache.org> | 2018-02-26 20:26:48 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2018-02-26 20:26:48 +0000 |
commit | 314f7f53eada5e40c2c06f383d10fe53abb615a1 (patch) | |
tree | 3881fa3627605a0a44fc13d18710a767af55df80 /src/java/org/apache/poi/hssf/usermodel | |
parent | 4ad4d76241eae44386e52c3a23ca1b7ca28d1458 (diff) | |
download | poi-314f7f53eada5e40c2c06f383d10fe53abb615a1.tar.gz poi-314f7f53eada5e40c2c06f383d10fe53abb615a1.zip |
tidy up API for font index
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1825409 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/hssf/usermodel')
-rw-r--r-- | src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java index fde539c6ef..a3879a9194 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java @@ -198,7 +198,7 @@ public final class HSSFCellStyle implements CellStyle { * @since 4.0.0 */ @Override - public int getFontIntIndex() + public int getFontIndexAsInt() { return _format.getFontIndex(); } @@ -206,11 +206,11 @@ public final class HSSFCellStyle implements CellStyle { /** * gets the font for this style * @param parentWorkbook The HSSFWorkbook that this style belongs to - * @see org.apache.poi.hssf.usermodel.HSSFCellStyle#getFontIntIndex() + * @see org.apache.poi.hssf.usermodel.HSSFCellStyle#getFontIndexAsInt() * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getFontAt(int) */ public HSSFFont getFont(org.apache.poi.ss.usermodel.Workbook parentWorkbook) { - return ((HSSFWorkbook) parentWorkbook).getFontAt(getFontIntIndex()); + return ((HSSFWorkbook) parentWorkbook).getFontAt(getFontIndexAsInt()); } /** @@ -849,7 +849,7 @@ public final class HSSFCellStyle implements CellStyle { FontRecord fr = _workbook.createNewFont(); fr.cloneStyleFrom( source._workbook.getFontRecordAt( - source.getFontIntIndex() + source.getFontIndexAsInt() ) ); |