From 17f141f7baa7c96b4b1ab9fa8c92cd58579396ce Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Tue, 12 Nov 2002 02:31:39 +0000 Subject: [PATCH] Added FONode arg to constructor. Added FONode arg to PropertyConsts getMappedNumeric call. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195506 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/datatypes/MappedNumeric.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/org/apache/fop/datatypes/MappedNumeric.java b/src/org/apache/fop/datatypes/MappedNumeric.java index 6bb749410..774cd31b7 100644 --- a/src/org/apache/fop/datatypes/MappedNumeric.java +++ b/src/org/apache/fop/datatypes/MappedNumeric.java @@ -5,7 +5,7 @@ import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.fo.PropertyConsts; import org.apache.fop.fo.properties.*; -import org.apache.fop.fo.FOTree; +import org.apache.fop.fo.FONode; /* * MappedEnumType.java @@ -34,37 +34,39 @@ public class MappedNumeric extends EnumType { private Numeric mappedNum; /** + * @param foNode the FONode being built * @param property the int index of the property on which * this value is being defined. * @param enumText the String containing the enumeration text. - * @param foTree the FOTree being built * An NCName. * @exception PropertyException */ - public MappedNumeric(int property, String enumText, FOTree foTree) + public MappedNumeric(FONode foNode, int property, String enumText) throws PropertyException { // Set property index in AbstractPropertyValue // and enumValue enum constant in EnumType super(property, enumText, PropertyValue.MAPPED_NUMERIC); - mappedNum = propertyConsts.getMappedNumeric(property, enumValue); + mappedNum = + propertyConsts.getMappedNumeric(foNode, property, enumValue); } /** + * @param foNode the FONode being built * @param propertyName the String name of the property on which * this value is being defined. * @param enumText the String containing the enumeration text. - * @param foTree the FOTree being built * An NCName. * @exception PropertyException */ - public MappedNumeric(String propertyName, String enumText, FOTree foTree) + public MappedNumeric(FONode foNode, String propertyName, String enumText) throws PropertyException { // Set property index in AbstractPropertyValue // and enumValue enum constant in EnumType super(propertyName, enumText, PropertyValue.MAPPED_NUMERIC); - mappedNum = propertyConsts.getMappedNumeric(property, enumValue); + mappedNum = + propertyConsts.getMappedNumeric(foNode, property, enumValue); } /** -- 2.39.5