// FOP
import org.apache.fop.fo.*;
-import org.apache.fop.fo.properties.*;
import org.apache.fop.apps.FOPException;
-import org.apache.fop.layout.PageMaster;
// Java
import java.util.HashMap;
import java.util.Iterator;
+import java.util.Map;
import org.xml.sax.Attributes;
* information for a page sequence.
*/
public class LayoutMasterSet extends FObj {
- private HashMap simplePageMasters;
- private HashMap pageSequenceMasters;
+ private Map simplePageMasters;
+ private Map pageSequenceMasters;
public LayoutMasterSet(FONode parent) {
super(parent);
protected void checkRegionNames() throws FOPException {
// Section 7.33.15 check to see that if a region-name is a
// duplicate, that it maps to the same region-class.
- HashMap allRegions = new HashMap();
+ Map allRegions = new HashMap();
for (Iterator spm = simplePageMasters.values().iterator();
spm.hasNext(); ) {
SimplePageMaster simplePageMaster =
(SimplePageMaster)spm.next();
- HashMap spmRegions = simplePageMaster.getRegions();
+ Map spmRegions = simplePageMaster.getRegions();
for (Iterator e = spmRegions.values().iterator();
e.hasNext(); ) {
Region region = (Region)e.next();
/**
* Checks whether or not a region name exists in this master set
- * @returns true when the region name specified has a region in this LayoutMasterSet
+ * @return true when the region name specified has a region in this LayoutMasterSet
*/
protected boolean regionNameExists(String regionName) {
for (Iterator e = simplePageMasters.values().iterator();
package org.apache.fop.fo.pagination;
+// FOP
import org.apache.fop.fo.*;
-import org.apache.fop.fo.properties.*;
import org.apache.fop.apps.FOPException;
+// SAX
import org.xml.sax.Attributes;
/**
package org.apache.fop.fo.pagination;
-// FOP
-import org.apache.fop.fo.properties.*;
-
// Avalon
import org.apache.avalon.framework.logger.AbstractLogEnabled;
-// Java
-import java.util.*;
-
/**
* This class uses the 'format', 'groupingSeparator', 'groupingSize',
* and 'letterValue' properties on fo:page-sequence to return a String
// FOP
import org.apache.fop.fo.*;
-import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.PageMaster;
import org.apache.fop.apps.FOPException;
// Java
import java.util.ArrayList;
-import java.util.Iterator;
+import java.util.List;
+// SAX
import org.xml.sax.Attributes;
/**
*/
public class PageSequenceMaster extends FObj {
LayoutMasterSet layoutMasterSet;
- ArrayList subSequenceSpecifiers;
+ List subSequenceSpecifiers;
private SubSequenceSpecifier currentSubSequence;
private int currentSubSequenceNumber;
private String masterName;
import org.apache.fop.datatypes.FODimension;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FONode;
-import org.apache.fop.fo.PropertyList;
import org.apache.fop.layout.BorderAndPadding;
import org.apache.fop.layout.BackgroundProps;
import org.apache.fop.apps.FOPException;
// FOP
import org.apache.fop.fo.*;
import org.apache.fop.datatypes.FODimension;
-import org.apache.fop.apps.FOPException;
import org.apache.fop.area.RegionReference;
+// Java
import java.awt.Rectangle;
-import org.xml.sax.Attributes;
public class RegionAfter extends RegionBA {
// FOP
import org.apache.fop.fo.*;
-import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.properties.Precedence;
+// Java
import java.awt.Rectangle;
public abstract class RegionBA extends RegionBASE {
// FOP
import org.apache.fop.fo.FONode;
-import org.apache.fop.fo.PropertyList;
-import org.apache.fop.apps.FOPException;
/**
* Base class for Before, After, Start and End regions (BASE).
package org.apache.fop.fo.pagination;
// FOP
-
import org.apache.fop.datatypes.FODimension;
import org.apache.fop.fo.*;
-import org.apache.fop.apps.FOPException;
import org.apache.fop.area.RegionReference;
+// Java
import java.awt.Rectangle;
-import org.xml.sax.Attributes;
public class RegionBefore extends RegionBA {
package org.apache.fop.fo.pagination;
+// Java
import java.awt.Rectangle;
import java.awt.geom.Rectangle2D;
// FOP
-
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.properties.Overflow;
import org.apache.fop.datatypes.ColorType;
import org.apache.fop.datatypes.FODimension;
-import org.apache.fop.apps.FOPException;
import org.apache.fop.area.RegionReference;
import org.apache.fop.area.BodyRegion;
import org.apache.fop.layout.MarginProps;
package org.apache.fop.fo.pagination;
+// Java
import java.awt.Rectangle;
// FOP
import org.apache.fop.fo.*;
import org.apache.fop.datatypes.FODimension;
-import org.apache.fop.apps.FOPException;
import org.apache.fop.area.RegionReference;
package org.apache.fop.fo.pagination;
-
+// FOP
import org.apache.fop.fo.*;
-import org.apache.fop.apps.FOPException;
+// Java
import java.awt.Rectangle;
public abstract class RegionSE extends RegionBASE {
package org.apache.fop.fo.pagination;
+// Java
import java.awt.Rectangle;
-
// FOP
import org.apache.fop.fo.*;
import org.apache.fop.datatypes.FODimension;
-import org.apache.fop.apps.FOPException;
import org.apache.fop.area.RegionReference;
public class RegionStart extends RegionSE {
package org.apache.fop.fo.pagination;
// FOP
-import org.apache.fop.fo.*;
-import org.apache.fop.fo.flow.*;
-import org.apache.fop.fo.properties.*;
-import org.apache.fop.apps.FOPException;
+import org.apache.fop.fo.FObj;
+import org.apache.fop.fo.FONode;
// Java
import java.util.ArrayList;
+import java.util.List;
/**
* The fo:root formatting object. Contains page masters, page-sequences.
public class Root extends FObj {
LayoutMasterSet layoutMasterSet;
- ArrayList pageSequences;
+ List pageSequences;
/**
* keeps count of page number from over PageSequence instances
/**
* Some properties, such as 'force-page-count', require a
* page-sequence to know about some properties of the next.
- * @returns succeeding PageSequence; null if none
+ * @return succeeding PageSequence; null if none
*/
public PageSequence getSucceedingPageSequence(PageSequence current) {
int currentIndex = pageSequences.indexOf(current);
// FOP
import org.apache.fop.fo.*;
-import org.apache.fop.fo.properties.*;
import org.apache.fop.area.CTM;
import org.apache.fop.datatypes.FODimension;
import org.apache.fop.area.PageViewport;
import org.apache.fop.apps.FOPException;
import java.awt.Rectangle;
-import java.awt.geom.Rectangle2D;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.Map;
+
import org.xml.sax.Attributes;
/**
/**
* Page regions (regionClass, Region)
*/
- private HashMap _regions;
+ private Map _regions;
PageMaster pageMaster;
String masterName;
return (Region)_regions.get(regionClass);
}
- protected HashMap getRegions() {
+ protected Map getRegions() {
return _regions;
}