diff options
Diffstat (limited to 'poi-examples')
4 files changed, 11 insertions, 11 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/AddDimensionedImage.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/AddDimensionedImage.java index 67fbb68142..56ee62d271 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/AddDimensionedImage.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/AddDimensionedImage.java @@ -135,7 +135,7 @@ import java.util.Locale; * <p> * Note that the final four method calls all pass the same value and seem to * indicate that the images top left hand corner is aligned with the top left - * hand corner of cell A1 and that it's bottom right hand corner is also + * hand corner of cell A1 and that its bottom right hand corner is also * aligned with the top left hand corner of cell A1. Yet, running this code * would see the image fully occupying cell A1. That is the result of the * values passed to parameters three and four; these I have referred to as @@ -406,7 +406,7 @@ public class AddDimensionedImage { * the image, adjusts the columns width if necessary and creates then * returns a ClientAnchorDetail object that facilitates construction of * an ClientAnchor that will fix the image on the sheet and establish - * it's size. + * its size. * * @param sheet A reference to the sheet that will 'contain' the image. * @param colNumber A primitive int that contains the index number of a @@ -483,7 +483,7 @@ public class AddDimensionedImage { // Mow many co-ordinate positions are there per millimetre? colCoordinatesPerMM = ConvertImageUnits.TOTAL_COLUMN_COORDINATE_POSITIONS / colWidthMM; - // Given the width of the image, what should be it's co-ordinate? + // Given the width of the image, what should be its co-ordinate? pictureWidthCoordinates = (int) (reqImageWidthMM * colCoordinatesPerMM); } else { pictureWidthCoordinates = (int) reqImageWidthMM * @@ -500,7 +500,7 @@ public class AddDimensionedImage { * the image, adjusts the rows height if necessary and creates then * returns a ClientAnchorDetail object that facilitates construction of * a ClientAnchor that will fix the image on the sheet and establish - * it's size. + * its size. * * @param sheet A reference to the sheet that will 'contain' the image. * @param rowNumber A primitive int that contains the index number of a @@ -528,7 +528,7 @@ public class AddDimensionedImage { int pictureHeightCoordinates; ClientAnchorDetail rowClientAnchorDetail = null; - // Get the row and it's height + // Get the row and its height row = sheet.getRow(rowNumber); if (row == null) { // Create row if it does not exist. @@ -624,7 +624,7 @@ public class AddDimensionedImage { colWidthMM = ConvertImageUnits.widthUnits2Millimetres( (short) (sheet.getColumnWidth(toColumn))); // Note use of the cell border width constant. Testing with an image - // declared to fit exactly into one column demonstrated that it's + // declared to fit exactly into one column demonstrated that its // width was greater than the width of the column the POI returned. // Further, this difference was a constant value that I am assuming // related to the cell's borders. Either way, that difference needs diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/LinkedDropDownLists.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/LinkedDropDownLists.java index 106b3c14f9..68c78adf15 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/LinkedDropDownLists.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/LinkedDropDownLists.java @@ -77,7 +77,7 @@ public class LinkedDropDownLists { LinkedDropDownLists.buildDataSheet(sheet); // Build the first data validation to occupy cell A1. Note - // that it retrieves it's data from the named area or region called + // that it retrieves its data from the named area or region called // CHOICES. Further information about this can be found in the // static buildDataSheet() method below. CellRangeAddressList addressList = new CellRangeAddressList(0, 0, 0, 0); diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java index 3716c5c4eb..7053d3bba9 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java @@ -327,7 +327,7 @@ public class ToCSV { } // Step through each of the files in the source folder and for each - // open the workbook, convert it's contents to CSV format and then + // open the workbook, convert its contents to CSV format and then // save the resulting file away into the folder specified by the // contents of the destination variable. Note that the name of the // csv file will be created by taking the name of the Excel file, @@ -342,7 +342,7 @@ public class ToCSV { // Open the workbook this.openWorkbook(excelFile); - // Convert it's contents into a CSV file + // Convert its contents into a CSV file this.convertToCSV(); // Build the name of the csv folder from that of the Excel workbook. @@ -451,7 +451,7 @@ public class ToCSV { // from this 'row' ArrayList one at a time and to write the Strings // away to a StringBuilder thus assembling a single line for inclusion // in the CSV file. If a row was empty or if it was short, then - // the ArrayList that contains it's data will also be shorter than + // the ArrayList that contains its data will also be shorter than // some of the others. Therefore, it is necessary to check within // the for loop to ensure that the ArrayList contains data to be // processed. If it does, then an element will be recovered and diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xslf/AddVideoToPptx.java.txt b/poi-examples/src/main/java/org/apache/poi/examples/xslf/AddVideoToPptx.java.txt index 910d264236..0b6225b6ee 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/xslf/AddVideoToPptx.java.txt +++ b/poi-examples/src/main/java/org/apache/poi/examples/xslf/AddVideoToPptx.java.txt @@ -236,7 +236,7 @@ public class AddVideoToPptx { if (mLastPtsWrite == Global.NO_PTS)
mLastPtsWrite = Math.max(0, evtTS - MICRO_SECONDS_BETWEEN_FRAMES);
- // if it's time to write the next frame
+ // if its time to write the next frame
if (evtTS - mLastPtsWrite >= MICRO_SECONDS_BETWEEN_FRAMES) {
if (!hasFired) {
image = event.getImage();
|