Browse Source

Extends BlockViewportArea.

Unused single argument constructor removed.
clone() removed


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197813 13f79535-47bb-0310-9956-ffa450edef68
tags/Defoe_export
Peter Bernard West 20 years ago
parent
commit
98e9d519ef
1 changed files with 1 additions and 31 deletions
  1. 1
    31
      src/java/org/apache/fop/area/PageViewport.java

+ 1
- 31
src/java/org/apache/fop/area/PageViewport.java View File

@@ -30,21 +30,9 @@ import org.apache.fop.fo.flow.FoPageSequence;
* The page reference area is then rendered inside the PageRefArea object
*/
public class PageViewport
extends AbstractViewport
extends BlockViewportArea
implements Viewport {

/**
* Creates a page viewport at the root of a tree, synchronized on itself,
* with a null page reference area and rectangular area
* @param pageSeq the page-sequence which generated this area
* the page-sequence
*/
public PageViewport(
FoPageSequence pageSeq) {
// The pageSeq is also the generating node
super(pageSeq, pageSeq);
}

/**
* Creates a page viewport with a null page ref area and rectangular area,
* and the given parent node and sync object
@@ -98,24 +86,6 @@ implements Viewport {
return null;
}

/**
* Clone this page.
* Used by the page master to create a copy of an original page.
* @return a copy of this page and associated viewports
*/
public Object clone() {
synchronized (sync) {
PageViewport pv;
try {
pv = (PageViewport)(super.clone());
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
pv.refArea = (PageRefArea)(refArea.clone());
return pv;
}
}

/**
* Clear the pageRefArea contents to save memory.
* This object is kept for the life of the area tree since

Loading…
Cancel
Save