You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2003/01/27 10:24:24 UTC
cvs commit: xml-fop/src/org/apache/fop/area PageViewport.java
jeremias 2003/01/27 01:24:24
Modified: src/org/apache/fop/area PageViewport.java
Log:
Added a toString() method.
Revision Changes Path
1.12 +14 -3 xml-fop/src/org/apache/fop/area/PageViewport.java
Index: PageViewport.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/PageViewport.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- PageViewport.java 29 Nov 2002 23:18:52 -0000 1.11
+++ PageViewport.java 27 Jan 2003 09:24:24 -0000 1.12
@@ -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 @@
* 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;
@@ -222,5 +223,15 @@
*/
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();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org