package org.apache.fop.fo.pagination;
// FOP
-import org.apache.fop.fo.FOAttributes;
-import org.apache.fop.fo.PropNames;
-import org.apache.fop.fo.FOPropertySets;
-import org.apache.fop.fo.PropertySets;
import org.apache.fop.fo.FObjectNames;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTree;
import org.apache.fop.xml.FoXMLEvent;
import org.apache.fop.apps.FOPException;
import org.apache.fop.datastructs.Tree;
-import org.apache.fop.datatypes.PropertyValue;
-import org.apache.fop.datatypes.Ints;
-
-import java.util.HashMap;
-import java.util.BitSet;
/**
* Implements the fo:simple-page-master flow object
private static final String tag = "$Name$";
private static final String revision = "$Revision$";
- /** The array of applicable properties. Slots in this array are indexed
- by values from the <i>applicableProps</i> <tt>HashMap</tt>.
- It is effectively a sparse array of the set of properties. */
- private PropertyValue[] applicableProps;
-
/**
* @param foTree the FO tree being built
* @param parent the parent FONode of this node
throws Tree.TreeException, FOPException
{
super(foTree, FObjectNames.REGION_AFTER, parent, event);
- applicableProps = new PropertyValue[numProps];
- FoXMLEvent ev = xmlevents.getEndElement(event);
+ makeSparsePropsSet();
}
- /**
- * Get a property value applying to this FO node.
- * @param property - the <tt>int</tt> property index.
- * @return the <tt>PropertyValue</tt> with the indicated property index.
- */
- public PropertyValue getPropertyValue(int property)
- throws PropertyException
- {
- return applicableProps[
- ((Integer)
- (applicablePropsHash.get(Ints.consts.get(property)))).intValue()
- ];
- }
}
package org.apache.fop.fo.pagination;
// FOP
-import org.apache.fop.fo.FOAttributes;
-import org.apache.fop.fo.PropNames;
-import org.apache.fop.fo.FOPropertySets;
-import org.apache.fop.fo.PropertySets;
import org.apache.fop.fo.FObjectNames;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTree;
import org.apache.fop.xml.FoXMLEvent;
import org.apache.fop.apps.FOPException;
import org.apache.fop.datastructs.Tree;
-import org.apache.fop.datatypes.PropertyValue;
-import org.apache.fop.datatypes.Ints;
-
-import java.util.HashMap;
-import java.util.BitSet;
/**
* Implements the fo:simple-page-master flow object
private static final String tag = "$Name$";
private static final String revision = "$Revision$";
- /** The array of applicable properties. Slots in this array are indexed
- by values from the <i>applicableProps</i> <tt>HashMap</tt>.
- It is effectively a sparse array of the set of properties. */
- private PropertyValue[] applicableProps;
-
/**
* @param foTree the FO tree being built
* @param parent the parent FONode of this node
throws Tree.TreeException, FOPException
{
super(foTree, FObjectNames.REGION_BEFORE, parent, event);
- applicableProps = new PropertyValue[numProps];
- FoXMLEvent ev = xmlevents.getEndElement(event);
+ makeSparsePropsSet();
}
- /**
- * Get a property value applying to this FO node.
- * @param property - the <tt>int</tt> property index.
- * @return the <tt>PropertyValue</tt> with the indicated property index.
- */
- public PropertyValue getPropertyValue(int property)
- throws PropertyException
- {
- return applicableProps[
- ((Integer)
- (applicablePropsHash.get(Ints.consts.get(property)))).intValue()
- ];
- }
}
package org.apache.fop.fo.pagination;
// FOP
-import org.apache.fop.fo.FOAttributes;
-import org.apache.fop.fo.PropNames;
-import org.apache.fop.fo.FOPropertySets;
-import org.apache.fop.fo.PropertySets;
import org.apache.fop.fo.FObjectNames;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTree;
import org.apache.fop.xml.FoXMLEvent;
import org.apache.fop.apps.FOPException;
import org.apache.fop.datastructs.Tree;
-import org.apache.fop.datatypes.PropertyValue;
-import org.apache.fop.datatypes.Ints;
-import java.util.HashMap;
-import java.util.BitSet;
/**
* Implements the fo:simple-page-master flow object
private static final String tag = "$Name$";
private static final String revision = "$Revision$";
- /** The array of applicable properties. Slots in this array are indexed
- by values from the <i>applicableProps</i> <tt>HashMap</tt>.
- It is effectively a sparse array of the set of properties. */
- private PropertyValue[] applicableProps;
-
/**
* @param foTree the FO tree being built
* @param parent the parent FONode of this node
throws Tree.TreeException, FOPException
{
super(foTree, FObjectNames.REGION_END, parent, event);
- applicableProps = new PropertyValue[numProps];
- FoXMLEvent ev = xmlevents.getEndElement(event);
+ makeSparsePropsSet();
}
- /**
- * Get a property value applying to this FO node.
- * @param property - the <tt>int</tt> property index.
- * @return the <tt>PropertyValue</tt> with the indicated property index.
- */
- public PropertyValue getPropertyValue(int property)
- throws PropertyException
- {
- return applicableProps[
- ((Integer)
- (applicablePropsHash.get(Ints.consts.get(property)))).intValue()
- ];
- }
}
package org.apache.fop.fo.pagination;
// FOP
-import org.apache.fop.fo.FOAttributes;
-import org.apache.fop.fo.PropNames;
-import org.apache.fop.fo.FOPropertySets;
-import org.apache.fop.fo.PropertySets;
import org.apache.fop.fo.FObjectNames;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTree;
import org.apache.fop.xml.FoXMLEvent;
import org.apache.fop.apps.FOPException;
import org.apache.fop.datastructs.Tree;
-import org.apache.fop.datatypes.PropertyValue;
-import org.apache.fop.datatypes.Ints;
-
-import java.util.HashMap;
-import java.util.BitSet;
/**
* Implements the fo:simple-page-master flow object
private static final String tag = "$Name$";
private static final String revision = "$Revision$";
- /** The array of applicable properties. Slots in this array are indexed
- by values from the <i>applicableProps</i> <tt>HashMap</tt>.
- It is effectively a sparse array of the set of properties. */
- private PropertyValue[] applicableProps;
-
/**
* @param foTree the FO tree being built
* @param parent the parent FONode of this node
throws Tree.TreeException, FOPException
{
super(foTree, FObjectNames.REGION_START, parent, event);
- applicableProps = new PropertyValue[numProps];
- FoXMLEvent ev = xmlevents.getEndElement(event);
+ makeSparsePropsSet();
}
- /**
- * Get a property value applying to this FO node.
- * @param property - the <tt>int</tt> property index.
- * @return the <tt>PropertyValue</tt> with the indicated property index.
- */
- public PropertyValue getPropertyValue(int property)
- throws PropertyException
- {
- return applicableProps[
- ((Integer)
- (applicablePropsHash.get(Ints.consts.get(property)))).intValue()
- ];
- }
}