aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-01-27 09:24:24 +0000
committerJeremias Maerki <jeremias@apache.org>2003-01-27 09:24:24 +0000
commit771585692a28aaa50326e5c31967539a1dfc8844 (patch)
treefbda2267a6acb8da7dd1d6d0d86a7953e276ae3c
parent53634f8f77f14b1a6274f9d5e9fb3cbb6da9c775 (diff)
downloadxmlgraphics-fop-771585692a28aaa50326e5c31967539a1dfc8844.tar.gz
xmlgraphics-fop-771585692a28aaa50326e5c31967539a1dfc8844.zip
Added a toString() method.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195900 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/area/PageViewport.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/org/apache/fop/area/PageViewport.java b/src/org/apache/fop/area/PageViewport.java
index 74c330824..c74e47c6f 100644
--- a/src/org/apache/fop/area/PageViewport.java
+++ b/src/org/apache/fop/area/PageViewport.java
@@ -1,6 +1,6 @@
/*
* $Id$
- * Copyright (C) 2001-2002 The Apache Software Foundation. All rights reserved.
+ * Copyright (C) 2001-2003 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
*/
@@ -21,10 +21,11 @@ import java.util.Iterator;
* This is the top level object for a page and remains valid for the life
* of the document and the area tree.
* This object may be used as a key to reference a page.
- * This is the level that creates the page
+ * This is the level that creates the page.
* The page (reference area) is then rendered inside the page object
*/
public class PageViewport implements Resolveable, Cloneable {
+
private Page page;
private Rectangle2D viewArea;
private boolean clip = false;
@@ -223,4 +224,14 @@ public class PageViewport implements Resolveable, Cloneable {
public void clear() {
page = null;
}
+
+ /**
+ * @see java.lang.Object#toString()
+ */
+ public String toString() {
+ StringBuffer sb = new StringBuffer(64);
+ sb.append("PageViewport: page=");
+ sb.append(getPageNumber());
+ return sb.toString();
+ }
}