diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-04-01 16:50:03 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-04-01 16:51:50 +0200 |
commit | 4f1e143c6eac9e1b57b2400bf5b0761a8b072419 (patch) | |
tree | f06266246e8264bf56515a279853bd7197573fe2 /pdf-as-lib/src/main/java/at/knowcenter/wag | |
parent | dce9a1535236da947d9f866421c4f0b8ae47e527 (diff) | |
download | pdf-as-4-4f1e143c6eac9e1b57b2400bf5b0761a8b072419.tar.gz pdf-as-4-4f1e143c6eac9e1b57b2400bf5b0761a8b072419.tar.bz2 pdf-as-4-4f1e143c6eac9e1b57b2400bf5b0761a8b072419.zip |
PDFBOX Table generation incl. QR Code detection and Positioning is done
Diffstat (limited to 'pdf-as-lib/src/main/java/at/knowcenter/wag')
-rw-r--r-- | pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java index de471e11..72bdfc4d 100644 --- a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java +++ b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java @@ -78,7 +78,7 @@ public class Table implements Serializable /** * The row definitions. */ - private Map rows_ = new HashMap(); + private Map<String, ArrayList<Entry>> rows_ = new HashMap<String, ArrayList<Entry>>(); /** * The table width. @@ -192,12 +192,12 @@ public class Table implements Serializable * * @return Returns the sorted (by row number) table rows. */ - public ArrayList getRows() + public ArrayList<ArrayList<Entry>> getRows() { - ArrayList rows = new ArrayList(); + ArrayList<ArrayList<Entry>> rows = new ArrayList<ArrayList<Entry>>(); for (int row_idx = 1; row_idx <= rows_.size(); row_idx++) { - ArrayList row = (ArrayList) rows_.get("" + row_idx); + ArrayList<Entry> row = (ArrayList<Entry>) rows_.get("" + row_idx); rows.add(row); } return rows; @@ -213,7 +213,7 @@ public class Table implements Serializable * @param row * the entry list to store */ - public void addRow(String rowNumber, ArrayList row) + public void addRow(String rowNumber, ArrayList<Entry> row) { rows_.put(rowNumber, row); if (row.size() > maxCols_) @@ -230,10 +230,10 @@ public class Table implements Serializable String the_string = "\n#### TABLE " + name_ + " BEGIN #####"; the_string += " Width:" + width_ + " max cols:" + maxCols_ + " cols:" + colsRelativeWith_; the_string += "\nStyle:" + style_; - ArrayList rows = getRows(); + ArrayList<ArrayList<Entry>> rows = getRows(); for (int row_idx = 0; row_idx < rows.size(); row_idx++) { - ArrayList row = (ArrayList) rows.get(row_idx); + ArrayList<Entry> row = rows.get(row_idx); String row_prefix = "\n ++ ROW " + row_idx + " ++ "; for (int entry_idx = 0; entry_idx < row.size(); entry_idx++) { |