diff options
Diffstat (limited to 'src/java/org/apache/fop/area/inline/Viewport.java')
-rw-r--r-- | src/java/org/apache/fop/area/inline/Viewport.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/area/inline/Viewport.java b/src/java/org/apache/fop/area/inline/Viewport.java index c9c0b5b10..e8035a904 100644 --- a/src/java/org/apache/fop/area/inline/Viewport.java +++ b/src/java/org/apache/fop/area/inline/Viewport.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2004,2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ public class Viewport extends InlineArea { private Area content; // clipping for the viewport private boolean clip = false; - // position of the cild area relative to this area + // position of the child area relative to this area private Rectangle2D contentPosition; /** @@ -84,6 +84,14 @@ public class Viewport extends InlineArea { } /** + * Sets the content area. + * @param content the content area + */ + public void setContent(Area content) { + this.content = content; + } + + /** * Get the content area for this viewport. * * @return the content area |