From bc1fa618cf1497b6dd1b6f4cf14f9b58291338dd Mon Sep 17 00:00:00 2001 From: ferbas Date: Thu, 26 Nov 2009 16:10:11 +0000 Subject: added annotationtype git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@465 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../egiz/pdfas/api/analyze/NonTextObjectInfo.java | 27 ++++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'src/main/java/at/gv/egiz') diff --git a/src/main/java/at/gv/egiz/pdfas/api/analyze/NonTextObjectInfo.java b/src/main/java/at/gv/egiz/pdfas/api/analyze/NonTextObjectInfo.java index a20ae99..78020c2 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/analyze/NonTextObjectInfo.java +++ b/src/main/java/at/gv/egiz/pdfas/api/analyze/NonTextObjectInfo.java @@ -8,12 +8,14 @@ package at.gv.egiz.pdfas.api.analyze; */ public class NonTextObjectInfo { public static final String TYPE_IMAGE = "image"; + public static final String TYPE_ANNOTATION = "annotation"; private String objectType; + private String subType; private String name; private int pageNr; - private long width; - private long height; + private double width; + private double height; public String getObjectType() { return this.objectType; @@ -39,25 +41,36 @@ public class NonTextObjectInfo { this.pageNr = pageNr; } - public long getWidth() { + public double getWidth() { return this.width; } - public void setWidth(long width) { + public void setWidth(double width) { this.width = width; } - public long getHeight() { + public double getHeight() { return this.height; } - public void setHeight(long height) { + public void setHeight(double height) { this.height = height; } + + public String getSubType() { + return this.subType; + } + + public void setSubType(String subType) { + this.subType = subType; + } + + public String toString() { return "NonTextObjectInfo [height=" + this.height + ", name=" + this.name + ", objectType=" - + this.objectType + ", pageNr=" + this.pageNr + ", width=" + this.width + "]"; + + this.objectType + ", pageNr=" + this.pageNr + ", subType=" + this.subType + + ", width=" + this.width + "]"; } } -- cgit v1.2.3