Bladeren bron

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 jaren geleden
bovenliggende
commit
98e9d519ef
1 gewijzigde bestanden met toevoegingen van 1 en 31 verwijderingen
  1. 1
    31
      src/java/org/apache/fop/area/PageViewport.java

+ 1
- 31
src/java/org/apache/fop/area/PageViewport.java Bestand weergeven

* The page reference area is then rendered inside the PageRefArea object * The page reference area is then rendered inside the PageRefArea object
*/ */
public class PageViewport public class PageViewport
extends AbstractViewport
extends BlockViewportArea
implements Viewport { 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, * Creates a page viewport with a null page ref area and rectangular area,
* and the given parent node and sync object * and the given parent node and sync object
return null; 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. * Clear the pageRefArea contents to save memory.
* This object is kept for the life of the area tree since * This object is kept for the life of the area tree since

Laden…
Annuleren
Opslaan